Im trying to connect a Servo Motor to a 4-pin sensor which worked perfectly with a 3pin sensor, is there a way i could make it work for the 4-pin sensor?
(deleted)
monar47:
Im trying to connect a Servo Motor to a 4-pin sensor which worked perfectly with a 3pin sensor, is there a way i could make it work for the 4-pin sensor?
Connect a servo to a sensor ? How?
With wires ?
Ok , sry im trying to rotate a servo motor with a Ultrasonic Sensor of 4 pins ( Grnd,Echo,trigger,Vcc) and i have an example with a 3 pin sensor(Grnd,SIG,Vcc) but since im really bad with this ( IM learning, and really im trying) i dont get it how to make it posible.
Maybe you could give me an idea of this ( Move a Servo Motor when the sensor catch something at X distance ) ..
monar47:
Ok , sry im trying to rotate a servo motor with a Ultrasonic Sensor of 4 pins ( Grnd,Echo,trigger,Vcc) and i have an example with a 3 pin sensor(Grnd,SIG,Vcc) but since im really bad with this ( IM learning, and really im trying) i dont get it how to make it posible.
Maybe you could give me an idea of this ( Move a Servo Motor when the sensor catch something at X distance ) ..
If you have an example with the 3-pin sensor, it doesn't really make any difference with the 4 pin sensor.. You just have one more wire.. Have you made any progress up to now?
The connection is not the problem, we are trying to work with this code which is working with a 3pin sensor
but the sensors we have are 4pin sensors.
You don't provide enough details !!!
I can only guess you are using a 4-pin ultrasonic distance sensor(HC SR04) which differs to the wiring from the 3-pin, but that doesn't make a big deal!!! You can find the code and more details here :[Discontinued] Ultrasonic Ranging Detector Mod HC-SR04 Distance Sensor – SainSmart.com