
PRO
TerryBau
USA
Asked
Hi all
Is there a way to fire a voice command... like say Hi, then the script will say what is your name... then you say your name, and the VR holds that variable (e.g. your name) and the EZ says the variable back?
Related Hardware EZ-B v4
thanks Dave, good to know I can wire my ear motors directly to the EZB, I may do the same. I saw the write up on the Sabre/Kang so I may go that route on the torso... I also finally (posted in our group) the call word and bing work... it's pretty cool and stable...
Eak careful about connecting motors directly to any ezb. I wouldn’t recommend it
If you need small form factor, consider something small and affordable like this: 3pcs 2-Way DC Motor Driver Module 1.5A 2V-10V PWM Speed Regulation Dual H-Bridge Replace L298N https://www.amazon.ca/dp/B087X9KBC7/ref=cm_sw_r_cp_api_glt_i_Y5X4HFVSD064EJ5ARC47?_encoding=UTF8&psc=1
they are cheap for 3 and very small little units for small motors
i have a few of those motor drivers, so the IN1 or 2 or 3, just goes to one of the pins?
Oh nice - yeah the IN connectors go to what ever EZB pins you have available. Then, you use the Dual HBridge robot skill. Do not use the Movement Panel version. Use the one from the HBridge tab.
I'll make a quick change to that robot skill to control the two channels separately. Right now they're setup to control the motors as movement.
In the meantime, you don't need to use that robot skill and instead can control them like this with code
Assume the they're connected like such...
IN1 is D1 IN2 is D2 IN3 is D3 IN4 is D4
Make one motor turn one direction in EZScript. I noticed youre using ezscript...
And the other direction...
And stopping...
And the other channel one direction
And the other channel on other direction
And the other channel stop
So the IN1 and IN2 is for the first channel (first motor), and the IN3, IN4 is for the second channel (second motor). The direction of the polarity determines the direction of the motor.
awesome, so one last dumb question you mention
Motor 1 IN1 = D1 IN2 = D2
so the D1 and D2, etc.... or whatever ones i use that are open, have a black, pos, and signal.... which pin from IN1 to D1 do I use, same for D2?
thanks for such great help
Oh yeah use the signal pin. Each IN will use a different signal pin from each port.
I made a quick change to ARC that will let you specify the direction. I'll release it tonight for you. You can use ControlCommand to specify the direction of each motor. See this screenshot i just took with the newest version that you'll have tonight.
wow super helpful!
Humm, DJ is completely correct (as usual. LOL) about motors not going directly to the EZB . DC motors tend to send a lot of voltage back through the circuit when they stop.
Reading back through my post I see I did give you incomplete and bad advice. Thanks @DJ.
Still, For many years I have had my ear sensor's little micro gear motors connected to my EZB for power and control. However I didn't mention that I have a voltage regulator in between the EZB and the little motor but I don't think that would block any fly back voltage. I've never had any issues in the time it's been wired like this. I'm in process of upgrading my robot so I'll probably change how I power them. I have a number of little H-Bridges in my extra parts box. Also, I don't like powering anything through EZB's so I'll also probably bypass it and wire directly to my power source. In my current configuration it was just so much more covenant to go to the EZB.
I read a thread a while back about reversing little geared micro motors that B9 builders use for the ear sensors. One or two of the knowledgeable club members were doing tests with speed and direction. If I remember correctly they came to the conclusion that sudden reversal of these little motors tended to destroy them. My ear motors are very expensive so I take no chances and never run them in the opposite direction. That's probably why I never installed an H-Bridge.
I'm going to contact David Mc. and relearn what he found in his micro gear motor tests. I'll post here what he says.