I am using the tx and rx pins on my arduino boards to exchange data.
board A is connected to switches, when a switch is pressed it will send its corresponding number to board B, board B will then receive the signal and activate a digital output. The code works fine for sending the “1” and the “0” but any other numbers fail. What could be the cause? I was thinking along the lines of how it sends the data (HEX, DEC, OCT etc). Any help would be appreciated.
The code for the boards are attached
(note please ignore the pwm sections these are working fine)
board_B.ino (1.13 KB)
board_A.ino (2.08 KB)