ultrasonic and servomotor

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
kalmar79
Posts: 45
Joined: Sun Aug 20, 2017 8:18 pm
Been thanked: 4 times
Contact:

ultrasonic and servomotor

Post 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.
Attachments
ultra-servo_1.fcfx
(8.27 KiB) Downloaded 265 times
20180604_224100.jpg
20180604_224100.jpg (128.19 KiB) Viewed 3978 times
20180604_224054.jpg
20180604_224054.jpg (137.9 KiB) Viewed 3978 times

kalmar79
Posts: 45
Joined: Sun Aug 20, 2017 8:18 pm
Been thanked: 4 times
Contact:

Re: ultrasonic and servomotor

Post by kalmar79 »

I am using a hc-sr04 and a SG90 servomotor.

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: ultrasonic and servomotor

Post 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
Martin

kalmar79
Posts: 45
Joined: Sun Aug 20, 2017 8:18 pm
Been thanked: 4 times
Contact:

Re: ultrasonic and servomotor

Post by kalmar79 »

Thanks Martin, maybe tomorrow I check the flowchart again.

Post Reply