Building a radio controlled (electric) traction engine
- steamer68
- Trainee Fireman
- Posts: 208
- Joined: Tue Nov 28, 2017 11:33 am
- Location: Bishop Auckland, UK
Re: Building a radio controlled (electric) traction engine
Greg a fantastic job on your radio controlled traction engine and I really like the sounds.
Regards
Kevin
Kevin
- gregh
- Trainee Driver
- Posts: 572
- Joined: Sun Apr 01, 2018 5:44 am
- Location: Sydney, Australia
- Contact:
Re: Building a radio controlled (electric) traction engine
As soon as I started testing I noticed an intermittent control problem. I'm using a picaxe to control the motor speed, direction and steering. But there is some interference which causes the picaxe to stop and restart its program.
I am sure this is what is happening as if it’s in reverse at the time, when I restart it is in forward. This can only happen in the startup part of the program. The engine restarts when the throttle is returned to stop.
It happens mainly at full throttle (which is only about 55% of battery volts), but can happen at anytime, any direction and on straight or curves.
It doesn’t seem to do it on the bench, even when I put pressure (load) on the wheels.
After much investigation using my oscilloscope, I have managed to overcome the problem (I hope - who knows with intermittents?). But I don't understand why.
It seemed to have something to do with 400mV dips on the 5V caused by the steering servo which seems to take spikes of 1 amp when it's moving. I won't go into all the things I tried, I ended up feeding the 5V to the picaxe and Rx via a diode and then a 47,000uF capacitor. I only had a 'normal' diode so that's a 0.7V drop to the picaxe, but I'll get a Schottky type later.
Just for info, this is the voltage trace before I 'fixed' it. The fuzzy line is a 100mV peak-peak exponential type wave caused by the RX (why? who knows?). The dips are 400mV due to servo current. With the diode and supercap, these are both halved. And this is the circuit:
I am sure this is what is happening as if it’s in reverse at the time, when I restart it is in forward. This can only happen in the startup part of the program. The engine restarts when the throttle is returned to stop.
It happens mainly at full throttle (which is only about 55% of battery volts), but can happen at anytime, any direction and on straight or curves.
It doesn’t seem to do it on the bench, even when I put pressure (load) on the wheels.
After much investigation using my oscilloscope, I have managed to overcome the problem (I hope - who knows with intermittents?). But I don't understand why.
It seemed to have something to do with 400mV dips on the 5V caused by the steering servo which seems to take spikes of 1 amp when it's moving. I won't go into all the things I tried, I ended up feeding the 5V to the picaxe and Rx via a diode and then a 47,000uF capacitor. I only had a 'normal' diode so that's a 0.7V drop to the picaxe, but I'll get a Schottky type later.
Just for info, this is the voltage trace before I 'fixed' it. The fuzzy line is a 100mV peak-peak exponential type wave caused by the RX (why? who knows?). The dips are 400mV due to servo current. With the diode and supercap, these are both halved. And this is the circuit:
Greg from downunder.
The Sandstone & Termite's website: https://members.optusnet.com.au/satr/satr.htm
The Sandstone & Termite's website: https://members.optusnet.com.au/satr/satr.htm
Re: Building a radio controlled (electric) traction engine
All well beyond me Greg, but I’am glad you have it sorted.
ROD
Life is so easy when I run my trains.
https://gardenrails.org/forum/viewtopic ... 41&t=11364
https://www.youtube.com/@fairywoodlightrailway
Life is so easy when I run my trains.
https://gardenrails.org/forum/viewtopic ... 41&t=11364
https://www.youtube.com/@fairywoodlightrailway
Re: Building a radio controlled (electric) traction engine
I admire your tenacity, Greg. I must admit that I'd have assumed there was a dodgy connection if it was happening in the field but not on the bench, but the oscilloscope trace suggests something else is going on. Presumably, as the difference between this program and your usual one is the addition of the steering routine and circuitry, then it makes sense that this is where the glitch is happening. But as to why ....... ?
Rik
Rik
- tom_tom_go
- Driver
- Posts: 4824
- Joined: Wed Feb 23, 2011 3:08 am
- Location: Kent, UK
- Contact:
Re: Building a radio controlled (electric) traction engine
Surely there is a faulty component causing this?
-
- Cleaner
- Posts: 40
- Joined: Thu Jan 11, 2018 8:37 am
- Location: Dorset
Re: Building a radio controlled (electric) traction engine
I had a similar problem recently, the DFPlayer sound card I was playing with interfered with another 5 volt circuit (not the processor). I solved it as you with a schottky diode and capacitor. I also changed the layout to ensure the 0v and 5v lines of the offending device went directly to the regulator rather than being at the end of the power lines.
Servos are electrically noisy. I use the Tower Pro SG90 on my steam train and they produce 500mv of noise on the 5v line but the processor I use is 3 volt so is well protected by it's internal regulator.
You have a 0.1uF capacitor in your circuit diagram, ensure you have one as close to the processor power rails as possible.
Great to see someone else with an oscilloscope. My 1970s Telequipment D61a is still working well!
Michael
Servos are electrically noisy. I use the Tower Pro SG90 on my steam train and they produce 500mv of noise on the 5v line but the processor I use is 3 volt so is well protected by it's internal regulator.
You have a 0.1uF capacitor in your circuit diagram, ensure you have one as close to the processor power rails as possible.
Great to see someone else with an oscilloscope. My 1970s Telequipment D61a is still working well!
Michael
- gregh
- Trainee Driver
- Posts: 572
- Joined: Sun Apr 01, 2018 5:44 am
- Location: Sydney, Australia
- Contact:
Re: Building a radio controlled (electric) traction engine
Southern188 wrote: ↑Mon Apr 30, 2018 9:39 am I had a similar problem recently, the DFPlayer sound card I was playing with interfered with another 5 volt circuit (not the processor). I solved it as you with a schottky diode and capacitor. I also changed the layout to ensure the 0v and 5v lines of the offending device went directly to the regulator rather than being at the end of the power lines.
Not quite sure what you're saying, but my servo has separate power wires direct from battery and the picaxe+Rx are fed along another pair
Servos are electrically noisy. I use the Tower Pro SG90 on my steam train and they produce 500mv of noise on the 5v line but the processor I use is 3 volt so is well protected by it's internal regulator.
You have a 0.1uF capacitor in your circuit diagram, ensure you have one as close to the processor power rails as possible.
Yep, It's right at the picaxe terminals
Great to see someone else with an oscilloscope. My 1970s Telequipment D61a is still working well!
Michael
Greg from downunder.
The Sandstone & Termite's website: https://members.optusnet.com.au/satr/satr.htm
The Sandstone & Termite's website: https://members.optusnet.com.au/satr/satr.htm
- gregh
- Trainee Driver
- Posts: 572
- Joined: Sun Apr 01, 2018 5:44 am
- Location: Sydney, Australia
- Contact:
Re: Building a radio controlled (electric) traction engine
Always a possibility, but since I have got rid of the problem (fingers crossed) with the mods I made, it seems less likely to be a component.
What component could it be? I've tried different picaxe. I've checked that other Rx of the same type cause the same modulation on the battery. I hope it's not the servo as it's glued in. And I'm happy that the battery doesn't have too much internal resistance. I might try and measure another servo's current just for future reference.
One thing I do wonder about is the picaxe - datasheet says it operates internally on 3.3V but has a regulator so can operate from 5V and it selects automatically. I just wonder what it does as the voltage dips. Does it have trouble as the voltage falls and its internal regulator dropout voltage comes into play and that causes a restart?
Anyhow, while it continues to work, I ain't touching it.
Greg from downunder.
The Sandstone & Termite's website: https://members.optusnet.com.au/satr/satr.htm
The Sandstone & Termite's website: https://members.optusnet.com.au/satr/satr.htm
- tom_tom_go
- Driver
- Posts: 4824
- Joined: Wed Feb 23, 2011 3:08 am
- Location: Kent, UK
- Contact:
Re: Building a radio controlled (electric) traction engine
I agree, if it ain't broke don't fix it but having myslef had all sorts of odd issues with budget servos in the past I reckon it's that.
- gregh
- Trainee Driver
- Posts: 572
- Joined: Sun Apr 01, 2018 5:44 am
- Location: Sydney, Australia
- Contact:
Re: Building a radio controlled (electric) traction engine
Just to try and convince myself, I took a similar 'cheap blue' servo and had a look at it's waveforms.tom_tom_go wrote: ↑Mon Apr 30, 2018 1:22 pm I agree, if it ain't broke don't fix it but having myslef had all sorts of odd issues with budget servos in the past I reckon it's that.
Fed from my bench supply, it caused a 250mV dip in the supply every time it moved ( in engine I had 400mV).
I put a 1 ohm resistor in series and measured it's voltage drop= amps, and it takes a spike of 500mA each movement, with no load on the servo. I had estimated 1A in the engine, assuming 0.4 ohms. So I tested the battery and found its internal resistance incl the polyswitch is 0.6 ohms. So the servo would cause a 300mV dip calc compared to my measured 400mV. These are all close enough for me to say that I don't think the servo is faulty.
It all goes down as experience - running a servo takes big current spikes that have never been a problem for me before as I have always used a regulator for the picaxe supply.
Greg from downunder.
The Sandstone & Termite's website: https://members.optusnet.com.au/satr/satr.htm
The Sandstone & Termite's website: https://members.optusnet.com.au/satr/satr.htm
- gregh
- Trainee Driver
- Posts: 572
- Joined: Sun Apr 01, 2018 5:44 am
- Location: Sydney, Australia
- Contact:
Re: Building a radio controlled (electric) traction engine
I started this project hoping to be able to program the engine to run a sequence of movements, like driving down a street. But soon realised that complicated moves like driving a round corners would not work due to minor variables like leaves pushing it slightly off course.
Anyway I persevered, 'just to prove to myself that I could do it' - by that I mean the programming part.
So I just wrote a program to make it do a 3-point turn. Here's the video. It includes part of the original video showing it being driven around the streets of my layout.
https://youtu.be/EOo8xxAJctw
Anyway I persevered, 'just to prove to myself that I could do it' - by that I mean the programming part.
So I just wrote a program to make it do a 3-point turn. Here's the video. It includes part of the original video showing it being driven around the streets of my layout.
https://youtu.be/EOo8xxAJctw
Greg from downunder.
The Sandstone & Termite's website: https://members.optusnet.com.au/satr/satr.htm
The Sandstone & Termite's website: https://members.optusnet.com.au/satr/satr.htm
- tom_tom_go
- Driver
- Posts: 4824
- Joined: Wed Feb 23, 2011 3:08 am
- Location: Kent, UK
- Contact:
Re: Building a radio controlled (electric) traction engine
You have cracked that Greg just a shame the road is not forgiving enough for you to run the program.
Re: Building a radio controlled (electric) traction engine
Neatly done, Greg. Pity you can't program to allow for the vagaries of the terrain - unless of course, you get Google to sponsor you....
Rik
Rik
Re: Building a radio controlled (electric) traction engine
That traction engine is brilliant. I can only envy your skills.
Ian
Ian
Ian
- tom_tom_go
- Driver
- Posts: 4824
- Joined: Wed Feb 23, 2011 3:08 am
- Location: Kent, UK
- Contact:
Re: Building a radio controlled (electric) traction engine
Can you not do something with 'Back EMF' as I use to program this when I did DCC in OO scale for gradients?
- gregh
- Trainee Driver
- Posts: 572
- Joined: Sun Apr 01, 2018 5:44 am
- Location: Sydney, Australia
- Contact:
Re: Building a radio controlled (electric) traction engine
All things may be possible - just how much work do want to do. I assume you mean using back EMF feedback for speed control. Speed variations are not the main issue. It's the direction. Even ignoring what happens if it hits a rock or leaf and is deviated, there is the 'initial conditions' problem. Say I started it off pointing just one degree off straight, on a straight road - then after 4m it has wandered 70mm across the road! I just didn't think this through before I started with the auto idea.tom_tom_go wrote: ↑Sun May 06, 2018 1:02 pm Can you not do something with 'Back EMF' as I use to program this when I did DCC in OO scale for gradients?
BTW on back emf - I did install 'constant speed' control in a G scale loco but didn't like it! So I took it out of the program. I found that I like to have to apply power as I go uphill and reduce it as I go down.
Greg from downunder.
The Sandstone & Termite's website: https://members.optusnet.com.au/satr/satr.htm
The Sandstone & Termite's website: https://members.optusnet.com.au/satr/satr.htm
- gregh
- Trainee Driver
- Posts: 572
- Joined: Sun Apr 01, 2018 5:44 am
- Location: Sydney, Australia
- Contact:
Re: Building a radio controlled (electric) traction engine
I can see the traction engine now - spinning cylinders and radar dishes on top. All steam powered of course. The driver is retained for 'observational purposes'.
Greg from downunder.
The Sandstone & Termite's website: https://members.optusnet.com.au/satr/satr.htm
The Sandstone & Termite's website: https://members.optusnet.com.au/satr/satr.htm
Re: Building a radio controlled (electric) traction engine
That’s a brilliant bit of programming Greg. Thought it was going to stop at the ruler though…..
ROD
Life is so easy when I run my trains.
https://gardenrails.org/forum/viewtopic ... 41&t=11364
https://www.youtube.com/@fairywoodlightrailway
Life is so easy when I run my trains.
https://gardenrails.org/forum/viewtopic ... 41&t=11364
https://www.youtube.com/@fairywoodlightrailway
- gregh
- Trainee Driver
- Posts: 572
- Joined: Sun Apr 01, 2018 5:44 am
- Location: Sydney, Australia
- Contact:
Re: Building a radio controlled (electric) traction engine
Thanks Rod. I put the rulers there to see if it actually returned parallel to where it started and how far over it moved. Didn't quite get back parallel - a little less time on the reversing turn required.
Greg from downunder.
The Sandstone & Termite's website: https://members.optusnet.com.au/satr/satr.htm
The Sandstone & Termite's website: https://members.optusnet.com.au/satr/satr.htm
- gregh
- Trainee Driver
- Posts: 572
- Joined: Sun Apr 01, 2018 5:44 am
- Location: Sydney, Australia
- Contact:
Re: Building a radio controlled (electric) traction engine
This should be my final post!
I tried putting lap top speakers in the roof, fed from sound recording card. Sounded reasonable, till I ran the engine, then the motor/gear noise swamped it out. End of experiment.
But I did add a hurricane lamp so the driver can see his controls. But really it's so I can see that the power is turned on! FINIS
I tried putting lap top speakers in the roof, fed from sound recording card. Sounded reasonable, till I ran the engine, then the motor/gear noise swamped it out. End of experiment.
But I did add a hurricane lamp so the driver can see his controls. But really it's so I can see that the power is turned on! FINIS
Greg from downunder.
The Sandstone & Termite's website: https://members.optusnet.com.au/satr/satr.htm
The Sandstone & Termite's website: https://members.optusnet.com.au/satr/satr.htm
Who is online
Users browsing this forum: No registered users and 2 guests