This weeks Tech Tuesday shows you how to drive model railway
point motors with the Arduino microcontroller platform. In this video we show you how to program the Arduino to control a 16-channel 12V DC
Relay Module. The module we use in the video is by sainsmart.com. This particular board requires a stable 12V DC supply, after looking at using the 12V DC supply from several analog DC train controllers, including the fixed accessory outputs, we discovered that the DC train controllers did not output a stable / clean enough
12V DC. At the start of the video we show you how to use an old
PC-XT/AT power supply to provide a 12V and 5V bus for your Arduino model railway projects, then show you how to power the Arduino with this power source and how to power the 12V relay module.
Note: Some of the smaller (less than 16) channel relay boards use 5V DC or 3.3V DC instead of 12V.
Check your boards specs before hooking up the power!
The source code for this episode can be found:
https://github.com/oorail/arduino-rail/tree/master/point-motors/relay
Major Components -
16-channel relay board:
http://www.sainsmart.com/16-channel-12v-relay-module-for-pic-arm-avr-dsp-arduino-msp430-ttl-logic
.html
http://www.ebay.com/itm/16-Channel-12V-Relay-Module-Board-Optocoupler-Power-Supply-Arduino-ARM-DSP-/181965604674
Arduino Uno R3:
https://www.arduino.cc/en/
Main/ArduinoBoardUno
The Arduino Uno R3 is available on eBay.co.uk as well.
PC XT/AT
Power Supply:
http://www.newegg.com/
Product/Product
.aspx?
Item=N82E16817338010
http://www.ebay.co.uk/bhp/at-power-supply
Full component list:
1 x
Bread Board
20 x male/male single core wires
6 x female/female single core wires
1 x Arduino Uno R3 (or similar Arduino board)
1 x 12V Relay Board
1 x Peco
PL-11 point motor (or similar)
1 x 16V
DC power supply (to power point motor)
1 x 12V DC power supply (to power 12V relay board + arduino)
1 x Red
Wire
1 x
Black Wire
2 x terminal block (4-terminal)
1 x Any kind of PC 4-pin molex connector (
HDD/
IDE power cable adapters - search eBay for "4 pin IDE molex")
Tools:
1 x
Wire cutters / wire stripper
1 x knife
1 x screw driver
oorail.com does not warrant the accuracy, completeness or usefulness of the information available on this
YouTube video.
Nothing contained in or provided through this YouTube video is intended to constitute advice or to serve as a substitute for the advice of a engineering professional. Any reliance you place on such information is strictly at your own risk. We may include links to other web pages, but these links are not an endorsement of those pages. oorail.com is not responsible for the content of any web site not operated by oorail.com.
UNDER NO CIRCUMSTANCES WILL OORAIL.
COM BE RESPONSIBLE OR LIABLE IN ANY WAY FOR ANY CONTENT, INCLUDING BUT NOT LIMITED TO, ANY ERRORS OR OMISSIONS IN THE CONTENT, OR FOR ANY LOSS OR DAMAGE OF ANY
KIND INCURRED AS A RESULT OF ANY CONTENT COMMUNICATED ON THIS
YOUTUBE VIDEO, WHETHER BY OORAIL.COM
OR A THIRD PARTY. IN NO EVENT SHALL OORAIL.COM BE LIABLE FOR ANY
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
USE,
DATA OR PROFITS ARISING OUT OF OR IN CONNECTION WITH THE AVAILABILITY, USE OR PERFORMANCE OF ANY INFORMATION COMMUNICATED ON THIS YOUTUBE VIDEO.
Website - http://www.oorail.com
Twitter - http://twitter.com/oorail
Facebook - http://facebook.com/oorail
Copyright (c) 2016 oorail.com
Search keywords:
oorail oorail77 oorail.com model railways BR
British Rail British Railways Bachmann Hornby Dapol
Heljan train trainset locomotive steam diesel electric
DMU EMU DEMU model railroad HO scale OO gauge junction station express UK
England track P4 layout
Digital Command Control DCC DC analogue
LMS Princess Royal Class LNER GWR LMS GNER NR SR
Southern Railways London and
North Eastern Railways Great Western Railway London Midland Scotland Southern Rapido Trains
Digital Model Railway Control Systems Rail Transport Modeling
Hobby building a model railway getting started with model railways
- published: 03 Feb 2016
- views: 295