Arduino Traffic Light Project Guide
Arduino Traffic Light Project Guide
Regional META
Regional Meta
Center for Industry and Services of META
Apprentice
2013
Date:
Regional META
Traffic light
Presented by:
FILE.396991
TRAFFIC LIGHT
Presented to:
INTRODUCTION
In this laboratory, I start to learn about the tools of ARDUINO and their respective process.
of programming. The design consists of two traffic lights and a SIMOLINO prototype that I
load the appropriate design configuration.
Date:
Regional META
TABLA DE CONTENIDO
Contenido:
1. Introduction
2. Objectives
3. Theoretical framework
OBJECTIVES
GENERAL
Familiarize with the ARDUINO language in order to use this tool for projects.
to practice in the laboratories.
SPECIFIC
Develop the design programming set in the laboratory without any flaws.
Identify the tools of the new programming software for easy access.
THEORETICAL FRAMEWORK:
ARDUINO:
WhatisArduino?
You can use Arduino to create interactive objects, reading data from a wide variety of
switches and sensors and control a multitude of types of lights, motors, and other actuators
physical. Arduino projects can be autonomous or communicate with a program
(software) that runs on your computer (e.g. Flash, Processing, MaxMSP). You can use the board
assemble it yourself or buy it ready to use, and the development software is open and it
you can download for free.
WhyArduino?
There are many other microcontrollers and platforms with microcontrollers available for
physical computing. Parallax Basic Stamp, BX-24 from Netmedia, Phidgets, Handyboard from
MIT, and many others offer similar functionalities. All these tools organize the
complicated work of programming a microcontroller in easy-to-use packages. Arduino,
In addition to simplifying the process of working with microcontrollers, it offers some advantages.
regarding other systems for teachers, students, and amateurs:
Simple and straightforward programming environment - The Arduino programming environment is easy to
easy to use for beginners and flexible enough for advanced users. Thinking
In the teachers, Arduino is based on the Processing programming environment with
that the student who learns to program in this environment will feel familiar with it
Arduino development environment.
PROTEUS ISIS
The ISIS Program, Intelligent Schematic Input System (Schematic Routing System
Intelligent) allows designing the electrical plan of the circuit that is desired to be made
with very varied components, from simple resistors to some that
another microprocessor or microcontroller, including power supplies, generators
of signals and many other components with different features. The designs made
In Isis, they can be simulated in real time, using the VSM module, directly associated.
with ISIS.
Date:
Regional META
One of the features of Proteus, integrated with ISIS, is VSM, the Virtual System Modeling.
(Virtual Modeling System), an extension integrated with ISIS, with which you can
similar, in real time, with the possibility of more speed; all the features of several
families of microcontrollers, introducing ourselves the program that will control the
microcontroller and each of its outputs, while simultaneously simulating the tasks we want
that is carried out with the program. Circuits with microcontrollers can be simulated
connected to different devices, such as motors, LCDs, matrix keyboards, etc. Includes,
Among others, the families of PICs PIC10, PIC12, PIC16, PIC18, PIC24 and dsPIC33. ISIS is the
heart of the integrated environment PROTEUS. It combines a design environment of great power
exceptional with a huge ability to control the final appearance of the drawings.
FRITZING
Fritzing was created under the principles of Processing and Arduino, and allows designers,
artists, researchers, and enthusiasts document their Arduino-based prototypes and create
printed circuit schematics for their subsequent manufacturing. It also has a site
complementary web that helps share and discuss outlines and experiences and reduce the
manufacturing costs.
Date:
Regional META
Laboratory :
Traffic light
It consists of a device with three lights (red, yellow, green) which serves the function of
alert us with the meaning of each color of the traffic light; As we already know that
Red is for stopping or halting, yellow represents change or slowing down.
vehicle and lastly green represents go or forward.
This programming was very brief and focuses more on logical sense and reasoning, which I took.
120 minutes to develop it in the laboratory, the first step for programming begins
like this
Int amarillo1=12;
Int verde1=11;
Int rojo2=10;
Int amarillo2=9;
Int verde2=8;
Here we select the ports that we are going to use with their respective traffic light bulb
Voidsetup() {
pinMode (red1,OUTPUT);
pinMode (yellow1,OUTPUT);
pinMode (green1,OUTPUT);
Date:
Regional META
pinMode (yellow2,OUTPUT)
pinMode (green2,OUTPUT);
Voidloop() {
digitalWrite(red1,HIGH);
digitalWrite(red2, LOW);
digitalWrite(yellow1, LOW);
digitalWrite(yellow2, LOW);
digitalWrite(green1, LOW);
digitalWrite(green2, HIGH);
delay(1000);
digitalWrite(red1, LOW);
digitalWrite(red2, LOW);
digitalWrite(yellow1, HIGH);
digitalWrite(yellow2, HIGH);
digitalWrite(green1, LOW);
digitalWrite(green2, LOW);
delay(1000);
Date:
Regional META
digitalWrite(red1, LOW);
digitalWrite(red2,HIGH);
digitalWrite(yellow1, LOW);
digitalWrite(yellow2, LOW);
digitalWrite(green1, HIGH);
digitalWrite(green2, LOW);
delay(1000);
digitalWrite(red1, LOW);
digitalWrite(red2, LOW);
digitalWrite(yellow1,HIGH);
digitalWrite(yellow2, HIGH);
digitalWrite(green1, LOW);
digitalWrite(green2, LOW);
delay(1000);
NOTE:
As there are two traffic lights, we represent them with one and two (1-2) to avoid confusion.
hello
ANNEXES
Conclusions:
tools.
Date:
Regional META
DOCUMENT CONTROL
Theme
Traffic light