A bit of help plz
new
Posts: 6
Ok we are student at a technical school. We are not really that far in programming but the final project we need to do things we are not familar with. Now I am hoping someone can point us in the right direction most of my time is looking online with no direction and getting no where. Here is what we are doing, we are making a ech-schetch clock run by the basic stamp. Now we are using a seperate program for a clock that works, now we have 24LC32A chips for memory. How can we put programs on to these chips and have another basic stamp access these numbers to control the servos to write on the echo schetch?
Comments
You can program the 24LC32A's via a PC if you have a device that interfaces the Pc's USB to a I2C circuit.
http://www.robot-electronics.co.uk/acatalog/USB_I2C.html
Tell us a bit more about your project. Which Stamp are you using?, which clock chip? what are the memory chips for? Do you have a drawing or pics or programs written?
Where are you having the problem? Have you thought of how the servos will get connected to the ETCH-A-SKETCH? Don't forget most packaged servos will either do about one revolution with reasonable positioning accuracy or they will rotate many revolutions at a variable speed; If I understand your project, you'll need many revolutions plus positioning accuracy so that your system will be able to create the numbers on the screen.
Other than getting the motors/servos to actually be able to turn the knobs (need enough torque) on the etch-a-sketch, most of the programming will be to create the numbers you'll need. Take your project and break it down into small steps. Solve one problem at a time.
Heres a list of problems you might encounter. Hopefully you've already solved most of them.
1. do you have the Stamp programming software?
2. do you have a computer and cables to connect to the stamp?
3. how does the stamp know what time it is?
4. how do you set the time on the clock?
5. How much torque is required to turn the etch-a-sketc knobs?
6. How many turns of the knob to go from top to bottom and left to right.
7. What happens at the ends of travel?
8. How do you erase the screen?
9. How do you draw the numbers 1, 2, 3, etc?
10. Can certain motions be used to draw more than one number?
However, because its a class project, why not build it in the form of a network?
Have one stamp be the Master controller, have one stamp in charge of setting and reading the clock, have one stamp talking to the servos to turn the knobs on the etch-a-sketch.
The master will ask the clock stamp what time it is then transfer that to the servo stamp. The servo stamp figures out how to make the required digits and puts them on the screen.
The communication basics are described in the helpfile for SERIN and SEROUT.
You might have enough equipment so that several teams could each build a whole system.
Keep at it!
Tom
Unless you have a very large program, there's probably some room in the EEPROM that's not used for the program and you could use that for some data.