Embedded Sumo 1T4 – 1T5 UTRA.

Slides:



Advertisements
Similar presentations
Wireless Cue Light Project
Advertisements

MODULE 9 – CONTROL SYSTEMS: MICROPROCESSOR CONTROL
Khaled A. Al-Utaibi Interfacing an LED The Light Emitting Diode (LED) Applications DC Characteristics & Operation Interfacing to.
EMS1EP Lecture 6 Digital Inputs
EMS1EP Lecture 4 Intro to Programming Dr. Robert Ross.
ARDUINO CLUB What we’re really doing. BASICS The setup() and loop() functions.
Electrical team Arduino tutorial I BY: JOSHUA arduini
Lab7: Introduction to Arduino
ARDUINO FRAMEWORK.
Intermediate Electronics and Lilypad Where Electronics Meet Textiles Workshop with Lynne Bruning and Troy Robert Nachtigall Sponsored by Spark Fun and.
Servo Background Servos provide control of rotary position Servos are used extensively in the remote control hobby world for: Aircraft (flaps, ailerons,
Anurag Dwivedi & Rudra Pratap Suman.  Open Source electronic prototyping platform based on flexible easy to use hardware and software.
What is Arduino?  Arduino is a ATMEL 168 micro-controller kit designed specially for small projects  User friendly IDE(Integrated Development Environment)
How to use Arduino By: Andrew Hoffmaster.
Re-programming the Simon Says with Arduino Linz Craig, Brian Huang.
1 Arduino Board: Arduino UNO Arduino Programing Environment: Arduino 0022
1 Introduction to Coding. 2 Example Codes A lot of example codes are given with Arduino IDE A code can often be based on a previous example rather than.
Analog and Digital Measurements living with the lab 14 digital input / output pins 6 analog input pins © 2011 LWTL faculty team.
 Main Components:  Sensors  Micro controller  Motor drivers  Chasis.
Introduction to Arduino Prepared by R. Lamond.  “Arduino is an open-source electronics prototyping platform based on flexible, easy- to-use hardware.
Basic Circuits – Lab 2 Arduino and Sensors Xmedia Spring 2011.
Embedded Programming and Robotics
ARDUINO PROGRAMMING Working with the Arduino microcontroller.
Working with Arduino: Lesson #1: Getting Acquainted with the Kit EGN1007.
Microprocessors Tutorial 1: Arduino Basics
Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications.
Introduction to the Arduino
Khaled A. Al-Utaibi  The Push Button  Interfacing Push Buttons to Arduino  Programming Digital Inputs  Working with “Bouncy”
Franz Duran INTRODUCTION TO A RDUINO PROGRAMMING & INTERFACING Engr. Franz Duran, MEP-ECE RapidSignal Electronics.
Microprocessors Tutorial 1: Arduino Basics
1 - Remove LED from 13 and GND - Bring out your breadboard from HW#4 Arduino Overview:
Microcontrollers, Microcomputers, and Microprocessors
Arduino libraries Datatekniker Udvidet hardware/software.
C# SERIAL COMMUNICATION TEMPERATURE CONTROL WITH ARDUINO KAAN EREN
Microcontroller basics Embedded systems for mortals.
1 Introduction to Haptics Introduction to the Hapkit board Allison M. Okamura Stanford University.
Robotics Grant Agreement No LLP UK-LEONARDO-LMP Project acronym: CLEM Project title: Cloud services for E-Learning in Mechatronics Technology.
Programming in Arduino Materials:Arduino Board Casperelectronics Pre Pres. Notes Photos from workshop?
:Blink Blink: Er. Sahil Khanna
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
1 Introduction to Coding. 2 Example Codes A lot of example codes are given with Arduino IDE A code can often be based on a previous example rather than.
Having fun with code, using Arduino in a middle school CS classroom
Arduino.
Embedded Systems Intro to the Arduino
Getting Started: Building & Programming
Application of Programming: Scratch & Arduino
By Rick Darby Sponsors: Geekspace Gwinnett The WorkSpot
Microcontroller basics
Val Manes Department of Math & Computer Science
Microcontroller basics
Get Your Project Started with Arduino
UCD ElecSoc Robotics Club 2017/2018
Arduino Part 1 Topics: Microcontrollers Programming Basics
INC 161 , CPE 100 Computer Programming
Arduino.
Introduction to Arduino Microcontrollers
Introduction to Arduinos
Roller Coaster Design Project
Arduino 101 Credit(s):
Welcome to Digital Electronics using the Arduino Board
Arduino : Introduction & Programming
Aeroponic Engineering and Vertical Farming
Lab #1: Getting Started.
Arduino Uno circuit basics
Introduction to Arduino
Arduino म्हणजे काय?.
Setting up a basic program with Arduino
Introduction to Arduinos
Arduino程式範例.
Introduction to Arduino IDE and Software
Presentation transcript:

Embedded Sumo 1T4 – 1T5 UTRA

What is Arduino? Image Source: http://arduino.cc/en/uploads/Main/ArduinoUno_r2_front450px.jpg

Arduino is an open-source electronics platform based on easy-to-use hardware and software. It's intended for anyone making interactive projects. - arduino.cc Image Source: http://arduino.cc/en/uploads/Main/ArduinoDiecimilaComponents.jpg

Micro-controller: ATMega328-PU Image Source: http://d1gsvnjtkwr6dd.cloudfront.net/large/IC-ATMEGA328-PU_LRG.jpg

Aruidno IDE C-like programming language One-button upload Come with example code

Setup the IDE Select board Select Port Port number can be found in “Device Manager” from “Control Panel”

Example: Blinking LED /* Blink Turns on an LED on for one second, then off for one second, repeatedly. Most Arduinos have an on-board LED you can control. On the Uno and Leonardo, it is attached to digital pin 13. If you're unsure what pin the on-board LED is connected to on your Arduino model, check the documentation at http://arduino.cc This example code is in the public domain. modified 8 May 2014 by Scott Fitzgerald */

Example: Blinking LED void setup() { pinMode(13, OUTPUT); } void loop() { digitalWrite(13, HIGH); delay(1000); digitalWrite(13, LOW);

Example: Blinking LED void setup() { … } This function runs only once after boot-up or after you pressed the reset button. Hence the name “setup”. This function sets pin 13 as “output”, meaning you can set it to either “high” (5V) or “low” (0V). pinMode(13, OUTPUT); void loop() { … } This function runs over and over again forever.

Example: Blinking LED This command turns the LED on (by making a 5V output). digitalWrite(13, HIGH); delay(1000); Sleep for 1 second. The unit for this function is millisecond (ms) and 1000 ms = 1s. digitalWrite(13, LOW); This command turns the LED off (by making the output 0V, which is the same as ground).

Example: Blinking LED void setup() { pinMode(13, OUTPUT); } void loop() { digitalWrite(13, HIGH); // LED on for 1 second delay(1000); digitalWrite(13, LOW); // LED off for 1 second } // repeat (back to the beginning of loop)

Example: Analog & Serial void setup() { Serial.begin(9600); } void loop() { int sensorValue = analogRead(A0); Serial.println(sensorValue); delay(1000); } // repeat (back to the beginning of loop)

Example: Analog & Serial This command starts the serial communication between Arduino and the host PC at a specific baud rate. In this case, 9600. Serial.begin(9600); analogRead(A0); This command reads the voltage input at A0 and translate the number into a value between 0 and 1023. Serial.println(sensorValue); This command prints the value of the variable to the serial terminal in the Arduino IDE.

Serial Terminal Click to open the serial terminal Inputs (from PC to Arduino) Outputs (from Arduino to PC) Select the correct baud rate