We've followed your tutorial, but we're having a problem with getting the motors to run once we put it down on the floor. The floor is light coloured, but not white. Our tape line is black. The sensors we used are the Obsidian 5V HW-006 V1 3. If we put the chassis up on a block to test the program, it performs as expected. If we block the sensor with anything (black, white, or even a light coloured object) the appropriate wheel stops spinning. Is there a way to turn down the sensitivity, or adjust it from proximity to colour value?
It’s difficult for me to comment without seeing the problem firsthand. However it sounds like it’s working in reverse. With your car up on the blocks your wheels should not be turning until you move something like a white sheet of paper closer to the sensors. You will know when the sensor is working because LED indicator will switch on. Try checking the wiring and code it’ possible that’s where the problem is.
You can run the program from either VNC or via the terminal window using putty. VNC is the easier option just run the program from within the Geany IDE. If you want to use the terminal window make sure you’re in the right directory and got forget to invoke python3 in the command line. For example sudo python3 programname.py
excellent explanation
how is the gpio looking like when you gpio readall command it? WHich pins are IN and which are OUT?
Thank you so much, you have explained every detail so clearly and this video make me understand well....
We've followed your tutorial, but we're having a problem with getting the motors to run once we put it down on the floor. The floor is light coloured, but not white. Our tape line is black. The sensors we used are the Obsidian 5V HW-006 V1 3. If we put the chassis up on a block to test the program, it performs as expected. If we block the sensor with anything (black, white, or even a light coloured object) the appropriate wheel stops spinning. Is there a way to turn down the sensitivity, or adjust it from proximity to colour value?
It’s difficult for me to comment without seeing the problem firsthand. However it sounds like it’s working in reverse. With your car up on the blocks your wheels should not be turning until you move something like a white sheet of paper closer to the sensors. You will know when the sensor is working because LED indicator will switch on. Try checking the wiring and code it’ possible that’s where the problem is.
Thank you so much this video was very helpful
Once you create the program how do you run it? You do it from Putty? VNC ? or what can you help ?
You can run the program from either VNC or via the terminal window using putty. VNC is the easier option just run the program from within the Geany IDE. If you want to use the terminal window make sure you’re in the right directory and got forget to invoke python3 in the command line. For example sudo python3 programname.py
Did it with mine, but it goes wayy to fast, what would be the code to lower the speed of left and right motor ?
Did you figure it out?
How did you do it?
if:
elif:
elif:
elif:
else: