Main Menu

search

You are here

i2C_simple

[last updated: 2016-11-22]
Concept/Design: sender sends char upon pushbutton press; receiver toggles onboard LED on/off
-----

  • this is about as simple as you can get:
    • two Arduinos communicating,
    • slave devices are simple receive nodes, with no registers to read or set,
    • no bidirectional communication, just master sending to slave
    • and slave responding

-----

  • two Uno's connected as follows:
    • grounds connected together
    • A4 (SDA) connected together
    • A5 (SCL) connected together
  • one programmed as 'master', and one as 'slave'
  • one-direction communication:
    • master initiates communication to slave
    • slave does as programmed, but does not respond back
      (other than ack sent back to indicate message received)
      • upon receiving proper code,
        slave is programmed to toggle the onboard LED on/off
  • Note: Receiver node must be online in order to acknowledge the data transmission from the Sender, in order for the sender to not "hang" waiting for response
  • -------------------------------------------

  • sketches: see: programs-all

.

.

.

eof