Something new:
I leaned something new the other day and decided to give it a go. Charlieplexing is a type of multiplexing for LEDs that allows N pins to control N*(N-1) LEDs. So 5 pins on a Tiny13 can control 20Leds. I used 14 and here is the result:
My journal of creating and experimenting with circuits, CNC, programming, and robotics
Thursday, March 13, 2008
Gripper: final version with new video and source code
As promised here is the source code. Also, I hinted at another project I want to tackle .. .that being an electromagnetic levitator. I think the Tiny is up to the task :)
Of course it would behoove me to get my development environment built too. I programmed the Tiny at least 50 times, by removing it from the socket on my circuit. I need to order a ZIF socket, a 6-pin programming cable, and a longer USB cable so I can do ISP and debug wire on future circuits :)
Jay
Of course it would behoove me to get my development environment built too. I programmed the Tiny at least 50 times, by removing it from the socket on my circuit. I need to order a ZIF socket, a 6-pin programming cable, and a longer USB cable so I can do ISP and debug wire on future circuits :)
Jay
Wednesday, March 12, 2008
Updates: 3/12/2008:
First let me say that if you are an engineer and a father a great "toy" for both you and your kid(s) is the Snap Circuits kits from www.elenco.com (available at Radio Shack for a premium price). We bought the Jr. kit as my son is only 4 and he and I have already made all 101 circuits in one day. I have since ordered the Extreme kit which should offer all kinds of experiments. it just arrived today :D I recommend you get the Extreme first.
Now back to my gripper controller project. I have decided to continue improving the design some more. Most all my friends that have seen the video have commented that the motion looks too jerky and that it's not obvious that my hand is controlling the position of the servo. To address these I am going to modify the code to only update the servo position at 5Hz even though the A2D is being read at 20Hz. Furthermore, the servo position will only move +- 1 each iteration. I may change this based on the actual movement I see of course. As for the second issue, I'll just shoot a better video and maybe add some explaining :) I also plan to add in another sensor to control the gripper opening and closing the same way.
Forward,
Jay
First let me say that if you are an engineer and a father a great "toy" for both you and your kid(s) is the Snap Circuits kits from www.elenco.com (available at Radio Shack for a premium price). We bought the Jr. kit as my son is only 4 and he and I have already made all 101 circuits in one day. I have since ordered the Extreme kit which should offer all kinds of experiments. it just arrived today :D I recommend you get the Extreme first.
Now back to my gripper controller project. I have decided to continue improving the design some more. Most all my friends that have seen the video have commented that the motion looks too jerky and that it's not obvious that my hand is controlling the position of the servo. To address these I am going to modify the code to only update the servo position at 5Hz even though the A2D is being read at 20Hz. Furthermore, the servo position will only move +- 1 each iteration. I may change this based on the actual movement I see of course. As for the second issue, I'll just shoot a better video and maybe add some explaining :) I also plan to add in another sensor to control the gripper opening and closing the same way.
Forward,
Jay
Monday, March 10, 2008
Update 3/10/2008:
I been MIA working on some paying projects. After I completed that, I got drawn into a new venture with a buddy. I can't say too much about what it'll be, but in order to get ready for it I've been playing with a new chip (to me anyway). The Atmel Tiny13.
Pros:
Here is a video of the results. I may add to it, I may not. The important thing is that on a 1" square PCB I can have a multi servo controller that uses analog feedback to position the servos.
I promise to post the source code once I get it cleaned up (this was just quick and dirty) and commented.
Forward,
Jay
I been MIA working on some paying projects. After I completed that, I got drawn into a new venture with a buddy. I can't say too much about what it'll be, but in order to get ready for it I've been playing with a new chip (to me anyway). The Atmel Tiny13.
Pros:
- 8-pin dip $1.29
- No xtal needed has internal clocks up to 9.6MHz
- Supports in-circuit programming
- 1K flash, .5k EEPROM
- 6 I/O all of which can be digital or 10-bit A2D
- Requires a pull-up on reset
- Uses the same GCC compiler as I am used to
- Internal clocks while they can be calibrated are somewhat inaccurate (thought they work fine for what I want)
- 1K of flash goes fast :)
Here is a video of the results. I may add to it, I may not. The important thing is that on a 1" square PCB I can have a multi servo controller that uses analog feedback to position the servos.
I promise to post the source code once I get it cleaned up (this was just quick and dirty) and commented.
Forward,
Jay
Subscribe to:
Posts (Atom)