CSCI1600: Embedded and Real Time Software Lecture 4: Introduction to the Arduino Steven Reiss, Fall 2015.

Slides:



Advertisements
Similar presentations
EMS1EP Lecture 6 Digital Inputs
Advertisements

Embedded Sumo 1T4 – 1T5 UTRA.
Microprocessor Motor Control Spring Introduction  Stamp projects Robots  Sensors  Motor control  Logic Rocketry  Reading acceleration (“g”
Robotics Club, Snt Council2 The 3 Schools of Robotics: Mechanical Design – Types of motors – Material selection –
1 The University of Jordan Mechatronics Engineering Department PLC: Programmable Logical Controller.
Dr. Andreas Kunz © 10/2004 inspire icvr BASICS OF ELECTRONICS.
Getting the O in I/O to work on a typical microcontroller Activating a FLASH memory “output line” Part 1 Main part of Laboratory 1 Also needed for “voice.
Sensors And Micro-Controllers
Arduino. Arduino is a tool for making computers that can sense and control more of the physical world than your desktop computer. It's an open-source.
How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2014.
Digital I/O Connecting to the Outside World
Introduction.
Embedded Programming and Robotics Lesson 1 Basic Electricity and Electronics Transistor Basics Lesson 1 -- Basic Electricity1.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
Working with Arduino: Lesson #1: Getting Acquainted with the Kit EGN1007.
Arduino Part 1 Topics: Microcontrollers Programming Basics: structure and variables Digital Output Analog to Digital Conversion.
Colorado Space Grant Consortium Gateway To Space ASEN 1400 / ASTR 2500 Class #12 Gateway To Space ASEN 1400 / ASTR 2500 Class #12 T-58.
The 6713 DSP Starter Kit (DSK) is a low-cost platform which lets customers evaluate and develop applications for the Texas Instruments C67X DSP family.
Ballooning Bundle. What is a Microcontroller? Small computer with a processor core, memory and programmable input/output Continuously repeats software.
Segway Controller Notes. = connection on top layer of circuit board = connection on bottom layer of circuit board Ground Plane: Areas enclosed by the.
PLC introduction1 Discrete Event Control Concept Representation DEC controller design DEC controller implementation.
PLC: Programmable Logical Controller
A Simple Tour of the MSP430. Light LEDs in C LEDs can be connected in two standard ways. Active high circuit, the LED illuminates if the pin is driven.
1 3-General Purpose Processors: Altera Nios II 2 Altera Nios II processor A 32-bit soft core processor from Altera Comes in three cores: Fast, Standard,
Teachers Name : Suman Sarker Telecommunication Technology Subject Name : Microcontroller & Embedded System Subject Code : 6871 Semester : 7th Department.
MCU: Interrupts and Timers Ganesh Pitchiah. What’s an MCU ?
Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications.
Microcontroller Presented by Hasnain Heickal (07), Sabbir Ahmed(08) and Zakia Afroze Abedin(19)
Suleyman Demirel University CSS340 Microprocessor Systems – Lecture 2 ATMEGA328P ARCHITECTURE ANALOG INPUTS.
July 7, 2003 Slide 1 of 6 Automation, Robotics and Mechatronics Lab, SUNY at Buffalo Introduction To Programming Chetan Jadhav Talib Bhabharawala Seung-Kook.
CSCI1600: Embedded and Real Time Software Lecture 2: Introduction Steven Reiss, Fall 2015.
CSCI1600: Embedded and Real Time Software Lecture 9: Input Output Concepts Steven Reiss, Fall 2015.
CSCI1600: Embedded and Real Time Software Lecture 14: Input/Output II Steven Reiss, Fall 2015.
CSCI1600: Embedded and Real Time Software Lecture 16: Advanced Programming with I/O Steven Reiss, Fall 2015.
CSCI1600: Embedded and Real Time Software Lecture 5: Arduino Programming Steven Reiss, Fall 2015.
Microcontrollers, Microcomputers, and Microprocessors
CSCI1600: Embedded and Real Time Software Lecture 15: Advanced Programming Concepts Steven Reiss, Fall 2015.
Microcontroller basics Embedded systems for mortals.
Bdps 2 Lecture 2. Circuits and Ohm's Law For resistive circuits.
1 Transistor. 2 Transistors are used to turn components on and off They come in all different shapes and sizes.
1 Microcontrollers. 2 Programmers work in the virtual world Machinery works in the physical world Microcontrollers connect the virtual and physical world.
Harpeth Hall Jan 2016 Introduction to Arduino Prepared for Harpeth Hall Winterim January 2016.
Arduino.
Arduino Part 1 Topics: Microcontrollers
IoT Milos Hampl.
Microcontroller basics
PLC: Programmable Logical Controller
Logic Gates.
UCD ElecSoc Robotics Club 2017/2018
Arduino Part 1 Topics: Microcontrollers Programming Basics
Remote Controlled Smart Socket
How to avoid catching things on fire.
Roller Coaster Design Project
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.
CSCI1600: Embedded and Real Time Software
CSCI1600: Embedded and Real Time Software
CSCI1600: Embedded and Real Time Software
CSCI1600: Embedded and Real Time Software
Chapter 1 Introduction of Arduino
Introduction to Wiring Logic Gates
CSCI1600: Embedded and Real Time Software
Arduino Workshop University of Jordan.
Arduino Workshop University of Jordan.
CSCI1600: Embedded and Real Time Software
Lab #1: Getting Started.
CSCI1600: Embedded and Real Time Software
Arduino म्हणजे काय?.
CSCI1600: Embedded and Real Time Software
Interrupts.
Buttons.
Presentation transcript:

CSCI1600: Embedded and Real Time Software Lecture 4: Introduction to the Arduino Steven Reiss, Fall 2015

What is an Arduino

Arduino Chip: ATmega48

Arduino CPU

Embedded Processors  Arduino: a microcontroller  Others exist as well  General purpose processors  ARM processor (low power)  Raspberry Pi  Special purpose processors  DSP for sound, video processing  Graphics processors

Other alternatives  Field-Programmable Gate Arrays  Less expensive than creating chip  Like having a bucket of parts to wire together  Except the wiring is done programmatically  And the whole thing fits on a chip  Easy and cheap to make in quantity  Programmed in a high-level language

Arduino Restrictions  Simple CPU  Single core, single threaded  No pipelining  No floating point processor  How is floating point done

What you need to know Power/USB Input Ground and power outputs Digital input/outputs Analog input/outputs Reset button

Clapper  Two circuits  One to provide input  Analog based on sound intensity  One to provide output  Two lights  Digital (on or off)

Clapper Input Circuit

How does this work  Microphone generates a weak signal  odDS/ pdf  LM386 is an amplifier chip  Amount controlled by resistor, capacitor   Output balanced between 0 and 5 volts

Output circuit  Connect Digital Output Pin to LED  Through a resistor (why)  Other side of LED is grounded

How should the clapper work?  Read the input  How often  Check if we have a clap  What does a clap look like  How would you find out  Check if we have a clap sequence

Clapper requirements  Turn lights on or off  Based on clap input  Handle flashing lights  How often to check

Tasks  The basic concept in RT/EM software  Break your project into tasks  Tasks are independent  Communicate via shared variables  Communicate via network, etc.  Tasks are run periodically or on demand  Periodic – run every k microseconds  Demand – run on event, interrupt

Clapper Tasks  Listen for sound  Handle clapper logic  Handle first light  Handle second light

Clapper State  clap_count (# claps)  clap_done (clap interval over)  last_clap (whether clap has ended)  do_clap (take action based on clap)  cur_state (state of lights)  orig_state (state at start of all claps)

Homework  HomePage HomePage  Think about what the code should look like logically