Shop OBEX P1 Docs P2 Docs Learn Events
Port Registers and Serial Monitor — Parallax Forums

Port Registers and Serial Monitor

I am using the Parallax Arduino program for line following with the Arduino Shield BOE-Bot. My question is when using Serial.println(pins, BIN); to send the status of the pins to the serial monitor it does not always display all 4 pins. As I move a sheet of paper with a black line on it underneath the sensors, first only one sensor is visible in the serial monitor and as I move the line under the next sensor it shows all four until I get to the far right sensor and it goes to only one again. Since this program uses case statements is the lack of seeing all the pins going to confuse the cases? or does the microntroller always see all four not matter what is displayed on the monitor? I ask this because I am having trouble getting the robot to react correctly and that is the only anomaly I can see in the program. My servos are calibrated and working fine and all the QTI's seem to react correctly when tested individually.
Sign In or Register to comment.