Making progress with the code rewrite. The code is much cleaner, better organized, easier to maintain, etc... I'm not done with it but made very time and getting faster at coding the chip.
I did manage to get the normal mode of the chip working. That is the mode that will allow the chip to manipulate the mouth piece of the outfit like I want. In addition, I implemented the status lights in the code.
As a reminder from the previous post, I want some status lights so that once I hook this up to the outfit, it gives me the ability to see that the card is functioning as expected. The following video isn't all the exciting but it shows 3 important things.
First, on the oscilloscope you will see the signal that drives the servos. Although I am showing only one signal, in reality there is 12 signals coming out so it could drive 12 servos right now.
The next thing is the blinking led. That light is being blinked by the code and it lets me know that things are still running. In computer terms, that is a heartbeat.
The final item to notice is the other LED remaining lit. That tells me the board is in normal operating mode. I plan on implementing two other modes. One is a test mode that I can use to make sure all the servos are working and at the same speed. The other mode will be an "angry" mode that I can trigger while in costume to simulate the character being angry. Again, there will be an LED for either of those modes to help me diagnose any problems.
Wednesday, June 29, 2011
Code rewrite underway
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment