Movement Joystick icon Movement Joystick — Analog joystick UI to control any ARC movement panel via mouse/touch-configurable dead zone, max speed, center-reset for smooth robot motion Try it →
Germany
YouTube
Asked — Edited

Hbridge Sound-Servo Control

Dear EZ-Robot Team and friends,

I want to control a 4 Wire HBridge PWM connected Motor with the Sound-Servo App or a similar program / script.

Its a mouth-motor from a toy, I cannot change the motor. so I want to use HBridge.

I dont wanna make a long script with mouth animations.. for 1-3 sentences its okay but for a conversation not.

Can someone help me ? is there a trick ?

regards Marty


ARC Pro

Upgrade to ARC Pro

Stay at the forefront of robot programming innovation with ARC Pro, ensuring your robot is always equipped with the latest advancements.

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#9  

Oh geez, then that's super easy.

Before each SayEzbWait() command, add the code to start the hbridge. Then after, add the code to stop it

I.e.


Set(d10, true)
Set(d11, false)
SayEzbWait("I am speaking right now")
Set(d10, false)
Set(d11, false)

Or, if you're using pwm on the hbridge, simply connect the pwm to a servo port and use Talk servo control. Initialize the hbridge to always be on by either hard wiring the direction or connect it to the ezb and init script such as


Set(d10, true)
Set(d11, false)
Author Avatar
Germany
YouTube
#10  

@DJ @Thetechguru

I want to use my own "german" MP3-Sounds with the soundboard 4 + sound servo ezb 4. I want to play selfmade voice sounds and the 4 Wire HBridge PWM must powering on " Forward(255,200) " if the sound servo recognized sounds.

Is it easy, too ?