Need a bit of help with a project
Zen6013
Posts: 1
Greetings to all you stampheads! I am a technician at a Raleigh switch manufacturer and have a side business building custom displays for trade shows. The presnt project is for my employer who sells optical , mechanical and magnetic encoders. I have been tasked to make a "busy box" display which people at trade shows can "play with". I need functional demonstrations of our products...3 different applications. The display is 24" high by 18" wide and 5" deep...so I have plenty of room.
The first application is an encoder plugged into a small LCD portable O-scope..so the user can turn the knob and see a square wave.
The second application is a dc motor connected to an optical encoder which outputs to a tach...the user can change the motor speed.
The third application is the one I need help with. Many of our customers are avionics manufacturers, and my client wants to have an avionics example on the "busy box". My idea was to hook up a quadrature encoder to my Basic stampII and simulate an aircraft autopilot. The 4 line LCD screen would have mostly non-changing text (such as "HEADING" and "DEGREES" etc) but I want the encoder to change the digital course readout....from 0 degrees to 259 degrees. The display has to re set to zero if you try and go past 259...and reset to 259 if you try and go to -1 (basic count up, count down with upper and lower limits).
I can easily do this with a quadrature up/down counter (for $250 or so)...but that wont look at all like an auto-pilot screen...would just be digits.
Anyone feel like jumping on board and helping me with some code or a similar example, I'd be most grateful as I dont have a great deal of time to figure this out on my own.
Zen
The first application is an encoder plugged into a small LCD portable O-scope..so the user can turn the knob and see a square wave.
The second application is a dc motor connected to an optical encoder which outputs to a tach...the user can change the motor speed.
The third application is the one I need help with. Many of our customers are avionics manufacturers, and my client wants to have an avionics example on the "busy box". My idea was to hook up a quadrature encoder to my Basic stampII and simulate an aircraft autopilot. The 4 line LCD screen would have mostly non-changing text (such as "HEADING" and "DEGREES" etc) but I want the encoder to change the digital course readout....from 0 degrees to 259 degrees. The display has to re set to zero if you try and go past 259...and reset to 259 if you try and go to -1 (basic count up, count down with upper and lower limits).
I can easily do this with a quadrature up/down counter (for $250 or so)...but that wont look at all like an auto-pilot screen...would just be digits.
Anyone feel like jumping on board and helping me with some code or a similar example, I'd be most grateful as I dont have a great deal of time to figure this out on my own.
Zen
Comments
The Stamp can do quadrature encoding if the pulse rates are kept reasonably low. (less than about 40 pulses per second, if I recall).
For an example, goto my website www.siskconsult.com, then Downloads and you'll see the quadrature counter program.
Cheers,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Sisk
http://www.siskconsult.com
·