0% found this document useful (0 votes)
5 views17 pages

Arduino Traffic Light Project Guide

The document describes the development of a traffic light project using Arduino. The objective was to become familiar with the Arduino programming language and apply it to control two traffic lights. Theoretical concepts about Arduino and simulation tools such as Proteus and Fritzing are explained. Then, the programming to turn the lights of the traffic lights on and off sequentially is detailed, simulating the real operation of a traffic light.

Translated by

ScribdTranslations
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views17 pages

Arduino Traffic Light Project Guide

The document describes the development of a traffic light project using Arduino. The objective was to become familiar with the Arduino programming language and apply it to control two traffic lights. Theoretical concepts about Arduino and simulation tools such as Proteus and Fritzing are explained. Then, the programming to turn the lights of the traffic lights on and off sequentially is detailed, simulating the real operation of a traffic light.

Translated by

ScribdTranslations
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Date:

Regional META

Center for Industry and Services of META


Management System of
Quality
ELECTRONIC MAINTENANCE AND INDUSTRIAL INSTRUMENTATION

Regional Meta
Center for Industry and Services of META

ELECTRONIC MAINTENANCE AND INDUSTRIAL INSTRUMENTATION

Apprentice

2013
Date:
Regional META

Industry and Services Center of META


Management System of
Quality
ELECTRONIC MAINTENANCE AND INDUSTRIAL INSTRUMENTATION

Traffic light

Presented by:

MIGUEL ANGEL RODRIGUEZ GARCIA

FILE.396991

CENTER FOR INDUSTRY AND SERVICES


ELECTRONIC MAINTENANCE AND INDUSTRIAL INSTRUMENTATION
TECHNOLOGIST
2013
Date:
Regional META

Industry and Services Center of META


Management System of
Quality
ELECTRONIC MAINTENANCE AND INDUSTRIAL INSTRUMENTATION

TRAFFIC LIGHT

Presented to:

ENG. IVAN DARIO DUARTE BRITO

CENTER FOR INDUSTRY AND SERVICES


ELECTRONIC MAINTENANCE AND INDUSTRIAL INSTRUMENTATION
TECHNOLOGIST
2013
Date:
Regional META

Center for Industry and Services of META


Management System of
Quality
ELECTRONIC MAINTENANCE AND INDUSTRIAL INSTRUMENTATION

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

Center for Industry and Services of META


Management System of
the Quality
ELECTRONIC MAINTENANCE AND INDUSTRIAL INSTRUMENTATION

TABLA DE CONTENIDO

Contenido:
1. Introduction
2. Objectives
3. Theoretical framework

4. Development of the activity


5. Annexes
6. Conclusions
Date:
Regional META

Center for Industry and Services of META


Management System of
Quality
ELECTRONIC AND INDUSTRIAL INSTRUMENTATION MAINTENANCE

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.

Improve an electronic process

Successfully program the device for better utility.


Date:
Regional META

Industry and Services Center of META


Management System of
Quality
ELECTRONIC MAINTENANCE AND INDUSTRIAL INSTRUMENTATION

THEORETICAL FRAMEWORK:

ARDUINO:

WhatisArduino?

Arduino is a tool to make computers able to sense and control the


physical world through your personal computer. It is a development platform for
open source physical computing based on a board with a
simple microcontroller and a development environment to create software (programs) for the
plate.

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.

The Arduino programming language is an implementation of Wiring, a platform of


similar physical computing, which in turn is based on Processing, an environment for
multimedia programming.

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:

Affordable - Arduino boards are more affordable compared to other platforms.


microcontrollers. The most expensive version of an Arduino module can be mounted to
Dude, and even already assembled it costs quite a bit less than 60€

Multi-Platform - The Arduino software works on Windows operating systems,


Macintosh OSX and Linux. Most environments for microcontrollers are limited to
Windows.
Date:
Regional META

Center for Industry and Services of META


Management System of
Quality
ELECTRONIC MAINTENANCE AND INDUSTRIAL INSTRUMENTATION

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.

Expandable and open-source software - Arduino software is released under a license


free and ready to be expanded by experienced programmers. The language can
expand through C++ libraries, and if you are interested in delving into the details
technicians, one can make the leap to programming in the AVR C language in which it is
based. Similarly, you can directly add code in AVR C to your programs if
as you wish.

Expandable hardware and open source - Arduino is based on the


ATMEGA168, ATMEGA328, and ATMEGA1280 microcontrollers. The plans of the modules
are published under a Creative Commons license, so circuit designers with
experience can create their own version of the module, expanding or optimizing it. Even
relatively inexperienced users can build the development board version for
understand how it works and save some money.

PROTEUS ISIS

Proteus is a compilation of electronic design and simulation programs, developed


by Labcenter Electronics which consists of the two main programs: Ares and Isis, and the
VSM and Electra modules.

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

Industry and Services Center of META


Management System of
the Quality
ELECTRONIC MAINTENANCE AND INDUSTRIAL INSTRUMENTATION

The VSM Module

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 es un programa de automatización de diseño electrónico libre que busca ayudar a


designers and artists so they can move from prototypes (using, for example, plates of
tests) on final products.

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

Center for Industry and Services of META


Management System of
the Quality
ELECTRONIC MAINTENANCE AND INDUSTRIAL INSTRUMENTATION

DEVELOPMENT OF THE ACTIVITY:

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 rojo1= 13;

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

Center for Industry and Services of META


Management System of
Quality
ELECTRONIC MAINTENANCE AND INDUSTRIAL INSTRUMENTATION

pinMode (red2, OUTPUT);

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

Center for Industry and Services of META


Management System of
Quality
ELECTRONIC MAINTENANCE AND INDUSTRIAL INSTRUMENTATION

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

The operation of the prototype is seen in a setup done in PROTEUS (ISIS.


Professional) this is a manufacturing program for electronic assemblies.
Date:
Regional META

Center for Industry and Services of META


Management System of
Quality
ELECTRONIC MAINTENANCE AND INDUSTRIAL INSTRUMENTATION

We load the simulator with the hexadecimal by clicking on it.


Date:
Regional META

Meta Industry and Services Center


Management System of
the Quality
ELECTRONIC MAINTENANCE AND INDUSTRIAL INSTRUMENTATION
Date:
Regional META

Center for Industry and Services of META


Sistema de Gestión de
the Quality
ELECTRONIC MAINTENANCE AND INDUSTRIAL INSTRUMENTATION

ANNEXES

This diagram was made in FRITZING.


Date:
Regional META

Industrial and Services Center of META


Management System of
the Quality
ELECTRONIC MAINTENANCE AND INDUSTRIAL INSTRUMENTATION

Conclusions:

Apparently the process is a bit lengthy, so far I have completed


two practices with this ARDUINO developer.
It made it easier for me to understand the language of the ARDUINO program. I hope to develop with all its features.

tools.
Date:
Regional META

Center for Industry and Services of META


Management System of
Quality
ELECTRONIC MAINTENANCE AND INDUSTRIAL INSTRUMENTATION

DOCUMENT CONTROL

Name Cargo Dependency Company Date

Authors MIGUEL RODRIGUEZ Apprentice Industry Center and SIGNATURE


META services

Theme

Traffic light

You might also like