Edit: This is starting to be less General Electronics and more Power and Motors. I will request a move from the admins.
I am working on a portion of our club’s model train layout where I will be automating the running of model cars. I am using the Faller car system.
I AM using an Arduino to drive the traffic lights, read sensors and move servos to guide the cars but this specific question is more about general electronics.
The top circuit is the drive system for the model cars. You turn them on and they go. When the reed switch is near a magnet they stop. When you remove the magnet they go.
This is all good. The bard part is that when they go again, they instantly run at full speed ruining the realism of the model. I had read that you might be able to reduce this jack rabbit start with a cap and resistor.
The bottom circuit represents my understanding of such an arrangement.
My hope is that when the reed closes (after removing the magnet) that the cap will go through a period of charging, and during this period, the motor will start slowly and eventually get up to full speed. Even if that period is a half second it will be more realistic.
The batteries are 2 button cell NiCad batteries. 2.4v I think but it has been a while since I checked.
My questions:
Will the second circuit provide this behavior?
Do I run the risk of burning out the reed switch as the cap charges?
How do I compute the values of the cap and resistor?
Do I have the polarized cap the right way round? (not that having it right on the schematic means I will get it right when I start soldering)
I don’t think that arrangement will work . Really it needs something to allow the voltage across the motor to ramp up -
Maybe if the capacitor was directly across the motor and the resistor in series with the power supply ? It might reduce top speed a bit tho.
Needs a bit more thinking !
hammy has the correct connection scheme, however I think the values you will need are not very practical.
I'm not sure the current of the motor but lest say its around 20 ma (pure guess). For a 3 second ramp the capacitor would have to be in the order of 20,000 µF. This was a very crude calculation but will be in the ballpark.
I'm not sure of an alternative. Perhaps an ATTiny85 driving a small FET might fit. The would give you the most realistic startup because it would be a PWM signal which seems more realistic on models than voltage limiting.
I do have Attiny85s laying around.
Can you suggest a FET to purchase?
The batteries are 2 cell NiCad 250mAh in series. They run about 15 minutes on a charge.
Does 2.4v give me enough to run an Attiny85?
So, how simple could I make this with one of the ATTiny’s?
If I have the ATTiny drive a FET to run the motor, on power up I can start at PWM 0, then ramp up to full PWM.
I could have the reed switch just be an input to the ATTiny. If the reed switch is open, PWM 0. When the reed switch goes closed, ramp up to full PWM.
Or I could have the reed switch remain inline with the power for the ATTiny and the FET. When the reed switch is open, no power to the FET and the motor stops. When the reed switch goes closed, the ATTiny will boot up and ramp up from PWM 0 to full PWM.
Any thoughts?
How simple would this be component wise?
A low voltage ATTiny
A logic level FET (please recommend an appropriate model)
Maybe a cap to decouple power since I will be running a motor on the same power supply. I have many but any recommendations on a value to start with will help.
Is that enough?
I had not seen this Thread before today. I have had a interest in the Faller car system for some time but I have not yet bought one.
@vinceherman, you have not said what size are the vehicles you are working with. Is there space inside them for an MCU?
I have built a small wireless controller with an nRF24 module, Attiny1634 and a ROHM BD621xxx h-bridge. The biggest part (by far) is the nRF24 and you would not need that. The Attiny 1634 and the BD621 are what I would describe as large surface mount components which are quite practical for hand soldering. IMHO the key thing for squeezing into a small space is NOT to use any PCB.
I think accelerating gradual and stopping quickly does not look nice either and is indeed a bit harder without like a motor driver or more parts.
To kind of accelerate and brake gradual you could add a cap parallel to the motor and a resistor in series. But I think you need a large-ish cap. You could do it with some extra components in a discrete way but it get's bit quick.
You could use a small micro to do it. Do note quite some people already do that with FCS and made the cars completely digital, DCC for FCS including small decoders for cars Including break lights, turn signals etc.
@slumpert, I think you missed some of my message or I was not clear. The Faller Car System uses battery powered cars that have limited functionality. They have a magnet that follows a wire to steer the car. They have a reed switch that stops the car when a magnetic field is near. When the field is removed, the car runs again. It starts running at full speed, creating a 'jackrabbit' start. That is the property that I am trying to address with a slow start.
@Robin2, we have the HO sized system. 3 vehicles, a bus, a garbage truck and a straight truck. All have enough room inside for a dead-bug ATTiny and a few components. I can solder under my microscope and I can see using SMD but I imagine the proof of concept/prototype will be with the bigger through-hole type components.
I am not looking to control these remotely other than the stock features; wire following (with servos under the layout moving wires to turn the vehicle on to other wires) and stop control (with servos under the layout moving a magnet into position to activate the reed switch and stop the vehicle)
The one feature that I do want is a more realistic start. I had started investigating this using passive electronics. But it looks like an ATTiny and a signal level mosfet might be enough.
Oh, it would be way cool to have some of the features that Faller's digital system provides. One is a close parallel to adaptive cruise control.
But for today, I am looking to use PWM to turn the jackrabbit start into a smooth, realistic-looking acceleration.
I have ATTiny's laying around. Any recommendation on a fet? Any ideas on other components?
I am going to order a few Attiny1634. They look like fun! The BD621 look like they start at 3v and go up. I will be operating lower than that.
@septillion, you got in while I was typing my book.
For now, I am just using the non-digital Faller cars. No turn signals. Just stop and go.
ATTiny. Fet. Anything else? Any recommendation on a logic level FET?
As for the fet, any that can handle the current and is in linear region in normal operation. Simplest with a logic level mosfet / one with a low Vth.
A H-bridge looks like overkill to me. I use IRF7313 quite often (also in model trains). But it's also a bit large/overkill for this as it's a dual mosfet... Something like a 2SK3018 or AO3400A looks fine to me I think.
Don't forget to add a cap close to the uC and maybe an elco as well.
vinceherman:
But it looks like an ATTiny and a signal level mosfet might be enough.
I had overlooked the fact that you do not need to reverse the vehicle so a MOSFET should be fine and they are available in small sizes.
But think what extra features you could apply with a little more program. A 3-point turn would look very cool and make the other Faller users green with envy.
Step 1: make the layout control piece work. Reading IR sensors, controlling servos and managing the traffic lights. Vehicles stop at intersections and the bus stop.
Step 2: see if I can fix the jackrabbit start
Step 3: have HO scale people board the bus at the bus stop and deboard at the train station. And 3 point turns.
OK, if I could send data to the vehicles, turn signals would be a nice addition. But if I were to properly model Ohio traffic, only half the vehicles would ever use signals.