Page 1 of 1
ultrasonic and servomotor
Posted: Wed Jun 06, 2018 12:29 am
by kalmar79
Hello friends, I trying to do a flowchart with ultrasonic sensor and servomotor. But I don't know if is good my flowchart. I am working with arduino uno.
Re: ultrasonic and servomotor
Posted: Wed Jun 06, 2018 12:40 am
by kalmar79
I am using a hc-sr04 and a SG90 servomotor.
Re: ultrasonic and servomotor
Posted: Wed Jun 06, 2018 7:53 am
by medelec35
Hi kalmar79,
No you have not set servo up correctly.
Servo_Controller channel is relating to how many servos you have in total.
E.g if you only have 1 servo then since channel starts at 0 you must use 0 for channel value.
If you are controlling 2 servos in total then use channel 0 for servo 1 and channel 1 for servo 2 etc.
Martin
Re: ultrasonic and servomotor
Posted: Sat Jun 09, 2018 6:09 am
by kalmar79
Thanks Martin, maybe tomorrow I check the flowchart again.