Lecture 8: Arduino 20 March 2019.

Slides:



Advertisements
Similar presentations
What is Arduino?  Arduino is a ATMEL 168 micro-controller kit designed specially for small projects  User friendly IDE(Integrated Development Environment)
Advertisements

Robotics Club, Snt Council2 The 3 Schools of Robotics: Mechanical Design – Types of motors – Material selection –
How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2014.
Introduction.
Khaled A. Al-Utaibi  What is Arduino?  Arduino Boards  Arduino Shields  Arduino Uno Hardware.
Microcontroller: Introduction
Embedded Programming and Robotics
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
Colorado Space Grant Consortium Gateway To Space ASEN 1400 / ASTR 2500 Class #12 Gateway To Space ASEN 1400 / ASTR 2500 Class #12 T-58.
Lecture 9: Microcontrollers – part 1 BJ Furman 29OCT2012.
Getting started with interactive projects using the Arduino, Max and Processing.
Arduino Josh Villbrandt February 4, Digital Circuits Analog versus digital – What’s the difference? – How to represent an analog signal in a computer?
LVTech / / IRC #makelv on freenode.net Jared Steckel AN INTRODUCTION.
Daniel Pickem and Rowland O’Flaherty 12/04/2012 Mechatronics (ME 6405) Student Lecture On Arduinos *Some slides courtesy of Eoin Brazil
MICRO CONTROLLER MODULE 1. Learning Objectives Name some gadgets that use microcontrollers. Define a microcontroller. Differentiate between a computer.
Lecture 7: Microcontrollers & I/O Bryan Burlingame 14 October 2015.
ME456: Mechatronics Prof. Clark J. Radcliffe Mechanical Engineering
Introduction to Arduino Microcontrollers. What is a Microcontroller ? What is a Microprocessor ? A Microcontroller (8 bit) does one task very fast and.
Electronics & Microcontrollers
智慧電子應用設計導論(1/3) Arduino MEGA 2560
Microcontrollers, Microcomputers, and Microprocessors
ARDUINO OVERVIEW Bob Wilton – KF5TPQ. ARDUINO UNO.
Week 5: Microcontrollers & Flow Control Bryan Burlingame 2 March 2016.
RenBED – Technical Training Jon Fuge – Renishaw plc.
Submitted by:.  Project overview  Block diagram  Power supply  Microcontroller  MAX232 & DB9 Connector  Relay  Relay driver  Software requirements.
1 Microcontrollers. 2 Programmers work in the virtual world Machinery works in the physical world Microcontrollers connect the virtual and physical world.
Arduino Board SHUBHAM PANCHAL: What is an Arduino? A microcontroller board + programming IDE Microcontrollers & Robotics.
Arduino.
EMBEDDED SYSTEM An embedded system is a special-purpose computer system and a combination of software and hardware designed to perform specific task. It.
IF I ONLY HAD A BRAIN THE MICROCONTROLLER
Michael Rahaim, PhD Candidate Multimedia Communications Lab
IoT Milos Hampl.
Week 4: Microcontrollers & Flow Control
Welcome to Arduino A Microcontroller.
By Rick Darby Sponsors: Geekspace Gwinnett The WorkSpot
Scrolling LCD using Arduino.
Prototyping with Microcontrollers and Sensors
Dr. Kyung Eun Park Summer 2017
Week 6: Style and Peripherals
Arduino Based Industrial appliances control system by decoding dual tone multi frequency signals on GSM / CDMA network. Submitted by:
Home automation using Arduino & ‘PIR sensor’
Microcontrollers & GPIO
Automatic human detector garbage can.
Microprocessors Tutorial 1: Arduino Basics
PC Mouse operated Electrical Load Control Using VB Application
Arduino Development for Beginners
Arduino Part 1 Topics: Microcontrollers Programming Basics
‘SONAR’ using Arduino & ultrasonic distance sensor
The Arduino Microcontroller: Atmel AVR Atmega 328
Introduction to Arduinos
Week 5: Microcontrollers
ARDUINO     What is an Arduino? Features 14 Digital I/O pins 6 Analogue inputs 6 PWM pins USB serial 16MHz Clock speed 32KB Flash memory 2KB SRAM.
Arduino Analog I/O Analog input pins: 0 – 5
Arduino Board.
CSCI1600: Embedded and Real Time Software
Technical Communication Skills Practicum
CSCI1600: Embedded and Real Time Software
Manual Robotics ..
Arduino Workshop University of Jordan.
Arduino Workshop University of Jordan.
Wireless Embedded Systems
Single Board Computers and Dev Boards
Introduction to Arduino
Arduino Board.
Arduino म्हणजे काय?.
Arduino and Grove LET’S START.
Introduction to Arduinos
Introduction to arduino
Presented By,  Mamata Yadav (BE Elex & Comm.) Vice R&D Coordinator(HW), PCRT  Payal Shah (BE Elex & Comm.)  Ananta Das (BE Elex & Comm.) R&D Team,PCRT.
Presentation transcript:

Lecture 8: Arduino 20 March 2019

Announcements Lab kits are available today and will be needed for labs this week SNAFU with Homework 6. It will be due next week. Eric Wertz will lead today’s discussion Introduction to the Arduino in Python For next week, read chapter 10 & 11

Embedded Systems Recall: A computer takes input, performs some operations (the eponymous “compute”) and generates output Modern general-purpose computers can take a wide range of input and generate a plethora of difference experiences This flexibility is expensive Uses general purpose operating systems Requires increasingly powerful hardware Transistor count on largest microprocessors 1975-2010. From: Computer History Museum Revolution exhibit

Embedded Systems As microprocessors become cheaper Embedding microprocessors as a control mechanism has become more common Embedded systems now dominate the market Modern embedded systems have integrated many peripherals and the CPU into one chip called a Microcontroller Embedded Systems vs Other Silicon Market Segments The Register

What is a Microcontroller? A small computer usually implemented on a single integrated circuit (IC) that contains a central processing unit (CPU), some memory, and peripheral devices such as counter/timers, analog-to-digital converters, serial communication hardware, etc. ATmega328 the ‘brain’ of the Arduino http://www.amazon.com/AVR-Pin-20MHz-32K-ATMega328/dp/B004G5AVS6

Where are Microcontrollers Used? Everywhere! Car Phone Toothbrush Microwave oven Copier Television PC keyboard Xbox Controllers Appliances http://ecomodder.com/wiki/index.php/MPGuino

The Arduino Platform About 10 years old and more than 1M units sold Open Source hardware and software Open Source: the source code to build the software and the designs to build the hardware are publicly available Anyone who is willing to follow the license may build on this platform There are many clones Since the designs are publicly available, these clones tend to be of high quality and perfectly compatible Arduino itself is a brand that encompasses the entire system The Arduino hardware itself, including the shape of the dev board The programming interface (API) The Arduino integrated programming environment (IDE) http://Arduino.cc

The Arduino Platform Arduino is a family There is competition The Arduino UNO is the most popular There are many form factors and with differing capabilities The UNO standardization of the UNO platform allows for many hardware accessories (called shields) to exist There is competition Raspberry Pi Micro:bit MicroPython Feather/CircuitPython Azure Sphere

The Arduino Platform http://arduino.cc/ USB jack Microcontroller power jack Voltage regulator Pwr/GND Pins ICSP Header Reset Button Power LED Pin 13 LED Rx + Tx LEDs Digital Pins Atmel ATmega328 microcontroller 14 digital I/O pins 6 with PWM 6 analog I/O pins 32 kB (-2 kB) Flash memory 2 kB RAM 1 kB EEPROM 16 MHz clock $22 - $30 built $13 ‘breadboardable’ FTDI USB chip Analog Pins http://arduino.cc/

Our implementation Usually, the Arduino is programmed in C/C++ Obviously, we’re exploring Python Easier to learn Allows a focus on programming skills over detail Not perfect Requires more memory than the Uno has We’ll run tethered to a PC, allowing the PC to parse the Python Allows us to integrate the PC experience with an embedded system

PyMata PyMata is a library we’ll use with Jupyter Notebook to facilitate Uses the Firmata protocol Supports much of the Arduino functionality General Purpose Input/Output (GPIO) Boolean signaling (T/F, On/Off, 5V/Ground) Called Digital in the hardware world Allows for simple on/off actuation or detection Think turning a light on and off or detecting whether a switch has been pressed or not Analog Allows for a range of values Input for sensors and output for actuators Think reading a temperature or playing music (i.e. not just T/F)

Spartronics Experimenter Digital Pin Assignments 13 12 11 10 9 8 7 6 5 4 3 2 1 SCK MISO MOSI SS OC1 ICP AIN1 AIN0 T1 T0 INT1 INT0 TXD RXD LED pwm LED0 LED1 LED2 LED3 green blue red piezo servo SW0 SW1 SW2 SW3 Piezo rectangle is hyperlinked to an image of the actual Experimenter board. The piezo speaker is hyperlinked back to this slide.

Spartronics Experimenter Analog Pin Assignments 7 6 5 4 3 2 1 photocell POT temp sensor The rectangle around cells for pins 2, 1, 0 are hyperlinked to an image of the actual Experimenter board. Each respective element is hyperlinked back to this slide.

PyMata Though Firmata provides a low-level interface, we’ll use something a bit more civilized PyMata provides an intuitive object-based interface to the hardware Button: ispressed() LED (Light emitting diode): led.on(), led.off() LEDPWM: led.on(), led.off(), led.fraction() Pot (Potentiometer): pot.fraction() Servo: servo.write(degrees) Speaker: spkr.play(freq) https://github.com/MrYsLab/pymata-aio/wiki