This is just a small project with 2 sketches ( master & slave) to test how I2C works. Additionally the slave skecth has an input pin connected to a temperature sensor and my idea is that the temperature is read in the slave and sent to the master then the master will send "1" or "0" to the slave dependeing on the temperature value. I would like the slave sketch to read the data sent by the master and switch a LED on/off a depending on the incoming value. I have built a slave skecth that picks up a value "1" or "0" from the master. As I also haven´t found this question in the forums, I wanted to ask before letting my common sense win assuming that its not possible My question is whether a slave can also act as "writer and sender" or only as "writer or sender".Īll the manuals I have read and slave examples I have found refer to slave as writer or slave as sender but I haven´t found any information or example that shows as slave acting as both. I understand that Arduino UNO set as Master in a sketch can send data to a slave and receive from a slave. I am learning how to use the wire library to communicate between several Arduino UNO through I2C bus.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |