Problems Encountered

From Maslab 2012
(Difference between revisions)
Jump to: navigation, search
(Created page with "*Problem: IR sensor properly connected, occasionally reading the correct value, mostly (or sometimes) reading -1000. :Solution: For some reason the arduino was returning values s...")
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
*Problem: IR sensor properly connected, occasionally reading the correct value, mostly (or sometimes) reading -1000.
 
*Problem: IR sensor properly connected, occasionally reading the correct value, mostly (or sometimes) reading -1000.
 
:Solution: For some reason the arduino was returning values slowly, so arduino.py was timing it out. Change timeout=1 in arduino.py to timeout=2. (Do it in a local copy or it'll be problematic if staff updates arduino.py. If it continues to be a problem, change the staff version of arduino.py).
 
:Solution: For some reason the arduino was returning values slowly, so arduino.py was timing it out. Change timeout=1 in arduino.py to timeout=2. (Do it in a local copy or it'll be problematic if staff updates arduino.py. If it continues to be a problem, change the staff version of arduino.py).
 +
*Problem: Peg bot not driving straight
 +
:Solution: Used closed loop control.
 +
*Problem: motor.motor0Reverse does not work unless motor.motor0Forward immediately precedes it.

Latest revision as of 05:29, 14 January 2012

  • Problem: IR sensor properly connected, occasionally reading the correct value, mostly (or sometimes) reading -1000.
Solution: For some reason the arduino was returning values slowly, so arduino.py was timing it out. Change timeout=1 in arduino.py to timeout=2. (Do it in a local copy or it'll be problematic if staff updates arduino.py. If it continues to be a problem, change the staff version of arduino.py).
  • Problem: Peg bot not driving straight
Solution: Used closed loop control.
  • Problem: motor.motor0Reverse does not work unless motor.motor0Forward immediately precedes it.