
ftlum
Hi All.
I'm working on making a full sized Dr. Who K-9 robot and need some help on how to activate a couple things with the EZ-b.
It's going to have a laser pointer in the nose, and I'm planning on taking out the push button switch and somehow activating it instead with the EZ-b. How would I do this?
There'll also be a USB-type powered digitial picture frame to activate. I imagine the same solution could be used for this too.
A little more complicated is a car antenna (it's extends his suction cup probe). There are 2 type of antennas as I understand. A semi-automatic one which I believe needs to revere polarity to retract, and a fully-automatic one which retracts when power is cut off. How would I wire both of these types (I'm not sure which is better)?
thanks in advance,
Frank
www.amazon.com/SainSmart-4-Channel-Relay-Module-Arduino/dp/B0057OC5O8/ref=sr_1_1?ie=UTF8&qid=1355588069&sr=8-1&keywords=arduino+relay
To activate a semiautomatic car antenna to a given distance and retract it back to "zero", I was thinking of using an H bridge. Would this work? From what I've read, you need to reverse the polarity of those motors and I'd need to keep track of the position of the antenna. I'm also using a sabertooth 2x12 for my wheels, but I presume there'd be no interference.
I'm guessing a 2 spdt relays could be an alternative, but it sounds like the h bridge is already set up to do what I want.
Do I have things right and how can I keep track of the antenna distance with either method?
Thanks again,
Frank
So on the antenna, do you want to be able to control how far out it goes and comes in? Or is it just going out to a fixed point and then retract back to starting position?
I may be wrong and hbridge may have the ability to track but I've not come across that action on my 4 wire hbridge, it just has the movement panel...
I understand that a fully automatic antenna just goes all the way up with power and retracts without power, so I'd think one of these relays could do that.
I'm not sure how hard it'll be to put in a servo. The housing would have to be cut up quite a bit.
I'm guessing there's a cable that rolls up and extends to push out the antenna but I don't know what sort of mechanism translates the rotational movement of the motor. The motors are always vertically positioned.
Frank
Here's how these things work. Not sure how easy this will be.
Frank
I've got more elbow room then most in my robot so I used a small project board that I cut down even smaller. Here's a pic of a small project board I made with 4 different switching transistors. I did use some heat shrink in places for insulation. A little messy but it works nice:
Here's a couple small drawbacks I can think of with the heat shrink methoid:
The heat shrink makes it hard to troubleshoot and repair. You need to replace the whole assembly if the transistor burns out.
Heat; transistors heat up sometimes depending on the use. However used like this I don't see this as an issue.
Frank, I'm using a h-bridge for my DC motor to turn the waist of my B9 back and forth. It works great but there are a few things to be aware of; Flyback voltage from the motor can and will damage unprotected circuits. This happens when the DC motor builds up a magnetic charge and sends that voltage back into the driving circuit when the h-bridge suddenly reverses direction of the motor. I burned up 3 h-bridges before I learned this lesson. A smaller motor may not cause this type of damage but I'm running bigger motors. The waist rotation motor is a 24vdc gear motor running through a Pololu VNH5019 Motor H-bridge. This is a very small and sturdy h-bridge. It has some over voltage protection but I also built small diode protection boards and placed them between the H-Bridges I'm using and the DC motors to keep the voltage backlash rushing into the h-bridges from the motors when the direction changes quickly. In short it consists of four quick switching Shockley diodes tied between the two motor leads and the two power supply leads to drain off the power surge to ground (that happens when the DC motor changes direction). That voltage can be up to twice the original voltage and like I mentioned above and will fry unprotected electronic parts (let the smoke out). Here's a pic of everything in place and running everything in the lower section of B9. You'll see two protection boards I made (the brown ones) protecting two h-bridges (again this may be overkill for you. I'm kinda anal):
Now for tracking where the antinia is; I'm using a Multi turn pot for encoder feedback running in-line on the waist gear next to the motor. This pot is connected to a ACD port of the EZ-B and it knows where the gear is by reading the voltage change on the pot. It's very precise and you need to write a EZ Script to control the stopping points. Her's what my setup looks like. You can modify this so work with your robot:
Here's a vid of it working:
I already have a ruff script written that works nicely but needs refining. It's in my project in the EZ-Cloud named "B9 Robot Control". There is actually one main waist rotation script that is called by any other script I choose to send stop point variables (like the speech recognition).
www.ez-robot.com/Community/EZCloud/Download.aspx?id=196
You can read the thread where I was helped by other forum members while learning this process here:
www.ez-robot.com/Community/Forum/posts.aspx?threadId=2333&page=1
Hope this all helps. Maybe after reading all this you will decide to use a simple servo motor and adapt it you your needs. EZB does a real good job controlling servos but the little suckers are noisy and not very strong.
Let me know if I can help at all. I'm no expert and can only comment on what little I've already learned.
Dave Schulpius