Asked

Voice Variable In VR

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

ARC Pro

Upgrade to ARC Pro

Harnessing the power of ARC Pro, your robot can be more than just a simple automated machine.

#17  

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...:)

#19  

i have a few of those motor drivers, so the IN1 or 2 or 3, just goes to one of the pins?

PRO
Synthiam
#20  

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.

User-inserted image

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...


Set(d1, on)
Set(d2, off)

And the other direction...


Set(d1, off)
Set(d2, on)

And stopping...


Set(d1, off)
Set(d2, off)

And the other channel one direction


Set(d3, on)
Set(d4, off)

And the other channel on other direction


Set(d3, off)
Set(d4, on)

And the other channel stop


Set(d3, off)
Set(d4, off)

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.

#21  

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

PRO
Synthiam
#22  

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.

User-inserted image

#24   — Edited

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.