Model Train Control

This code is developed to "test" drive a model train between two gates made of a LED and LDR.

Oct 7, 2016

16648 views

14 respects

Components and supplies

2

Resistor 10k ohm

2

Resistor 330 ohm

1

Motor Shield R3

1

Arduino UNO

2

Photo resistor

2

LED white

Project description

Code

Train Control

c_cpp

Please note that the pin numbers of LED and LDR has chanced. The pin numbers of motor control are fixed.

Downloadable files

scematic

scematic

scematic

scematic

Comments

Only logged in users can leave comments

Masters

0 Followers

0 Projects

+2

Work attribution

Table of contents

Intro

14

0