0% found this document useful (0 votes)
112 views

Lab 6 PDF

This lab report describes exercises completed using an Arduino board. The first exercise was to write a program to turn a relay on and off using a switch as input to the Arduino. The second exercise was to write a program to display 8 different LED patterns on a separate board each second. The third exercise was to write a program to display the number "1234" using a 7-segment display.

Uploaded by

Diego Ortega
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)
112 views

Lab 6 PDF

This lab report describes exercises completed using an Arduino board. The first exercise was to write a program to turn a relay on and off using a switch as input to the Arduino. The second exercise was to write a program to display 8 different LED patterns on a separate board each second. The third exercise was to write a program to display the number "1234" using a 7-segment display.

Uploaded by

Diego Ortega
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
You are on page 1/ 8

LAB REPORT

LAB 6:

ALUMNOS: Diego Ortega Sanz, Ángel Salas Navarro y Guillermo de la Obra Pérez

SUBJECT: Electrónica Digital y de Microprocesadores

PROFFESOR: Víctor Manuel Padrón

UNIVERSIDAD EUROPEA DE MADRID


GRADO EN INGENIERÍA ELECTRÓNICA
INDUSTRIAL Y AUTOMÁTICA

ASIGNATURA: ELECTRÓNICA DIGITAL Y MICROPROCESADORES


NOMBRE: ANGEL APELLIDOS: SALAS NAVARRO

INTRODUCTION

In this practice we had the first contact with Arduino, using the Arduino 1.Arduino model is an
electronic board based on the ATmega328 microcontroller. It has 14 digital inputs and outputs,
of these 6 can be used as PWM outputs (Modulation by pulse width) and has 6 analog inputs,
grounding. In addition, it includes a 16 Mhz ceramic resonator, a USB connector, a power
supply, an ICSP header and a reset button. To make the board perform the work, it is
necessary to carry out the code, once it is finished it will be loaded and it will be uploaded to
the Arduino via a USB cable between the computer and the Arduino.

Technical characteristics of Arduino Uno

-Microcontroller: ATM MEGA

-Voltage: 5V

-Voltage input (recommended): 7-12V

-Voltage input (limits): 6-20V

-Digital I / O Pins: 14 (of which 6 are PWM output)

-Analog inputs: 6

- DC Current per I / O Pin: 40 Ma

- DC Current to stop 3.3V Pin: 50 Ma

- Flash Memory: 32 KB (ATmega328) of which 0.5 KB are used for the boot

- SRAM: 2 KB (ATmega328)

- EEPROM: 1 KB (ATmega328)

- Clock Speed: 16 MHz

PLATE VIEW FROM ABOVE


GRADO EN INGENIERÍA ELECTRÓNICA
INDUSTRIAL Y AUTOMÁTICA

ASIGNATURA: ELECTRÓNICA DIGITAL Y MICROPROCESADORES


NOMBRE: ANGEL APELLIDOS: SALAS NAVARRO

Starting clockwise:

- Analog reference terminal (orange)

- Digital earth (light green)

- Digital terminals 2-13 (green)

-Dial Terminals 0-1 / Serial I / O - TX / RX (dark green) - These pins can not be used as digital I /
O (digitalRead () and digitalWrite ()) if you are using serial communication (eg Serial. begin).

- Reset button - S1 (dark blue)

-Programmer series in circuit "In-circuit Serial Programmer" or "ICSP" (light blue).

-Terminals of analog input 0-5 (light blue)

-Food and ground terminals (power: orange, earth: light orange)

-Entrance of external power supply (9-12VDC) - X1 (pink)

- External power or USB selector (place a jumper on the two closest pins of the power you
want) - SV1 (purple). In the new versions of Arduino, the power selection is automatic, so you
may not have this selector.

-USB (used to upload programs to the board and for serial communications between the
board and computer, it can be used as board power) (yellow)

Exercises.
Exercise 1. Obtain and run a program in C++ that energize (ON) and turn off
(OFF) relay K3 of the DISEN-EXP board, using as a control input switch S1.

Arduino Digital 7 pin is to be used as output, which through the amplifier circuit
shown in Figure 1, controls relay operation.

Arduino Digital 8 pin is to be used as input, to which through the switch bounce
elimination circuit shown in Figure 2, is fed signal from switch S1
GRADO EN INGENIERÍA ELECTRÓNICA
INDUSTRIAL Y AUTOMÁTICA

ASIGNATURA: ELECTRÓNICA DIGITAL Y MICROPROCESADORES


NOMBRE: ANGEL APELLIDOS: SALAS NAVARRO

Take into account that you are connecting two different boards. So there should be a
ground connection (or return path), in order signals can travel from one board to the
other.

Connections in DISEN-EXP board.

Ground. Almost any connector has power connection (circle – 5V, triangle – ground).

K3 Relay. Pin K3 on J5 connector (5th from left to right).

Switch S1. Pin 1 on J10 connector (1st from left to right).


GRADO EN INGENIERÍA ELECTRÓNICA
INDUSTRIAL Y AUTOMÁTICA

ASIGNATURA: ELECTRÓNICA DIGITAL Y MICROPROCESADORES


NOMBRE: ANGEL APELLIDOS: SALAS NAVARRO

Exercise 2. Obtain a program showing 8 different patterns on the LEDS of the DISEN-552

plate every second1.


GRADO EN INGENIERÍA ELECTRÓNICA
INDUSTRIAL Y AUTOMÁTICA

ASIGNATURA: ELECTRÓNICA DIGITAL Y MICROPROCESADORES


NOMBRE: ANGEL APELLIDOS: SALAS NAVARRO
GRADO EN INGENIERÍA ELECTRÓNICA
INDUSTRIAL Y AUTOMÁTICA

ASIGNATURA: ELECTRÓNICA DIGITAL Y MICROPROCESADORES


NOMBRE: ANGEL APELLIDOS: SALAS NAVARRO

Exercise 3. Obtain a program to display the number "1234" in the circuit of Figure 3.
GRADO EN INGENIERÍA ELECTRÓNICA
INDUSTRIAL Y AUTOMÁTICA

ASIGNATURA: ELECTRÓNICA DIGITAL Y MICROPROCESADORES


NOMBRE: ANGEL APELLIDOS: SALAS NAVARRO

You might also like