Hello everybody,
I am very new to arduino. I am programming a Haptic Hand Shake Communication project. I have two arduinos connected over serial channel as described in
http://robotic-controls.com/book/export/html/13
Each arduino has a FSR(Force Sensing Resistor), Servo motor and Heatpad attached. The idea is when the FSR is pressed the reading will be transferred to the other arduino and the servo connected to that will rotate. This will happen both ways. In my case both the devices transmit as well as receive. The problem is whenever I connect the devices by ground and TX + RX and power (I tried both arduinos connected to two different computers and one arduino connected to a computer and another connected to its +5V) they gets junk data from the analog(A0) input of FSR and transmits continuously even when FSR is not touched. So without input both servos always rotating and that is uncontrollable. How can I control this? The image attached describes the scenario. I am also attaching the code here that is uploaded to both the arduinos. I am using the UNO board.
Can anybody help please?
Thanks
Sayantan ...
Receiver_modified.ino (1.06 KB)