FABO ACADEMY X ELECTRONIC DESIGN

Similar documents
Objectives: Learn what an Arduino is and what it can do Learn what an LED is and how to use it Be able to wire and program an LED to blink

For this exercise, you will need a partner, an Arduino kit (in the plastic tub), and a laptop with the Arduino programming environment.

Programming 2 Servos. Learn to connect and write code to control two servos.

Lab 2: Blinkie Lab. Objectives. Materials. Theory

HAW-Arduino. Sensors and Arduino F. Schubert HAW - Arduino 1

Pulse Width Modulation and

Programming a Servo. Servo. Red Wire. Black Wire. White Wire

Arduino STEAM Academy Arduino STEM Academy Art without Engineering is dreaming. Engineering without Art is calculating. - Steven K.

Module: Arduino as Signal Generator

Coding with Arduino to operate the prosthetic arm

EE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Labs Introduction to Arduino

Lesson 3: Arduino. Goals

Attribution Thank you to Arduino and SparkFun for open source access to reference materials.

Peek-a-BOO Kit JAMECO PART NO / / Experience Level: Beginner Time Required: 1+ hour

A servo is an electric motor that takes in a pulse width modulated signal that controls direction and speed. A servo has three leads:

Adafruit 16-Channel Servo Driver with Arduino

Workshops Elisava Introduction to programming and electronics (Scratch & Arduino)

ARDUINO / GENUINO. start as professional

Distance Measurement of an Object by using Ultrasonic Sensors with Arduino and GSM Module

1Getting Started SIK BINDER //3

Electronic Prototyping

DASL 120 Introduction to Microcontrollers

EGG 101L INTRODUCTION TO ENGINEERING EXPERIENCE

Electronic Components

Arduino: Sensors for Fun and Non Profit

MAKEVMA502 BASIC DIY KIT WITH ATMEGA2560 FOR ARDUINO USER MANUAL

Internet of Things Student STEM Project Jackson High School. Lesson 3: Arduino Solar Tracker

APDS-9960 RGB and Gesture Sensor Hookup Guide

PLAN DE FORMACIÓN EN LENGUAS EXTRANJERAS IN-57 Technology for ESO: Contents and Strategies

Sten-Bot Robot Kit Stensat Group LLC, Copyright 2013

Introduction: Components used:

Two Hour Robot. Lets build a Robot.

J. La Favre Using Arduino with Raspberry Pi February 7, 2018

Build a Mintronics: MintDuino

Learning Objectives. References 10/26/11. Using servos with an Arduino. EAS 199A Fall 2011

ISSN: [Singh* et al., 6(6): June, 2017] Impact Factor: 4.116

Lesson 13. The Big Idea: Lesson 13: Infrared Transmitters

DFRduino Romeo All in one Controller V1.1(SKU:DFR0004)

CPSC 226 Lab Four Spring 2018

Using Servos with an Arduino

ZX Distance and Gesture Sensor Hookup Guide

Arduino Lesson 1. Blink. Created by Simon Monk

Project 27 Joystick Servo Control

Lab 2.4 Arduinos, Resistors, and Circuits

100UF CAPACITOR POTENTIOMETER SERVO MOTOR MOTOR ARM. MALE HEADER PIN (3 pins) INGREDIENTS

TWEAK THE ARDUINO LOGO

Arduino Microcontroller Processing for Everyone!: Third Edition / Steven F. Barrett

CONSTRUCTION GUIDE Robotic Arm. Robobox. Level II

MICROCONTROLLERS BASIC INPUTS and OUTPUTS (I/O)

Montgomery Village Arduino Meetup Dec 10, 2016

Arduino Workshop 01. AD32600 Physical Computing Prof. Fabian Winkler Fall 2014

Breadboard Arduino Compatible Assembly Guide

Lecture 4: Basic Electronics. Lecture 4 Brief Introduction to Electronics and the Arduino

1. Introduction to Analog I/O

URM37 V3.2 Ultrasonic Sensor (SKU:SEN0001)

CURIE Academy, Summer 2014 Lab 2: Computer Engineering Software Perspective Sign-Off Sheet

Welcome to Arduino Day 2016

Introduction to. An Open-Source Prototyping Platform. Hans-Petter Halvorsen

ARDUINO / GENUINO. start as professional. short course in a book. faculty of engineering technology

Arduino An Introduction

Assignments from last week

introduction to Digital Electronics Install the Arduino IDE on your laptop if you haven t already!

THE INPUTS ON THE ARDUINO READ VOLTAGE. ALL INPUTS NEED TO BE THOUGHT OF IN TERMS OF VOLTAGE DIFFERENTIALS.

The Motor sketch. One Direction ON-OFF DC Motor

Total Hours Registration through Website or for further details please visit (Refer Upcoming Events Section)

Operating Mode: Serial; (PWM) passive control mode; Autonomous Mode; On/OFF Mode

Lab 5: Arduino Uno Microcontroller Innovation Fellows Program Bootcamp Prof. Steven S. Saliterman

MICROCONTROLLERS BASIC INPUTS and OUTPUTS (I/O)

Available online Journal of Scientific and Engineering Research, 2018, 5(4): Research Article

CHAPTER 4 ANALYSIS AND DESIGN

MAE106 Laboratory Exercises Lab # 1 - Laboratory tools

Workshop 9: First steps in electronics

Lesson4 Obstacle avoidance car

NAMASKAR ROBOT-WHICH PROVIDES SERVICE

Embedded Controls Final Project. Tom Hall EE /07/2011

LESSONS Lesson 1. Microcontrollers and SBCs. The Big Idea: Lesson 1: Microcontrollers and SBCs. Background: What, precisely, is computer science?

Introduction to the Arduino Kit

Advanced Mechatronics 1 st Mini Project. Remote Control Car. Jose Antonio De Gracia Gómez, Amartya Barua March, 25 th 2014

The µbotino Microcontroller Board

Experiment 1: Robot Moves in 3ft squared makes sound and

Training Schedule. Robotic System Design using Arduino Platform

LEDs and Sensors Part 2: Analog to Digital

Servo Sweep. Learn to make a regular Servo move in a sweeping motion.

Real Time Implementation of Power Electronics System

THE IMPORTANCE OF PLANNING AND DRAWING IN DESIGN

CONSTRUCTION GUIDE Capacitor, Transistor & Motorbike. Robobox. Level VII

LED + Servo 2 devices, 1 Arduino

Mechatronics Engineering and Automation Faculty of Engineering, Ain Shams University MCT-151, Spring 2015 Lab-4: Electric Actuators

Intelligent Systems Design in a Non Engineering Curriculum. Embedded Systems Without Major Hardware Engineering

Setup Download the Arduino library (link) for Processing and the Lab 12 sketches (link).

Index. n A. n B. n C. Base biasing transistor driver circuit, BCD-to-Decode IC, 44 46

ARDUINO BASED CALIBRATION OF AN INERTIAL SENSOR IN VIEW OF A GNSS/IMU INTEGRATION

Rodni What will yours be?

Arduino Uno Pinout Book

1. Controlling the DC Motors

PWM CONTROL USING ARDUINO. Learn to Control DC Motor Speed and LED Brightness

ASCOM EF Lens Controller

The Robot Builder's Shield for Arduino

INA169 Breakout Board Hookup Guide

MOTOR CONTROL WITH THE ARDUINO MEGA

Transcription:

ELECTRONIC DESIGN

MAKE A DEVICE WITH INPUT & OUTPUT The Shanghaino can be programmed to use many input and output devices (a motor, a light sensor, etc) uploading an instruction code (a program) to it s microcontroller with the Arduino IDE.

HOW TO CONNECT DEVICES TO YOUR PCB A Breadboard is ideal to prototype a new circuit connecting additional devices and wires and expanding the capabilities of your PCB. Pay attention at how the rows and columns are connected internally. The two side columns are used for GND (-) and VCC (+) and are connected vertically. T h e t w o i n t e r n a l columns are connected horizontally, from A to E and from F to J. E a n d F a r e N O T connected.

OUTPUT DEVICES An output device is something that receives a signal from the microcontroller and makes something. It can be as easy as a DC motor, that can only be turned on or off*, or something like a servomotor for which you can control the angle of rotation. DC Motor. Only has two wires positive and negative Servo Motor. Has 3 wires positive, negative and signal

OUTPUT DEVICES Another tipe of output devices is something that emits light: an LED (Light Emitting Diode) or an LCD (Liquid Crystal Display). The LED, as the DC motor, only has two leads (+ and -) and can only be turned on and off*. The LCD of course is more complicated and requires some lines of code to be used.

*PULSE WIDTH MODULATION We said the LED or DC Motor can only be turned on or off, but there is a way to change the speed of a motor or the intensity of the LED. By turning the device on and off very fast at a certain rate we can emulate the real behavior of an analog device (remember we are in a digital system with only 0V (off or low) and 5V (on or high). The function is called PWM and in the code it is analogwrite followed by a value between 0 and 255.

INPUT DEVICES An input device collects informations from the environment and send them to the microcontroller. An ultrasonic sensor detects distance, a light sensor detect the amount of light and so on. These informations are often analog inputs (ie: distance is measured in millimiters) and the MCU needs to convert the analog signal into digital data. It does it thanks to its ADC (Analog to Digital Converter). Ultrasonic sensor L i g h t s e n s o r, w i t h a d d i t i o n a l components to regulate the sensitivity

ANALOG TO DIGITAL CONVERTER Most sensors send data to the MCU through changes in Voltage. The Atmega328 cannot read an infinite number of analog values (represented by a smooth curve) because it uses a digital scale that has a resolution of 10 bits (2 10 ). It has a built-in analog to digital converter and any voltage the sensor is detecting will be converted to one value on a scale from 0 to 1023 (a resolution of 1024 values). The function used to use these values is called analogread.

HOW TO WRITE A PROGRAM Arduino IDE is a simple coding environment especially designed for AVR microchips (the same we use, the same Arduino use). It lets you use a simplified version of the C programming language, with many libraries of functions ready to use, and thousands of pages of documentation on www.arduino.cc website and online community.

ARDUINO IDE Any Arduino sketch is made of two main blocks: void setup, is where we define the main functions of the program and we give the name to the variables. In this example we say that PIN 7 is an output (it is where we connected our LED).

ARDUINO IDE void loop, is where we write the events that our program runs. In this example we are defining four steps: 1. We write HIGH on PIN7 (meaning we turn it on) 2. We wait for 100 milliseconds (delay) 3. We write LOW on PIN7 (meaning we turn it off) 4. We wait again for 100 milliseconds.

WRITING A PROGRAM FOR THE SHANGHAINO Before the void setup we declare the names of our input and output devices (the button and the LED) and where we connected them. Then in the void setup we declare if the pin to which the device is connected should work as an input or an output.

UPLOADING THE PROGRAM We use Arduino IDE to upload the program to the S h a n g h a i n o, s e l e c t i n g Arduino/Genuino UNO in the device list. Connect the Shanghaino to the FTDI Usb cable and click upload. Be careful with the orientation of the connector: black wire is GND

EXERCISE Discuss with the class a final project proposal with I/O capabilities. Use the Arduino IDE to write or modify a program with I/O devices. Assemble your circuit on a breadboard and test it.