Arduino for Model Railroaders

Similar documents
Math Circles Finite Automata Question Sheet 3 (Solutions)

Misty. Sudnow Dot Songs

MEASURE THE CHARACTERISTIC CURVES RELEVANT TO AN NPN TRANSISTOR

Synchronous Machine Parameter Measurement

MONOCHRONICLE STRAIGHT

CAL. NX15 DUO-DISPLAY QUARTZ

Exercise 1-1. The Sine Wave EXERCISE OBJECTIVE DISCUSSION OUTLINE. Relationship between a rotating phasor and a sine wave DISCUSSION

Synchronous Machine Parameter Measurement

Module 9. DC Machines. Version 2 EE IIT, Kharagpur

Job Sheet 2. Variable Speed Drive Operation OBJECTIVE PROCEDURE. To install and operate a Variable Speed Drive.

Aquauno Select MINUTES. (duration) FREQUENCY LED. OFF 8h AQUAUNO SELECT 5 MIN FREQUENCY. the timer is being programmed;

Student Book SERIES. Patterns and Algebra. Name

PROGRAMMING MANUAL MTMA/01 MTMV/01 FB00329-EN

Digital Design. Chapter 1: Introduction

CS 135: Computer Architecture I. Boolean Algebra. Basic Logic Gates

001CK CK0012 FR-001CK0013 FR EN English

Section 16.3 Double Integrals over General Regions

Have u Herd? Herd is the Word. join. toolkit. COOL WAYS to TALK ABOUT BOOKS WITH YOUR

CS2204 DIGITAL LOGIC & STATE MACHINE DESIGN fall 2008

Make Your Math Super Powered

Blue Point Engineering

ABB STOTZ-KONTAKT. ABB i-bus EIB Current Module SM/S Intelligent Installation Systems. User Manual SM/S In = 16 A AC Un = 230 V AC

Ultra Low Cost ACCELEROMETER

Ultra Low Cost ACCELEROMETER

Abacaba-Dabacaba! by Michael Naylor Western Washington University

Kirchhoff s Rules. Kirchhoff s Laws. Kirchhoff s Rules. Kirchhoff s Laws. Practice. Understanding SPH4UW. Kirchhoff s Voltage Rule (KVR):

CS2204 DIGITAL LOGIC & STATE MACHINE DESIGN SPRING 2005

Synchronous Generator Line Synchronization

FOMA M702iG Manual for Data Communication

The Discussion of this exercise covers the following points:

Algorithms for Memory Hierarchies Lecture 14

! MINIMAL DIMENSIONS! MINIMAL MAINTENANCE! RELIABILITY! MARKET ORIENTATION

ECE 274 Digital Logic. Digital Design. Datapath Components Shifters, Comparators, Counters, Multipliers Digital Design

METHOD OF LOCATION USING SIGNALS OF UNKNOWN ORIGIN. Inventor: Brian L. Baskin

CHAPTER 2 LITERATURE STUDY

Application Note. Differential Amplifier

Experiment 3: Non-Ideal Operational Amplifiers

Experiment 3: Non-Ideal Operational Amplifiers

Reversible and Proportional Electric Actuators

Using Compass 3 to Program the Senso Diva Page 1

Example. Check that the Jacobian of the transformation to spherical coordinates is

Topic 20: Huffman Coding

Safety Relay Unit. Main contacts Auxiliary contact Number of input channels Rated voltage Model Category. possible 24 VAC/VDC G9SA-501.

Addition Mission: Facts Practice

BUBBLE BOBBLE 1 o C r t n o s l 2 t e G t g n i a t S r d e t 3 a B s c i Pl y a 4 a G m S e r c e n e 5 in r Sco g 6 ms e It 7 a P s s o w d r

& Y Connected resistors, Light emitting diode.

Spiral Tilings with C-curves

English Printed in Taiwan XG

Samantha s Strategies page 1 of 2

510 Series Color Jetprinter

Pavos Series - Small Aperture ( 5mm) nm Faraday Rotators and Isolators

Y9.ET1.3 Implementation of Secure Energy Management against Cyber/physical Attacks for FREEDM System

ECE 274 Digital Logic

PB-735 HD DP. Industrial Line. Automatic punch and bind machine for books and calendars

Student Book SERIES. Fractions. Name

NONCLASSICAL CONSTRUCTIONS II

Sequential Logic (2) Synchronous vs Asynchronous Sequential Circuit. Clock Signal. Synchronous Sequential Circuits. FSM Overview 9/10/12

Please Do Not Return Product to Store!

Engineer-to-Engineer Note

Section 17.2: Line Integrals. 1 Objectives. 2 Assignments. 3 Maple Commands. 1. Compute line integrals in IR 2 and IR Read Section 17.

Polar Coordinates. July 30, 2014

9.4. ; 65. A family of curves has polar equations. ; 66. The astronomer Giovanni Cassini ( ) studied the family of curves with polar equations

MAXIMUM FLOWS IN FUZZY NETWORKS WITH FUNNEL-SHAPED NODES

Joanna Towler, Roading Engineer, Professional Services, NZTA National Office Dave Bates, Operations Manager, NZTA National Office

Dataflow Language Model. DataFlow Models. Applications of Dataflow. Dataflow Languages. Kahn process networks. A Kahn Process (1)

Electrical data Nominal voltage AC/DC 24 V Nominal voltage frequency

Birka B22: threaded in variation

Crime Scene Documentation. Crime Scene Documentation. Taking the C.S. What should my notes include. Note Taking 9/26/2013

Device installation. AFR 1xx - Feature Description of the Smart Load. AFR1xx 145 % 200 %

INSTRUCTION MANUAL TM-D700A TM-D700A TM-D700E SPECIALIZED COMMUNICATIONS. 144/440 MHz FM DUAL BANDER. 144/430 MHz FM DUAL BANDER

Series. Teacher. Numbers

Challenge! 1 Warm-up. 2 Conversation. Language box. a Discuss the pictures with a partner.

THE SONGWRITING CLUB SONGS

IPA FITTINGS FOR REHAU NORDIC

Operation Manual. Addendum. Embroidery Machine. Product Code: 884-T13

Electrical data Nominal voltage AC/DC 24 V Nominal voltage frequency

Products no longer available

Energy Harvesting Two-Way Channels With Decoding and Processing Costs

MOS Transistors. Silicon Lattice

Geometric quantities for polar curves

Section 6.1 Law of Sines. Notes. Oblique Triangles - triangles that have no right angles. A c. A is acute. A is obtuse

OPERATING INSTRUCTION

Lecture 20. Intro to line integrals. Dan Nichols MATH 233, Spring 2018 University of Massachusetts.

Digital Design. Sequential Logic Design -- Controllers. Copyright 2007 Frank Vahid

JUMO Wtrans B Programmable Head Transmitter with Radio Transmission

Electrical data Nominal voltage AC/DC 24 V Nominal voltage frequency

EE Controls Lab #2: Implementing State-Transition Logic on a PLC

SDI-12 Soil Moisture Transducer

Multi-Point Astragal Prehanger Installation Instructions

Patterns and Algebra

Redundancy Data Elimination Scheme Based on Stitching Technique in Image Senor Networks

Patterns and Relationships

Experiment 8 Series DC Motor (II)

LAL2... Oil Burner Controls. Building Technologies HVAC Products

G9SA. Safety Relay Unit. The G9SA Series Offers a Complete Line-up of Compact Units. Model Number Structure

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Indoor Autonomous Vehicle Navigation A Feasibility Study Based on Infrared Technology

ABOUT THIS MANUAL ABOUT THIS MANUAL

Series AE W PFC INDUSTRIAL POWER SUPPLY

TRANSPORT POWER SUPPLY IP-05

Transcription:

Steve Mssikker Arduino for Model Rilroders Ornge Book Protocol 2 Full Description November 28

Tble of contents Dontors Documenttion Kit V.4-8 Pge 2 I wnt to tke the time to sincerely thnk you for your dontion to my site www.rduinorilwycontrol.com As you know, I strted this cmpign to bring bck the fun nd simplicity of rilrod modeling. Thnks gin for your generosity nd support! Sincerely, Steve Mssikker Tble of contents Introduce 3 Android Apps 5 How it works 6 Trin Control 7 Lyout Control 8 Automtion nd Scripts Recommended I2C byte commnds 2

Introduce Dontors Documenttion Kit V.4-8 Pge 3 The protocol commnds consist of only four chrcters, the lst chrcter is lwys "". The first symbol is the device type, the second symbol is the device identifier (number), the third symbol is the device sttus. A few exmples: the commnd to set the speed of the locomotive is equl to for plyer A hs the form "", switching of the junction D to the position stright "jd" An interesting point, there re lot of good mterils on the Internet bout the design on the bsis of Arduino. Much smller progrms for Android using Bluetooth for control. And, prt from simple exmples, there re prcticlly no posts how to tie together Android nd Arduino. The problem in the rules of dt trnsmission. For this purpose, number of good protocols hve been invented, for exmple the FIRMATA, which is included in the Arduino IDE collection of exmples, but it is for this project tht it is possible to mke the protocol simpler nd more flexible. In rilwy model, there is not lot of dt flow nd the speed of pssing the tem is lso not very importnt. Therefore, you cn use very simpliest URB protocol. And you cn chnge this protocol nd expnd it yourself. If you hve turntble on the lyout, then dding set of commnds strting with the "t" (Turntble) symbol, you cn control the riltble position in degrees multiple of ten "t34" (rotte the riltble to the position of 34 degrees). I will lso grdully dd new commnds to this protocol. This type of commnd is prsing by sketch, which is bsed on the exmple of Seril Event from Arduino IDE. For testing nd djusting your lyout devices you cn type these commnds directly into the terminl of Arduino IDE.

Dontors Documenttion Kit V.4-8 Pge 4 Why do you need it I think we lost control. Simple nd understndble mnipultions with the nlogue trnsformer hndle nd switches of junctions, when it is lwys cler wht hppens with your trins nd trcks, chnged to plurlity of digitl boxes in which mgic hppens. And this is very boring nd expensive mgic - it is incomprehensible nd constntly requires even more boxes. If you try to understnd DCC systems, it becomes very quickly cler tht this is very bd copy of industril digitl buses like CANbus nd others, nd the soſtwre is mixture of code written in vriety of objective progrmming lnguges, primrily Jv. I do not insist on my project, I just declre tht ll these digitl systems re too redundnt for modeller. I just tried to give you control over your hobbies. With the URB project, you only need to turn on the power your lyout, like old times. And not need computers :)

Android Apps Arduino Trin Junior Arduino Trin DNT Dontors Documenttion Kit V.4-8 Pge 5 Arduino Trin DUO Turnouts nd Lyout control Trin control Lights nd Ger Run scenrios Operting principles App Protocol 2

How it work Dontors Documenttion Kit V.4-8 Pge 6 A typicl exmple of switching the junction Point-motor Commnd Prsing Route Prsing I/O opertion Switch A j String Commnd Arduino Sketch Address 3 Commnd 3 Byte Locl Arduino Sketch Servo pins Android App Commnd URB Locl URB #3 A typicl exmple of switching junction, nd using feedbck for synchronous indiction of the position of the junction on both devices of plyers Only for Arduino Trin DUO nd DNT Commnd Point-motor j Switch A j feedbck Android App Plyer A Switch A Commnd j j feedbck String Prsing Commnd Arduino Sketch Route Address 3 Commnd 3 Byte Prsing Locl Arduino Sketch I/O opertion Servo pins Android App Plyer B Commnd URB Locl URB #3

Trin Control Dontors Documenttion Kit V.4-8 Pge 7 Direction D Only for Arduino Trin DUO nd DNT Select Plyer Plyer A Plyer B Relese R Direction D Commnd Complete d r Direction D Commnd Complete b d r Stop S d s b d s Forwrd F Bckwrd B d f d b b d f b d b Throttle Only for Arduino Trin DUO nd DNT Plyer A Speed Commnd Complete 2 3 4 5 6 7 8 9 Plyer B b b Only for Arduino Trin DUO nd DNT

Lyout Control Dontors Documenttion Kit V.4-8 Pge 8 Junctions (Turnouts) J NAME POSITION Commnd Complete Arduino Trin Junior, b, c, d Arduino Trin DUO, b, c, d, e, f, g, h, i, j, k, l, m, n, o Arduino Trin DNT, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y Position Switch A Arduino Trin Junior j j Switch A Switch B - Stright - Brnch Arduino Trin DUO nd DNT j d j d j o j o Switch A position BRANCH Switch A position STRAIGHT Switch D position BRANCH Switch D position STRAIGHT Switch O position BRANCH Switch O position STRAIGHT 4 5 25 Arduino Trin Junior Arduino Trin DUO Arduino Trin DNT j y j y Switch Y position BRANCH Switch Y position STRAIGHT Stright Brnch Set Defult position DEFAULT POSITON Feedbck position Only for Arduino Trin DUO nd DNT 9 9 9 y y

Dontors Documenttion Kit V.4-8 Pge 9 Lights & Gers l Arduino Trin Junior LIGHTS TOGGLE Arduino Trin Junior NAME STATE Commnd Complete Arduino Trin DUO Lights - 9 Gers - 3 Rndom Arduino Trin DNT Lights - 4 Gers - 2 Rndom - Rndom l l l d l d LIGHT Chnnel OFF LIGHT Chnnel ON LIGHT Chnnel 4 OFF LIGHT Chnnel 4 ON 4 9 Junior Arduino Trin DNT Arduino Trin DUO Arduino Trin DUO nd DNT l h l h LIGHT Chnnel 9 OFF LIGHT Chnnel 9 ON Only for Arduino Trin DUO nd DNT g l r l r RANDOM OFF RANDOM ON g g GEARS Chnnel OFF GEARS Chnnel ON l - l - g - ALL LIGHTS OFF ALL LIGHTS ON ALL GEARS OFF g c g c GEARS Chnnel 3 OFF GEARS Chnnel 3 ON

Automtion & Scripts Dontors Documenttion Kit V.4-8 Pge Custom toggle c Script button s CUSTOM TOGGLE NAME STATE Commnd Complete Script NUMBER Commnd Complete Arduino Trin Junior Arduino Trin DUO Arduino Trin DNT c c Plyer B Only for Arduino Trin DUO nd DNT c b c b AUTORUN AUTORUN 2 Arduino Trin DUO s s 2 Settings Only for Arduino Trin DUO nd DNT s Feedbck Arm mode ON Feedbck ON Settings Commnd Complete s j s j UNBLOCK Servo Point-motor BLOCK Servo Point-motor (defult) See servo point-motor documenttion DISABLE / ENABLE Feedbck Junctions Positions See GREEN BOOK Sensors ON s s s s ENABLE Lyout Sensors (defult) DISABLE Lyout Sensors

Dontors Documenttion Kit V.4-8 Pge Relese Feedbck (if Sensors ON) See Interlocking nd other new fetures from Dontors Are + Sound AWS Arduino Trin Junior ws Arduino Trin DUO nd DNT Plyer A Plyer B ws bws Arduino Trin Junior Arduino Trin DUO nd DNT Plyer A Plyer B + Sound AWS + Set Throttle to wd wd bwd Used first symbols of Protocol 2: A, B, C, G, J, L, S, 9 Free first symbols for your Protocol customition: D, E, F, H, I, K, M, N, O, P, Q, R, T, U, W, X, Y,, 2, 3, 4, 5, 6, 7, 8 The forbidden symbol of Protocol 2: Z

Recommended I2C byte commnds Dontors Documenttion Kit V.4-8 Pge 2 99 Soſtwre Reset URB 3 3 Junction # on URB I/O S - position stright Junction # on URB I/O S - position brnch 32 33 Junction # on URB I/O S2 - position stright Junction # on URB I/O S2 - position brnch 34 35 Junction # on URB I/O S3 - position stright Junction # on URB I/O S3 - position brnch Etc.