Stamp capabilities
Jonathan Allison
Posts: 96
Hi guys/gals
Is it possible, to control 5 buttons (switches), an LCD, and a stepper motor controllor with a bs2 ic?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Johnny
Is it possible, to control 5 buttons (switches), an LCD, and a stepper motor controllor with a bs2 ic?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Johnny
Comments
Note the BS2 is 'single tasking', so you'll need to write your 'main' loop with that in mind. The BS2 cycles at about 100 uSec per PBasic instruction.
It's not fast, but it's very capable. And it's MUCH faster than I am.
Judging by your component list, I believe the BS2 can do what you have in mind. I'm assuming you probably want it to check button status, and once a button is triggered, display a message to the LCD, then start stepping the motor. From a programing standpoint, you probably want it to check back with the buttons after a step and determine if it needs to keep going, stop, reverse, etc. It shouldn't be too hard. If you explain exactly what you want it to do, then we can tell you for sure whether or not the BS2 will work.
Dave
The machine needs to be independant, hence the 5 buttons (up, down, left,right and set) and LCD screen. This shall serve as the user control panel. The user shall first specify the parameters, number of rotations, speed (RPMS), max right and left distance for wire guide. Once the user sets all this up, which obivously is stored in variables they would hit the go button (set).
The bs2 then only has to do the following
WHILE Rotations < MaxRotation
···· Rotate spool motor 1 rotation
···· Shift Wire Guide (left or right depending on current wire flow direction)
···· CheckForUserInputOnCancelButton
···· UpdateLCDWithCurrentRotationNumber
·····Rotations++
END WHILE
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Johnny
Post Edited (Jonathan Allison) : 1/19/2005 2:27:19 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
"A problem well defined, is a problem half solved"
Bean.
Sorry, had nother better to offer!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
Steve
http://members.rogers.com/steve.brady
"Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Knight Designs
324 West Main Street
P.O. Box 97
Montour Falls, NY 14865
(607) 535-6777
Business Page:·· http://www.knightdesigns.com
Personal Page:··· http://www.lightlink.com/dream/chris
Designs Page:··· http://www.lightlink.com/dream/designs
·