![]() ![]() use analogwrite to run motor at adjusted speed reading the sensor if HIGH (Black line) or LOW (White line) line #define ENA 10 // Enable pin PWM of the Right motor #define ENB 5 // Enable pin PWM of the Left motor When i used a multimeter to measure the voltage, I found out that there was no voltage from the L298N to both motors. The sensors somehow could only detect the distance between it and the ground when i lift the robot above the ground. I uploaded the code successfully but my robot didn't do anything: ![]() My robot uses an Arduino Uno board, a L298N motor, 1 9V battery, 2 motors, 5 TCRT 5000 infrared light sensors to detect a black line on a white surface. I'm currently making a line following robot using PID control.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |