I’ve been working for sometime in adding some sensors to a robot. My plan is to connect this sensors to an arduino (UNO) to, later on, connect this arduino to the arduino of the robot by I2C and set it as it’s slave.
I had done this code to connect the data adquisition arduino to the computer by USB.
“CodigoSensoresOrdenador” (name is in spanish but all the code is in English)
As you see is not a very complicated code but as this is the first time I’m trying to use I2C connection I don’t know very well how to do it and I would appreciate any help you can offer me. I started but I don’t know if it’s okay.
“CodigoSensoresEsclavoI2C” (name is in spanish but all the code is in English)
Thank you for all!
Javier Garcia Martin.
CodigoSensoresOrdenador.ino (5.84 KB)
CodigoSensoresEsclavoI2C.ino (5.32 KB)