
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.
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.
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
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
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.
I'll be sure to post once i get it set up.
Here is what I've done.
Here is the servo i used.
I removed the board from the case.
I snipped the pot off and soldered in the wires going to my pot.
I soldered the other end to my pot
I removed the servo's motor wires and added wires that plug onto the In1 and In2 of the hbridge.
Here i added the ground to the hbridge and to the ground of the servo cable going to the ezb
Since it is only spinning in one direction, what should i test?
also, you’ll have to check the data sheet but I’m pretty sure the hbridge IC doesnt want more then 5 volts. So you’ll need a voltage regulator on the servo pcb if it’s powered by the battery directly or ezb
But if you are talking about signals yeah you'll want your signal voltage under 5V. Something in the 2.3V-5V range would be fine for TTL levels.
As for power, I'm only running 5v into the ezb and I have 12v only going to the hbridge.
Here are my settings:
4 Wiring
Connect L298 VCC to either your battery supply positive or EZ-B power (red) on pin D0
2) Connect L298 GND to either your battery supply positive or EZ-B power (gnd) on pin D0
3) Connect L298 IN1 to EZ-B Signal Pin D0 (white)
4) Connect L298 IN2 to EZ-B Signal Pin D1 (white)
5) Connect L298 IN3 to EZ-B Signal Pin D2 (white)
6) Connect L298 IN4 to EZ-B Signal Pin D3 (white)
7) Connect L298 ENA to EZ-B Signal Pin D4 (white)
7) Connect L298 ENB to EZ-B Signal Pin D5 (white)
9) Connect L298 OUT1 to Motor 1
10) Connect L298 OUT2 to Motor 2
finally!
more h-bridge activity today -:)
working 2 car chassis now
both cars are on the road already - cheers!