Real Time Clock
argmafia
Posts: 30
I was wondering if there is a way to integrate a Real Time Clock to the Basic Stamp.· We need it to turn stepper motors at certain times and don't know what to do.· We have no ports left on the microcontroller so if there is a way to integrate through the LCD, using its port that would be great.· If anyone has any ideas, please get back to me.
Thanx
Thanx
Comments
You could use something like a DC-16 for your steppers, and free lots of I/O lines. (One line from the stamp = 16 I/O lines per DC-16- you can cascade up to four of them on one I/O pin)-
Ryan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ryan Clarke
Parallax Tech Support
RClarke@Parallax.com
From the description, you can chain up to 4 of them for a total of 64 output on a single serial line and drive your motors from a separate power supply.
www.parallax.com/detail.asp?product_id=30004
www.parallax.com/detail.asp?product_id=27938
And the DC-16:
www.parallax.com/detail.asp?product_id=31216
So for the DC-16 you would issue the commands for the Stepper positions like in the attached code. (Just some applications I was working on, the code will be cleaned up as I develop it- this is simply an adaptation of a stepper code written for direct drive of a stepper from a Stamp via a Darlington)-
Ryan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ryan Clarke
Parallax Tech Support
RClarke@Parallax.com