Model Railway Animation: Part 1, LEDs - Expanded By David King

Similar documents
Module 4: Traffic Signal Design Lesson 1: Traffic Signal (Arduino) Control System Laboratory Exercise Grade 6-8

Lesson 4 RGB LED. Overview. Component Required:

Azatrax Model Railroad Track Signal Control - Single Track

The UK sequence is shown below. The duration of each phase can be easily adjusted during the programming to suit.

ENGR 40M Project 3b: Programming the LED cube

LEVEL CROSSING MODULE FOR LED SIGNALS LCS2

R,G,B LEDs. Three PWM outputs and three primary colors. Just screams to be made, doesn t it? 220 (red,red,brown) or 330 (orange,orange,brown)

Lesson Sequence: S4A (Scratch for Arduino)

Light Emitting Diodes (LEDs)

8 PIN PIC PROGRAMMABLE BOARD (DEVELOPMENT BOARD & PROJECT BOARD)

Lab 7: Soldering - Traffic Light Controller ReadMeFirst

Simplified Signaling for Modelers

Tip: Faller Mittelstadt Apartments with Controlled LED Lighting Date: , Addition

ENGR 40M Project 3a: Building an LED Cube

Simulating Life on Your Layout

Objectives: Learn how LED displays work Be able to output your name on the display

Experiment 0: Hello, micro:bit!

Bruce Chubb s Computer/Model Railroad Interface (C/MRI) 101- The Basics

Arduino Lesson 3. RGB LEDs

Layout Design For Signaling

Lab 7: Soldering - Traffic Light Controller ReadMeFirst

Processes for the Intersection

Prototyping & Engineering Electronics Kits Magic Mandala Kit Guide

COLOUR CHANGING USB LAMP KIT

Part (A) Controlling 7-Segment Displays with Pushbuttons. Part (B) Controlling 7-Segment Displays with the PIC

Traffic Light Controller

ELECTRONIC GAME KIT TEACHING RESOURCES. Version 2.0 BUILD YOUR OWN MEMORY & REACTIONS

E-TEXTILES STARTER PACK

EP486 Microcontroller Applications

Total solder points: 117 Difficulty level: beginner advanced. RGB Controller K8088 ILLUSTRATED ASSEMBLY MANUAL

DIY ECU Checker Box (200SX CA18DET S13)

Lab Using The Multimeter And The Trainer

Bill of Materials: Super Simple Water Level Control PART NO

Lecture (04) Arduino Microcontroller Programming and interfacing. By: Dr. Ahmed ElShafee

Seth h N eu N mann 1

Preface. About SunFounder. About Super Kit. Free Support

QUIZ BUZZER KIT TEACHING RESOURCES. Version 2.0 WHO ANSWERED FIRST? FIND OUT WITH THIS

Traffic Light Controller. Thomas Quinn, Brandon Londo, Alexander C. Vincent, Yezan Hussein

Tailgate module BEXPRO PRINS VSI

This module senses temperature and humidity. Output: Temperature and humidity display on serial monitor.

Christmas LED Snowflake Project

Bill of Materials: 7-Segment LED Die with Arduino PART NO

Laboratory 11. Required Components: Objectives. Introduction. Digital Displays and Logic (modified from lab text by Alciatore)

CARLETON UNIVERSITY. Facts without theory is trivia. Theory without facts is bull 2607-LRB

Atlas Drop In Decoder

ECE Lab 5. MSI Circuits - Four-Bit Adder/Subtractor with Decimal Output

LED Array Tutorial. This guide explains how to set up and operate the LED arrays that can be used for your. Internal Structure of LED Array

VISSIM Tutorial. Starting VISSIM and Opening a File CE 474 8/31/06

Experiment 7 Fall 2012

Physics 323. Experiment # 10 - Digital Circuits

MONO AMPLIFIER KIT ESSENTIAL INFORMATION. Version 2.2 CREATE YOUR OWN SPEAKER DOCK WITH THIS

Layout Design For Signaling

Table 6.1: Level of Service Thresholds for Basic Freeway Segments. Density Range LOS (pc/mi/ln) A 0 11 B >11 18 C >18 26 D > E >35 45 F > 45

The Serial Port is Dead! Long Live the Serial Port! USB Serial Port Breadboard Experiments with the FTDI FT232R

1. Synopsis: 2. Description of the Circuit:

"Sophisticated Model Railroad Electronics"

Digital 1 Final Project Sequential Digital System - Slot Machine

16 Stage Bi-Directional LED Sequencer

DR4018 DIGISWITCH HANDLEIDING / MANUAL BEDIENUNGSANLEITUNG / MANUEL. DR4018 DIGISWITCH (v1.2) V1.2 ( )

7 SEGMENT LED DISPLAY KIT

Introduction 1. Green status LED, controlled by output signal ST

Arduino LED Matrix Control. Controlling lots of LEDs

Yosemite in HO FROM HALFDOME TO CAMP CURRY

Introduction 1. Digital inputs D6 and D7. Battery connects here (red wire to +V, black wire to 0V )

Part No. ENC-LAB01 Users Manual Introduction EncoderLAB

Technology Control Technology

Giant Digital Letterforms: LEDs and Pixelated Type

Obtained from Omarshauntedtrail.com

Chapter 3: Sequential Logic Systems

A Directional Indicator with a Symbol Based Interface for improvised Safety-Enhanced Directional Indicators using Matrix LED

ECB DIGITAL ELECTRONICS PROJECT BASED LEARNING PROJECT REPORT ON 7 SEGMENT DIGITAL STOP WATCH USING DECODER

ELECTRONIC GAME KIT ESSENTIAL INFORMATION. Version 2.0 BUILD YOUR OWN MEMORY & REACTIONS

How To Build Megavolt s Small Buffered JTAG v1.2

Lab #6: Combinational Circuits Design

SparkFun Inventor's Kit for micro:bit Experiment Guide

Experiment (6) 2- to 4 Decoder. Figure 8.1 Block Diagram of 2-to-4 Decoder 0 X X

Light-It Decoder p/n Lighting decoder w/built-in white LED

Introduction to Aspect Signaling with JMRI/PanelPro

PhidgetTextLCD with 8/8/8

This document is intended to provide information to allow the researcher to build their own device.

Design of a Binary Number Lock (using schematic entry method) 1. Synopsis: 2. Description of the Circuit:

Informatics Enlightened Station 2 Park distance control system

LAB #6 State Machine, Decoder, Buffer/Driver and Seven Segment Display

"Sophisticated Model Railroad Electronics"

apple Service Source Apple Studio Display 17" LCD (ADC) Updated 6 Decenber Apple Computer, Inc. All rights reserved.

Light Emitting Diodes and Digital Circuits I

Preface. If you have any TECHNICAL questions, add a topic under FORUM section on our website and we'll reply as soon as possible.

Lesson 7 Traffic Lights

Light Emitting Diodes and Digital Circuits I

Introduction 1. Green status LED, controlled by output signal ST. Sounder, controlled by output signal Q6. Push switch on input D6

Assignment #3: Piezo Cake

BOMB MANUAL DEFUSAL. Version 1. Verification Code: 241. Revision 3

MXS Strada USER GUIDE

CPS311 Lecture: Sequential Circuits

4.9 BEAM BLANKING AND PULSING OPTIONS

Complete Train Control. Run Your Trains, Not Your Track!

Symptom: Set does not start up and/or goes into protection, errors 67 and 68 generated

Step What to do Expected result What to do if test fails Component tested 1 Visual inspection. Board is accurately assembled

ENERGIZE YOUR BRICK BUILDING experience INSTRUCTION MANUAL

AXE101 PICAXE-08M2 Cyberpet Kit

Transcription:

Model Railway Animation: Part 1, LEDs - Expanded By David King By now you are most likely ready to proceed past the simple Blink sketch so that is what we will do now. A couple of simple sketches we can create will be to simulate a simple grade crossing flasher and a traffic light. A quick note about the LED itself is that you may have noticed that it may not have worked for you at first and there is a possible reason why this might of happened. The LEDs in kits have 2 leads with one being longer and the other shorter. The Long lead is the anode and it needs to be connected closest to the +5 volt power and the shorted lead is the cathode and should be located closest to the ground connection. We also use a resistor connected from the anode to +5 volts or from the cathode to ground. It doesn t matter which location the resistor is placed in the circuit just as long as it is in the circuit. If at first the LED doesn t light check to see if you have the LED wired up backwards. If it is backwards remove the LED and turn it around to swap those leads. When using a LED with the output of Arduino Uno it is okay to 1 or 2 LED s to a single pin. The output from each pin has a maximum rating of about 40 milliamps and each LED connected can draw up to 20 milliamps. As you can see if you connect 2 LEDs to a single output you could be at the limit for that pin. With all of that said there is a way to connect 2 LEDs to a single pin that only uses the 20 milliamps and not the 40 milliamps. This can be accomplished by the way we connect the LEDs in the circuit by connecting the LEDs in parallel or series. This image should help make this a little clearer.

The Grade Crossing Flasher The grade crossing flasher is just a pair of LEDs or sets of pairs of LEDs that need to flash at a set rate of speed and each LED pair must have one LED on while the other is off. This is the alternating pattern of LEDs that we want. In the real world this alternating flashing happens at about a rate of 1/3 rd a second for each of the LEDs. This is the time that we will use to keep it easy. Your completed sketch would be similar to my sketch shown below. In this sketch it is just a matter of adjusting the times from the original Blink sketch and adding the addition outputs for both pinmode and digitalwrite. As seen in this sketch I have connected 4 LEDs to the Arduino Uno just to keep the wiring very simple. There are other methods of wiring the LEDs but this is simple to understand and easy to connect. I have created a Fitzing diagram to show you how to connect the wires to the LEDs along with using some resistors. Remember that the resistor values that were supplied with your kit my vary slightly from the one that I m using in the diagram but that is okay as long as there are in a range of 220 to 560 ohms.

The Traffic Light The basic traffic light that we see out in the real world is a very simple device that has 3 lights, red, amber and green, with one set facing the northbound traffic, one set facing the eastbound traffic, one set facing the southbound traffic and a set facing the westbound traffic. In most cases the eastbound and westbound traffic light sets working in the same pattern. As well the southbound and northbound traffic light sets working in the same pattern. We can create a simple little chart to display this pattern and make it easier to understand. In the chart I used NS for North/South and EW for East/West. Also I added an extra row at the bottom of the chart so that I could use this for the pin assignments on my Arduino Uno. Step NS Green NS Amber NS Red EW Green EW Amber EW Red Time 1 On Off Off Off Off On 25 sec. 2 Off On Off Off Off On 7 sec. 3 Off Off On Off Off On 1 sec. 4 Off Off On On Off Off 22 sec. 5 Off Off On Off On Off 6 sec. 6 Off Off On Off Off On 1 sec. Uno Pin 7 8 9 10 11 12

As far as the sketch goes this is just and extended version of the sketch we used for the grade crossing flasher and uses 6 outputs to run all of the LEDs. Be sure to assign pinmode and digitalwrite for each LED in your sketch. Once complete you should have a sketch that looks similar to mine shown below.

The Fritzing or wiring diagram should look similar to the image below.

Conclusion This should help you create a few more sketches from items that you see out on every day life. As an example if you model railroad layout has a wharf maybe a couple of navigation lights at or near the dock should be added. You could research the flashing pattern and colour required for each of these lights. Also there are other warning lights that have patterns that are not simple on/off cycle such as the red/blue lights of a police car. Have fun and check out the video and we will continue this adventure in the next issue of The Canadian!