CC3D as a motor controller

199 views
Skip to first unread message

mg_geek

unread,
Feb 8, 2014, 5:42:10 PM2/8/14
to phoeni...@googlegroups.com
I know this is not an aircraft, but I want to use a CC3D to control a motor. it has one input and one output when the CC3d is moved in any direction but up and down the motor turns, the faster the CC3D is move the faster the motor turns, and when the CC3D stops moving the motor stops
I have tryed to set it up as a ground vehicle and a custom vehicle. I could not get a output assigned to the motor it the custom vehicle
Thanks
Kelly

peabody124

unread,
Feb 8, 2014, 6:09:47 PM2/8/14
to phoeni...@googlegroups.com
What is the connection to the motor? I.e. are you using something that converts a PWM output to a motor rotation?

mg_geek

unread,
Feb 8, 2014, 6:23:31 PM2/8/14
to phoeni...@googlegroups.com
I am using a 15 amp ESC with a 5 v bec and a servo tester for the input. The input works but the assignment is a dash in the output tab

peabody124

unread,
Feb 10, 2014, 6:17:26 AM2/10/14
to phoeni...@googlegroups.com
Ok. So let me understand this. When the FC is still, you want the PWM output to be 1000 (no motor turning). When the FC rotates _either_ way you want the motor to rotate?

Sorry I'm not really understanding what you are asking properly.

mg_geek

unread,
Feb 15, 2014, 1:20:14 AM2/15/14
to phoeni...@googlegroups.com
Thanks Peabody for answering.
I want, if the CC3D is mounted on a carriage and let say you moved the carriage 10 ins  the motor would turn 1000 turns. If the carriage moved faster or slower the motor would turn the same turn per in. approximately.  Just the motor would go faster or slower. The motor turns in the same direction even if the carriage goes backward or forward

Thanks
Kelly

Reddog

unread,
Feb 15, 2014, 8:10:20 PM2/15/14
to phoeni...@googlegroups.com
Hi Kelly,

My coding skills are nothing like most on Tau Labs but I don't think you are going to get the precision you want. The CC only has accel and gyros and separately or together, neither are useful for the precision you want, for the use case you want. CC is never going to know that it moved exactly 10 inches because of the sensor options avaiable. You might be thinking of using a GPS as well but they are not very precision either so they are not going to help. I don't know of a single autopilot that has the precision you are after for the use case you want.

Is there a reason you cannot use something much simpler for example a magentic encoder or potentiometer?

mg_geek

unread,
Feb 15, 2014, 11:10:23 PM2/15/14
to phoeni...@googlegroups.com
It does not have to be that accurate. it is for a sowing machine  It is for my sister-in-law She has a controller now that uses encoders but the wheels and wires keeps getting stuck. I seen on InvenSense site they had a screwdriver that if you twisted it the motor would turn. The farther you turned it the faster the motor would go.
Thanks

Reddog

unread,
Feb 16, 2014, 7:30:48 AM2/16/14
to phoeni...@googlegroups.com
It would really help if you were able to detail what you were trying to achieve. Its pretty hard to help you not knowing exactly the type of motion you are trying to capture.

CC outputs values to be used for servos, not continuous rotation. You could change the code to output for continuous rotation. Alternatively you could buy yourself one of the cheaper Arduino autopilots and write some code for it. Its not easy but once you get the hang of it, its not hard either.

mg_geek

unread,
Feb 16, 2014, 3:58:24 PM2/16/14
to phoeni...@googlegroups.com
I tried a custom vehicle but when i got to the output tab The output channel are unassigned. I cannot find any place to assign the outputs

Reddog

unread,
Feb 17, 2014, 5:12:56 AM2/17/14
to phoeni...@googlegroups.com
You are not going to get much help unless you tell us what you are trying to achieve. See my post before your last post.

mg_geek

unread,
Feb 17, 2014, 2:16:20 PM2/17/14
to phoeni...@googlegroups.com
This type of sowing machine moved around and the cloth is stationary   The controller  is mainly to compensate for the uneven speed of a person move the sowing machine around. 
Reply all
Reply to author
Forward
0 new messages