create a live demo debugging tool with LED Panel
For the Blimp Demo:
- OpenMV LED: blink green when a function is called. red on standby
- PIN31: state of the blimp. red is standby, yellow is paused, white is seeking, blue is done
- PIN30: kp change. blink green if new kp is higher then old kp. red if less. white if the same
- PIN29: ki change. blink green if new ki is higher then old ki. red if less. white if the same
- PIN28: kd change. blink green if new kd is higher then old kd. red if less. white if the same
- PIN27: base speed indicator. the white LED intensity scale with the base speed, with 255 speed being the brightest
- PIN26: minimum threshold for color detection, display the minimum LAB value in terms of RGB
- PIN25: maximum threshold for color detection, display the maximum LAB value in terms of RGB
- PIN24: left motor speed. display the speed of the motor that scales with the light intensity. led will be red if the motor is pushing the blimp forward, blue if backward
- PIN17: vertical motor speed. display the speed of the motor that scales with the light intensity. led will be red if the motor is pushing the blimp upward, blue if downward
- PIN16: right motor speed. display the speed of the motor that scales with the light intensity. led will be red if the motor is pushing the blimp forward, blue if backward
need:
-
1. state of the blimp: pause, found, seeking, end demo -
2. change of PID constants -
3. change of base speed -
4. change of threshold -
5. light up openmv camera led when a function is called -
6. 3 led to indicate speed of the motors
For the XY-Relative Position Demo:
- PIN31: left motor speed. red forward. blue backward. speed scale with intensity
- PIN23: right motor speed. red forward. blue backward. speed scale with intensity
- PIN30: vehicle detection by camera. green if detected. red if otherwise
- PIN22: target detection by camera. green if detected. red if otherwise