Asked
Resolved Resolved by ptp!

Hbridge And 10K Precision Pot For Feedback

I want to use a precision 10k pot for positioning feedback for hbridge control.

For my R2 I'm adding lifts for the periscope, radar and zapper but im unsure how to wire it for the ADC.

User-inserted image

User-inserted image

Im using a bourns pot, i understand pin 2 goes to the white pin of my adc port, for the reading, where do i get the power from for pin 1?  I have 5 volts running the exb because that's the max my micro servos can take and i have 12v running into the hbridge for motor power.

Ive been looking through a lot of posts, and cant find reference to this, just not to get the power from the adc port.

This is a second ezb4 that will only be controlling 4 dc motors for lift, 4 micro servos for spinning the stuff, an led for the zapper and a 3v air pump for smoke.


Related Hardware EZ-B v4
Related Control ADC Value

ARC Pro

Upgrade to ARC Pro

Your robot can be more than a simple automated machine with the power of ARC Pro!

PRO
USA
#1   — Edited

POT: PIN 1 = EZB adc's port black pin = GND PIN 2 = EZB adc's port white pin = input PIN 3 = EZB adc's port red pin = 3.3v

PRO
Synthiam
#2  

Use the electronics (pcb) of servo and connect it to an hbridge. It’s way easier and gives you fine control of positioning.

#3  

Dj sures, i have a couple questions.   I've been reading through the forums and can't find details on how the pcb board is connected to the hbridge, is there a post or tutorial i should read on the hook up?

This question might be answered by said post.   Once hooked up are the controls a servo or scripts?  Auto Position would sure be nice if its connected as a servo.

I have an Amazon gift card burning a hole in my pocket, is any digital servo good to use?

Thanks

PRO
USA
#4   — Edited

Try something like this:

User-inserted image

The h-bridge requires 5v logic, so the servo PCB must be fed with 5v. If your EZ-B is connected to a 5v power source you can connect the servo pcb directly to EZB digital port (vin/red), if not you will need a DC/DC to get the 5V from the vin.

PRO
USA
#5   — Edited

If your motor is spinning in the opposite direction you ll need to swap the connections between the servo and h-bridge e.g. OUT1 -> IN2 / OUT2 -> IN1

PRO
Synthiam
#6  

Nice drawing ptp! You got it dead on!

#7  

That is great!  I sure hope others will see and use your drawing too.

I'll be sure to post once i get it set up.

PRO
Synthiam
#8  

Nice!! People will appreciate a demo. I’ve been saying to use hbridge with servo pcb’s for years but don’t think anyone has. It’s essentially a super powerful but cheap saber tooth. I kind of invented it on my own cause I’m a little crazy like that ... but it’d be neat to see more people adapt it