Serial LCD resetting
J Ludwig
Posts: 19
I have a Parallax 2-line LCD monitoring a single axis of a 5DOF IMU via an MCP3208 A/D. I have a micro RC servo connected to the prop that responds to the changing position of the IMU. It works well for a while then the Lcd backlight goes out and the text disappears from the screen. The values continue to be displayed and the servo continues to work. I have used this setup with a VGA monitor instead of the LCD and there are no issues. If I let it set without moving the display remains OK but when tilting back and forth it the problem will appear, never the same amount of time or direction of tilt. I have installed 100mf caps across the supply to the LCD and the servo with no change.
If I comment out the line that starts the servo ASM routine the display has no problems, it's as if something is causing the LCD to reset.
I have used this same servo and LCD with a quadrature encoder to control the servo position and had the same problem.
Any ideas about where to look? Spin file attached.
If I comment out the line that starts the servo ASM routine the display has no problems, it's as if something is causing the LCD to reset.
I have used this same servo and LCD with a quadrature encoder to control the servo position and had the same problem.
Any ideas about where to look? Spin file attached.
Comments
John Abshier
You are correct, it was a power problem. I was powering both LCD and servo from the same 5v regulator. I have done that successfully many times before but never with a sensor that made the servo move so actively. I set up another 5v regulator for the servo and that did the trick. Apparently the 5v would dip enough to affect the LCD but not enough to drop out the 3.3v prop supply. My main source of power is a 12v 12 AH gel cell which gives me a clean source with ample capacity.
Later I put an ammeter in the servo supply and discovered it was drawing 300 ma when working rapidly.
Thank you,
Jim
T Chap,
Thanks for that tip, I was thinking along software lines as well. That's a good thing to remember for future troubleshooting.