1 / 8

Arduino Nano to Uno I2C Communication

Mike Pluma The- Bao Nguyen EE 444 Spring 2013. Arduino Nano to Uno I2C Communication. I2C Protocol. Two Wire Serial Communication (SDA, SCL) Built into standard Arduino library ( wire.h ) Up to 127 simultaneous connected peripheral devices (slaves)

ronia
Download Presentation

Arduino Nano to Uno I2C Communication

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Mike Pluma The-Bao Nguyen EE 444 Spring 2013 Arduino Nano to Uno I2C Communication

  2. I2C Protocol • Two Wire Serial Communication (SDA, SCL) • Built into standard Arduino library (wire.h) • Up to 127 simultaneous connected peripheral devices (slaves) • Unique address directs communication between Master device and connected slaves • Interrupt based

  3. The Big Idea • IR sensors take in data which is processed by the Nano • The Uno asks the Nano for range data from the IR sensors • The Uno uses rangedata.h to output the distance in cm

  4. The Tricky Bit • In order to mount the Nano to the sensor platform as shown in the picture it is necessary to desolder the male header pins and replace them with female header sockets.

  5. Lab Setup • Wire the Nano and the Uno as in the diagram • You will need to have IR Lab Completed and a usable rangedata.h file • Copyrangedata.h into the UNOrange working folder

  6. Lab Procedure • Upload NANOrange to the Arduino Nano • Upload UNOrange to the Arduino Uno • Open the Serial Monitor for each and confirm the data read and data transfer

  7. Results • The Nano should output the Dn it is reading on it’s serial monitor. • The Uno should output the Range associated with that Dn as referenced in the rangedata.hlookup table

  8. ADD THIS • Modify sample size, and delay time, max short range, • Make sure you have a good rangedata.h file

More Related