Page 1 of 1
Servo choice clockwise or counterclockwise
Posted: Tue Jan 29, 2019 5:33 pm
by sundgau
I am currently working with servo motors and it turns out that there are, for identical PWM controls, servos that react to the opposite of others depending on the brand (
https://www.servocity.com/servo-direction-information). Would it be possible to include for the simulation model a possibility of choice (clockwise or counterclockwise)?
Best regards
Bruno
Re: Servo choice clockwise or counterclockwise
Posted: Tue Jan 29, 2019 6:43 pm
by Benj
Hi Bronu,
Yes this should be simple enough, I'll see if I can add this functionality into the servo components in v8.
Re: Servo choice clockwise or counterclockwise
Posted: Tue Jan 29, 2019 8:44 pm
by sundgau
Super! But I'm not yet the proud owner of the Flowcode V8 version ... it will be for a little bit later.
Servo motors are very widely used in the world of programming and simulation in the system panel (by integrating position sensors, for example), can simulate the final result provided that the servo parameterization can be adapted to all types of manufacturers.
It would be great if the owners of the Flowcode V7 version could also benefit ...
Thank you in advance.
Bruno
Re: Servo choice clockwise or counterclockwise
Posted: Wed Jan 30, 2019 5:30 pm
by Benj
Hi Bruno,
It was a very quick addition to add so I have added it to all the servo motor components in v8 and also added a "Reverse Output" property to the "Standard Servo" component in v7.
Simply copy the updated component to your "Flowcode 7/components" directory and restart Flowcode.
The servo controller component may also need a way of reversing the output for a specific channel so I will look into this too.
Re: Servo choice clockwise or counterclockwise
Posted: Thu Jan 31, 2019 6:50 am
by sundgau
Many thanks . My simulation is now perfect!
Bruno
Re: Servo choice clockwise or counterclockwise
Posted: Fri Mar 01, 2019 10:44 am
by sundgau
Hi Benj,
I still have a small request; can we also have the "invert" function for the Micro Servo component (Tower Pro 9g)?
Thank you in advance.
Bruno
Re: Servo choice clockwise or counterclockwise
Posted: Mon Mar 04, 2019 12:50 pm
by Benj
Hi Bruno,
I think this should already have it, maybe check the update system to make sure you are using the latest version of the component.

- ss2.jpg (55.81 KiB) Viewed 8757 times
Re: Servo choice clockwise or counterclockwise
Posted: Tue Mar 05, 2019 6:25 pm
by sundgau
Hello Benj,
Not for version 7 of flowcode !!! Can we have the .fcpx file for this "Tower Pro 9g" servo for flowcode V7?
Thank you in advance.
Bruno
Re: Servo choice clockwise or counterclockwise
Posted: Wed Mar 06, 2019 11:56 am
by Benj
Hi Bruno,
Aha ok here you go.
Re: Servo choice clockwise or counterclockwise
Posted: Wed Mar 06, 2019 8:46 pm
by sundgau
Thank you very much!
Re: Servo choice clockwise or counterclockwise
Posted: Tue Oct 01, 2019 2:57 pm
by AbuBakar505
Hi.
Hope you all fine...
I have a servo mg945(360° rotation)...
I want to make a program to control this motor...
Is there any chance in flowcode?
Thanking you in advance..
Re: Servo choice clockwise or counterclockwise
Posted: Tue Oct 01, 2019 5:23 pm
by Benj
Hello,
Constant rotation servo motors are usually fairly easy.
If you set the servo motor controller component to output a min of 1ms and a max of 2ms then the mid point value of 128 should give you 1.5ms which should result in a stopped motor. Moving the control value a bit either way should allow rotation in either direction.
You can also mod a normal servo motor so it will constantly rotate.
https://www.youtube.com/watch?v=zV_5wUo7Kxs