Darwin-River / Robotics

0 stars 0 forks source link

Develop a simple line following rountine #7

Open darozak opened 9 months ago

darozak commented 9 months ago

I need to use the state machine to develop a simple line following routine.

darozak commented 9 months ago

Here's what I accomplished so far:

231203 - Having provided instructions on how to set up and adjust the IR sensor, I'd like to turn now to drafting some code that will allow one state machine to pause, resume, or reset another. This will make it easy for me to create a regulator SM that determines how long the robot is running for.

231130 - Worked on getting IR sensors to work. Had to replace one and then adjust the potentiometer so that indicator LEDs went off when only when the sensor was moved over a black line. I really need to pause here and create a text/video tutorial on setting up the IR sensors.

231127 - Created a page for the Drive class and added a state machine diagram to the Line Racer Sketch.

231126 - Modified SM so that it will only run the engines for a limited amount of time. Also learned that the servo won't work if connected to pin 9. Next, I need to display the current version of the Line Racer code in the Line Racer Sketch.

231118 - Stated setting up state machine on the desktop Arduino IDE and testing it on the robot. For some reason the code is not activating both motors when I switch between left and right. Look into this.