Problems Encountered
From Maslab 2013
(Difference between revisions)
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | *Problem: IR sensor properly connected, occasionally reading the correct value, mostly (or sometimes) reading -1000. | + | *Problem ''(possible outdated)'': 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 | *Problem: Peg bot not driving straight | ||
:Solution: Used closed loop control. | :Solution: Used closed loop control. | ||
− | *Problem: | + | *Problem: IR sensor reading None value (when using the staff version) |
+ | :Solution: Call up [and store] the value in a variable outside of the general loop, then when you access it inside of the loop it will return the desired integer value. |
Latest revision as of 21:17, 9 January 2013
- Problem (possible outdated): 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: IR sensor reading None value (when using the staff version)
- Solution: Call up [and store] the value in a variable outside of the general loop, then when you access it inside of the loop it will return the desired integer value.