Skip to main content

Oyvind's Circuit Tips: Making a model train go back and forth (to deliver Schnaps)

A couple of weeks ago I attended a dinner with friends where there was a model train that would bring small shots of Aquavit (traditional Nordic liquor) around the table.

I was chosen to drive the train, which I enjoyed very much.

The train used a DC motor and it was possible to go both forward and backward.

How does that work?


A DC motor spins either backward or forward, depending on how you connect the plus and the minus. So one way of being able to go back or forth is to use mechanical switches, like this:

If you close switches 1 and 4, you have plus connected to the left side of the motor and minus to the other side. And the motor will start spinning in one direction.

If you instead close switches 2 and 3, you have plus connected to the right side and minus to the left side. And the motor spins in the opposite direction.

And that's how H-bridges work. Just that they're built with transistors instead of mechanical switches:

Keep On Soldering!
Oyvind @ build-electronic-circuits.com

PS! Are you into electronics and need some guidance to get to the level you want to be - here are two ways I can help you get better at electronics:

  1. Ohmify​ is for people like you who are interested in electronics and want to learn skills like soldering, circuit design, Arduino, and circuit board design - while also building practical projects along the way.
  2. My eBook ​Fun Circuit Experiments with Sound and Light​ is a short book where you'll learn basic electronics through experiments. If you're new to electronics, this is the perfect place to kickstart your learning.

Comments

Popular posts from this blog

Valued Subscriber, The meteoric rise in SATCOM

The meteoric rise in SATCOM   View web version 9 May 2024 — Issue 19 | Vol 9     Source Products   |   Webinar Library   |   Standards The meteoric rise in SATCOM The proliferation of satellite communication (SATCOM) terminals is a testament to human ingenuity, enabling data exchange from literally any point on the globe to another. Read more  → American Power Design, Inc. Miniature 3 W high voltage converter with output to 6,000 V The J3 Series DC/DC converters output voltage is controllable from 0 to 100% which provides positive and negative outputs from one single, compact, low-cost, high-voltage module.   View more ...

Electromagnetic Radiation Tester 👉 Save 22% now!

This radiation survey meter is used to test and learn electromagnetic radiation situation indoor and outdoor. View online ...

Weekend DIY electronics projects! Talking colorimeter, gamma ray measurement, and more

If you can't see this message properly, view it in your browser. May 3, 2024 | #589    Measure Gamma Rays with a Photodiode: Radiation Detector Using a BPW34 The first device that springs to mind when thinking about measuring radioactivity is the Geiger-Müller tube. However, these counter tubes can be difficult to find and expensive; and, even if you do manage to get hold of one, you will still need to find a way to generate its operating voltage of several hundred volts. It is less well known that even a humble photodiode such as the BPW34 can be used to detect X-rays and gamma radiation.   more...     The Andonstar AD210, an Affordable Digital Microscope with a 10.1" Display The Andonstar AD210 is an entry-level model digital microscope with a large 10.1...