Loading...

10A Motor Speed Controller by Alan Bond

 

10A Speed Controller

10A SPEED CONTROLLER

This PICAXE based project was primarily designed for marine use in radio controlled model boats and supports batteries in the range 6v to 12v. It is a (relay) reversing type and includes a 5v BEC (battery eliminator circuit) to supply the receiver and rudder servo. Neutral (indicated by a red LED) is adjustable in the range 1.4mSec to 1.6mSec and has a small deadband to prevent 'creep'. The same circuit has been used with 30A automotive relays and better rated MOSFET, Schottky flyback diode and heatsinks for higher current applications, including driving an eight wheel drive featherweight  robot.

To give the relay an easy life, when direction changes are commanded, the PWM drive shuts down briefly prior to the relay being operated and sufficient time is then allowed for the contacts to finish 'bouncing' prior to PWM drive being re-asserted. Manufacturers quote relay ratings for *switching* but in this design the motor current at the time of switching is zero, and the relay's *carrying* capacity is far greater than its "8A" label suggests. The above is substantially true in the case of marine applications where there is very little inertia in the drive train and a moving boat doesn't back-drive the propeller, however in robot type applications substantial dynamo action can occur which will result in the relay contacts having to switch high currents - so beware! Likewise the power dissipation in the Schottky flyback diode D1 would then need watching too.

A PICAXE 08M microcontroller processes the r/c speed demand input and sets up the appropriate PWM drive signal. The 'pwmout' is a very powerful command in PICAXE Basic, which once invoked runs in the background leaving the chip free to perform its other housekeeping tasks. This signal drives the power MOSFET directly and a *logic-level* N-Channel enhancement power MOSFET must be used if it is to be fully turned on by the 5v swing from the PICAXE chip. A 5v regulator chip performs the BEC function as well as powering the PICAXE chip and relay coil. With 6v users in mind the LM2940-5 low drop-out voltage regulator is specified so the circuit will work down to 5.5v input. Users of 8.4v and above have the option to use the cheaper LM7805 regulator which has a 3v drop-out. This circuit has also been used on 24v (fit higher voltage part for C1!) but the resulting power dissipation in the regulator required a larger heatsink.

Users should ensure that the boat motor is wired up in such a way that the relay is de-energised when the boat is travelling forwards - this minimises battery power consumption and power dissipation in the regulator. The relay is de-energised in neutral, but to prevent continual clicking if 'inching' the boat in reverse it remains energised when entering neutral (from reverse) for a period of four seconds.
 
A transistor buffer is used to condition the signal from the receiver. The output voltage swing of some receivers (especially 2.4Ghz types) has been found to be insufficient to trigger the PICAXE 08M (Schmitt Trigger type) input.

At power up, the speed controller remains disabled until the input demand is set to neutral (ie this condition must be met to 'arm' the controller). If no demand signal at all can be  detected then the neutral LED will give a brief blink every 0.6 sec. If the demand signal is present but outside the neutral range the neutral LED will give a steady flash at about twice a second until the transmitter joystick is in the neutral position.

Once the controller has been 'armed' all subsequent input demands are checked to lie within the range 0.75mSec to 2.25mSec. If that condition is not met then the PWM drive is cancelled (stopping the motor). Again, if no demand signal at all can be  detected then the neutral LED will give a brief blink every 0.6 sec. When the signal is re-established, ten succesive 'good' pulses must be received in order to re-assert the PWM (at the prevailing throttle setting).
  
No provision has been made for programming the PICAXE chip in situ, so this must be done elsewhere in a slave rig.


10A Speed Controller Layout



As can be seen from the pictures, the unit is easily constructed on stripboard and a 200mm servo lead is soldered in and strain-relieved with a tie-wrap to provide the input interface. The fuseholder is a lttle tricky to persuade into the stripboard and benefits from being secured with a little superglue as the blade fuses are (necessarily) a very tight fit and need some force to remove them. The thicker green tracks identified as 'high current' paths should have a bead of solder run along them to boost their current carrying capacity - otherwise the fine regions of track either side of the stripboard holes act as quite low current fuses!

All the parts are available from Technobots, as below:-

PARTS
R1 - resistor 47k  #2008-047
R2 - resistor 4k7 #2007-407
R3 - resistor 1M  #2009-010
R4 - resistor 220R #2006-220
R5 - resistor 330R #2006-330

C1 - capacitor 1000uF 16v electrolytic  #2017-010
C2 - capacitor 100nF ceramic disk  #2013-100
C3 - capacitor 100nF ceramic disk  #2013-100


Q1 - transistor BC337-16  #2300-412
Q2 - power MOSFET STP55NF06L  #2300-856
Q3 - transistor BC337-16  #2300-412



U1 - integrated circuit PICAXE08M #3803-113 pre-programmed chip
U2 - 5v (low dropout) regulator LM2940-5   #2230-120

IC Socket for U1 #2700-008

D1 - schottky diode STPS1045D #2100-115
D2 - 1N4001 #2100-001 (pk of 5)

LED1 - 3mm light emitting diode, red - #2110-300

RV1 - preset potentiometer 4K7 #2000-405

RL1 - relay 8A DPCO pcb mounting #1601-023

SKT1 - 16A 2 way terminal block #1208-002
SKT2 - 16A 2 way terminal block #1208-002

FS1 - Mini Blade PCB Mounting Fuse Holder  #1310-081
FS1 - 10A Mini Blade Fuse  #1310-026

heatsinks TO220 PF750 x3  #2700-159

stripboard 95x64  #2700-110

200mm servo lead #3601-008

 

Comments

20/03/2011, 09:12

"Mhel,

Please advise your order number where you purchased the programmed chips."

19/03/2011, 22:58

"hi sir pls help me.i need the diagram of bl esc & servo thank you and more powers mellhiz(at)yahoo(dot)com"

06/01/2011, 15:13

"Tony,

What is your order / invoice number and I can get a copy Emailed to you?"

30/12/2010, 13:54

"Hello. I've placed my order for components. Alan Bond has sent you a cct diagram for the speed controller. How do I get a copy ? Is there a charge?
Tony"

14/12/2010, 11:50

"Message for Alan Bond.

Thanks very much. Will do as you suggest and keep you informed.

Regards

Tony"

11/12/2010, 09:00

"Tony, I have forwarded the circuit diagram to Technobots. Depending on your supply voltage you may wish to use a relay with a 12v coil (#1601-024) and return its 'hot' end to +12v rather than +5v - thereby saving power and dissipation in the 5v regulator.

Good luck with your PCB build - let us know (photo) how it turns out. "

09/12/2010, 20:58

"Tony,

We do not have a circuit diagram but we will pass on the message to Alan Bond. However, it would not be too difficult to de-engineer the strip board layout to produce your own circuit diagram from which you could then produce your own PCB."

09/12/2010, 17:04

"Can I order a circuit diagram for the speed controller ? I'm more familiar with producing my own pcb's for projects.
Your pre programmed chip is very well priced thanks for that.
Regards
Tony"

24/11/2010, 23:48

"The project relay is DPCO and has a 6v coil - this would need replacing with two 30A SPCO automotive relays #1601-030 the 'hot' side of whose coils (and cathode of their catching diode) would need returning to +12v and not the +5v the project relay connects to.

Q1 should be replaced with the higher gain version BC337-40 #2300-418 as it has to drive both coils.

The power MOSFET (Q2) used in the 30A version was a 160A 2.5mOhm device STP270N4F3 and the flyback diode should be uprated to the 15A device STPS1545FP #2100-120.

The fuse and connector blocks need suitably uprating too.

The 30A version is only really suitable for an experienced constructor to attempt, given that he will need to modify the layout considerably to suit the different relays.

A picture of the 30A version (I use two of them in my Springer Tug) can be seen in my article in the SRCMBC January 2010 Newsletter (link below)

http://srcmbc.org.uk/pdf_files/News_Jan_10.pdf"

21/11/2010, 21:49

"Dear Admin, I would like to use your Speed Controller project to control a 15-20Ah 12Volts motor (motor used in the electric car windows). Which are the different components to change? I would like to use two different channels to control the two motors on board of my ship. Is it possible to use the RC Airplane Throttle Channel (the control lever without spring) setting it in the middle with STOP position and in the back with reverse mode and in the forward with forward mode?
I have a classic PPM 40 Mhz RC Hitec 5 channels receiver. Is it OK to control the relay?
Thank You very much and best regards"

New Question or Review

Type the characters you see in the picture below.

 

Just a few of the companies Technobots are an official distributor for:
       Manufacturers