ARDUINO. By Kiran Tiwari BCT 2072 CoTS.
|
|
- Julianna Horn
- 6 years ago
- Views:
Transcription
1 ARDUINO By Kiran Tiwari BCT 2072 CoTS
2 SO What is an Arduino?
3 WELL!! Arduino is an open-source prototyping platform based on easy-to-use hardware and software.
4 Why Arduino? Simplifies working on a microcontroller Inexpensive Platform Simple, Clear and User Friendly Environment Easy Programming
5 MISSED SOMETHING? OPEN SOURCE!!
6 IMPORTING LIBRARY Open the Given Arduino Library Folder Copy the files to C:/Program Data/Labcenter Electronics/Proteus 8 Professional/Library/ Reopen Proteus and Use Arduino from Components Adding Panel NOTE : Program Data folder is Hidden
7
8 ARDUINO UNO DESCRIPTION 13 Pins, ~ PWM, 0&1: Rx & Tx ports USB Port SPI ( Serial Peripheral Interface) MISO MOSI Atmel ATmega 328 External Power Supply Analog Input Pins
9 Arduino IDE setup(){ // runs once at start of program // for initialization loop(){ // called repeatedly until board // powers off
10 Some Basic Programming Syntax In setup() pinmode( pinno, mode ); Mode : INPUT / OUTPUT Eg ; pinmode(13, OUTPUT); Serial.begin( baudrate ); baudrate : bits per second For Serial Communication Eg ; Serial.begin(9600);
11 Some Basic Programming Syntax In loop() digitalwrite ( pinno, state ); State : HIGH / LOW Eg ; digitalwrite (13, HIGH); digitalread ( pinno); Eg ; int value = digitalread(8); delay (milliseconds); Delays system by certain milliseconds Eg ; delay(1000); // for 1 sec
12 Some Basic Programming Syntax In loop() analogwrite ( pinno, value ); Value : 0 to 255 //(255/255) = 1 = max value Eg ; analogwrite (9, 255); // pinno with PWM analogread ( pinno); Eg ; int value = analogread (A0); Serial.println (data); Displays data on Serial Monitor with line break Eg ; Serial.println ( Text );
13 LED ON int ledpin = 13; void setup() { pinmode (13,OUTPUT); void loop() { digitalwrite (13,HIGH);
14 Exporting Hex File
15 Exporting Hex File
16 Ctrl + C Exporting Hex File
17 IN PROTEUS
18 IN PROTEUS
19 IN PROTEUS Ctrl + V
20 IN PROTEUS RUN THE SIMULATOR
21 LED BLINK ( IN PROTEUS )
22 LED BLINK ( IN IDE ) int ledpin = 13; void setup() { pinmode ( ledpin, OUTPUT ); void loop() { digitalwrite ( ledpin, HIGH ); delay(500); digitalwrite ( ledpin, LOW ); delay(500); Export Compiled Binary Run the Simulator
23 LED CHASER ( IN PROTEUS )
24 LED CHASER ( IN IDE ) void setup() { pinmode(11,output); pinmode(12,output); pinmode(13,output); Export Compiled Binary Run the Simulator void loop() { digitalwrite(11,high); digitalwrite(12,low); digitalwrite(13,low); delay(30); digitalwrite(11,low); digitalwrite(12,high); digitalwrite(13,low); delay(30); digitalwrite(11,low); digitalwrite(12,low); digitalwrite(13,high); delay(30);
25 LED TOGGLE ( IN PROTEUS )
26 LED TOGGLE ( IN IDE ) boolean currentstate = LOW; boolean laststate = LOW; boolean ledstate = LOW; void setup(){ pinmode(9, INPUT); pinmode(7, OUTPUT);
27 LED TOGGLE ( IN IDE ) void loop(){ currentstate = digitalread (9); if (currentstate == HIGH && laststate == LOW){ if (ledstate == HIGH){ digitalwrite(7, LOW); ledstate = LOW; else { digitalwrite(7, HIGH); ledstate = HIGH; laststate = currentstate; Export Compiled Binary Run the Simulator
28 LED FADE ( IN PROTEUS ) ~ PWM for analogwrite
29 LED FADE ( IN IDE ) int ledpin = 9; void setup() { pinmode( ledpin, OUTPUT ); void loop() { for(int i = 0 ; i<=255;i+=5){ analogwrite ( ledpin, i ); delay(10); for( int i =255; i>= 0; i -= 5 ){ analogwrite( ledpin, i ); delay(10); Export Compiled Binary Run the Simulator
30 LCD INTERFACING Liquid Crystal Display
31 LCD INTERFACING Liquid Crystal Display First Include LiquidCrystal header file #include<liquidcrystal.h> Create an Object for LiquidCrystal Eg ; LiquidCrystal lcd (12,11,5,4,3,2); Start the lcd lcd.begin (width, height); Eg ; lcd.begin (16,2); // for 16*2 LCD
32 LCD DISPLAY ( IN PROTEUS ) LM016L LCD RS pin to digital pin 12 LCD Enable pin to digital pin 11 LCD D4 pin to digital pin 5 LCD D5 pin to digital pin 4 LCD D6 pin to digital pin 3 LCD D7 pin to digital pin 2 LCD R/W pin to ground
33 LCD DISPLAY ( IN IDE ) #include<liquidcrystal.h> LiquidCrystal lcd (12,11,5,4,3,2); void setup() { lcd.begin(16,2); lcd.write("hello LCD"); void loop() { lcd.display(); Export Compiled Binary Run the Simulator
34 LCD BLINK ( IN PROTEUS ) LM016L LCD RS pin to digital pin 12 LCD Enable pin to digital pin 11 LCD D4 pin to digital pin 5 LCD D5 pin to digital pin 4 LCD D6 pin to digital pin 3 LCD D7 pin to digital pin 2 LCD R/W pin to ground
35 LCD BLINK ( IN IDE ) #include<liquidcrystal.h> LiquidCrystal lcd(12,11,5,4,3,2); void setup() { lcd.begin(16,2); lcd.write("hello LCD"); void loop() { lcd.display(); delay(500); lcd.nodisplay(); delay(500); Export Compiled Binary Run the Simulator
36 SOME MORE ( IN PROTEUS ) LM016L LCD RS pin to digital pin 12 LCD Enable pin to digital pin 11 LCD D4 pin to digital pin 5 LCD D5 pin to digital pin 4 LCD D6 pin to digital pin 3 LCD D7 pin to digital pin 2 LCD R/W pin to ground
37 SOME MORE ( IN IDE ) #include<liquidcrystal.h> LiquidCrystal lcd(12,11,5,4,3,2); void setup() { lcd.begin(16,2); lcd.write("hello Fellas!"); delay(1000);
38 SOME MORE ( IN IDE ) void loop() { lcd.clear(); delay(300); lcd.write("welcome"); delay(300); lcd.setcursor(9,0); lcd.write("to"); delay(300); lcd.setcursor(12,0); lcd.write("the"); delay(300); lcd.clear(); lcd.write("awesomeness!"); delay(300); Export Compiled Binary Run the Simulator
39 SENSORS Sense the Values Uses Analog Input Pins LDR ( Light Dependent Resistor ) Light Sensor Gas Sensor LM35 ( Temperature Sensor ) Ultrasonic Sensor ( Distance Measurer )
40 LDR ( IN PROTEUS ) TX to RX RX to TX
41 LDR ( IN IDE ) #define readpin A0 void setup() { pinmode( readpin, INPUT ); Serial.begin(9600); void loop() { int status = analogread( readpin ); Serial.println(status); delay(100); Export Compiled Binary Run the Simulator
42 LM35 ( IN PROTEUS ) DIGITAL THERMOMETER LM35
43 LM35 ( IN IDE ) #define TempPin A0 int TempValue; void setup() { Serial.begin (9600); // Sets the Baud Rate
44 LM35 ( IN IDE ) void loop() { TempValue = analogread (TempPin); float TempCel = ( TempValue/1024.0)*500; float TempFarh = (TempCel*9)/5 + 32; Serial.print ("TEMPRATURE in Celsius = "); Serial.print ( TempCel ); Serial.print("*C"); Serial.print(" "); Serial.print("TEMPRATURE = "); Serial.print(TempFarh); Serial.print("*F"); Serial.println (); delay(1000); Export Compiled Binary Run the Simulator
45 GAS SENSOR ( IN PROTEUS ) LOGICTOGGLE
46 GAS SENSOR ( IN IDE ) void setup() { pinmode(8,input); pinmode(13,output); void loop() { int status = digitalread (8); if(status==high){ digitalwrite(13,high); else{ digitalwrite(13,low); Export Compiled Binary Run the Simulator
47 ULTRASONIC SENSOR (IN PROTEUS )
48 ULTRASONIC SENSOR ( IN IDE ) const int triggerpin = 7; const int echopin = 6; void setup() { Serial.begin(9600);
49 ULTRASONIC SENSOR ( IN IDE ) void loop() { long duration, inches, cm; pinmode( triggerpin, OUTPUT); digitalwrite( triggerpin, LOW); delaymicroseconds (2); digitalwrite( triggerpin, HIGH); delaymicroseconds (10); digitalwrite( triggerpin, LOW); pinmode(echopin, INPUT);
50 ULTRASONIC SENSOR ( IN IDE ) duration = pulsein (echopin, HIGH); inches = microsecondstoinches (duration); cm = microsecondstocentimeters (duration); Serial.print(inches); Serial.print("in, "); Serial.print(cm); Serial.print("cm"); Serial.println(); delay(100);
51 ULTRASONIC SENSOR ( IN IDE ) long microsecondstoinches(long microseconds) { return microseconds / 74 / 2; long microsecondstocentimeters(long microseconds) { return microseconds / 29 / 2; Export Compiled Binary Run the Simulator
52 SERVO MOTOR (IN PROTEUS )
53 SERVO MOTOR ( IN IDE ) #include < Servo.h > Servo myservo; int val; void setup() { pinmode (A0, INPUT); myservo.attach (9); void loop() { val = analogread(a0); val = map(val, 0, 1023, 0, 180); myservo.write ( val ); delay(15); Export Compiled Binary Run the Simulator
54 BLUETOOTH ( IN IDE ) char c; void setup() { pinmode(13,output); Serial.begin(9600); void loop() { if( Serial.available () ){ c = Serial.read (); switch(c){ case 'a' : digitalwrite(13,high); break; case 'b' : digitalwrite(13,low); break; Export Compiled Binary Run the Simulator
55 FOR MORE INFO AND HELP GOTO :
Eng.mohammed Albhaisi. Lab#3 : arduino to proteus simulation. for simulate Arduino program that you wrote you have to have these programs :
Lab#3 : arduino to proteus simulation for simulate Arduino program that you wrote you have to have these programs : 1-Arduino C 2-proteus 3- Virtual Serial Port Driver 4-Arduino library to proteus You
More informationBASIC ARDUINO WORKSHOP. Mr. Aldwin and Mr. Bernardo
BASIC ARDUINO WORKSHOP Mr. Aldwin and Mr. Bernardo 1 BASIC ARDUINO WORKSHOP Course Goals Introduce Arduino Hardware and Understand Input Software and Output Create simple project 2 Arduino Open-source
More informationArduino Prof. Dr. Magdy M. Abdelhameed
Course Code: MDP 454, Course Name:, Second Semester 2014 Arduino What is Arduino? Microcontroller Platform Okay but what s a Microcontroller? Tiny, self-contained computers in an IC Often contain peripherals
More informationFUNCTIONS USED IN CODING pinmode()
FUNCTIONS USED IN CODING pinmode() Configures the specified pin to behave either as an input or an output. See the description of digital pins for details on the functionality of the pins. As of Arduino
More informationArduino Programming. Arduino UNO & Innoesys Educational Shield
Arduino Programming Arduino UNO & Innoesys Educational Shield www.devobox.com Electronic Components & Prototyping Tools 79 Leandrou, 10443, Athens +30 210 51 55 513, info@devobox.com ARDUINO UNO... 3 INNOESYS
More informationArduino Uno Microcontroller Overview
Innovation Fellows Program Arduino Uno Microcontroller Overview, http://saliterman.umn.edu/ Department of Biomedical Engineering, University of Minnesota Arduino Uno Power & Interface Reset Button USB
More informationMore Arduino Programming
Introductory Medical Device Prototyping Arduino Part 2, http://saliterman.umn.edu/ Department of Biomedical Engineering, University of Minnesota More Arduino Programming Digital I/O (Read/Write) Analog
More informationEP486 Microcontroller Applications
EP486 Microcontroller Applications Topic 6 Step & Servo Motors Joystick & Water Sensors Department of Engineering Physics University of Gaziantep Nov 2013 Sayfa 1 Step Motor http://en.wikipedia.org/wiki/stepper_motor
More informationArduino Part 2. Introductory Medical Device Prototyping
Introductory Medical Device Prototyping Arduino Part 2, http://saliterman.umn.edu/ Department of Biomedical Engineering, University of Minnesota More Arduino Programming Digital I/O (Read/Write) Analog
More informationComputer Architectures
Implementing the door lock with Arduino Gábor Horváth 2017. február 24. Budapest associate professor BUTE Dept. Of Networked Systems and Services ghorvath@hit.bme.hu Outline Aim of the lecture: To show
More informationElectronic Brick Starter Kit
Electronic Brick Starter Kit Getting Started Guide v1.0 by Introduction Hello and thank you for purchasing the Electronic Brick Starter Pack from Little Bird Electronics. We hope that you will find learning
More informationArduino 101 AN INTRODUCTION TO ARDUINO BY WOMEN IN ENGINEERING FT T I NA A ND AW E S O ME ME NTO R S
Arduino 101 AN INTRODUCTION TO ARDUINO BY WOMEN IN ENGINEERING FT T I NA A ND AW E S O ME ME NTO R S Overview Motivation Circuit Design and Arduino Architecture Projects Blink the LED Switch Night Lamp
More informationLab 3 XBees and LCDs and Accelerometers, Oh My! Part 1: Wireless Communication Using XBee Modules and the Arduino
University of Pennsylvania Department of Electrical and Systems Engineering ESE 205 Electrical Circuits and Systems Laboratory I Lab 3 XBees and LCDs and Accelerometers, Oh My! Introduction: In the first
More informationUSER MANUAL ARDUINO I/O EXPANSION SHIELD
USER MANUAL ARDUINO I/O EXPANSION SHIELD Description: Sometimes Arduino Uno users run short of pins because there s a lot of projects that requires more than 20 signal pins. The only option they are left
More informationEXPERIMENT 7 Please visit https://www.arduino.cc/en/reference/homepage to learn all features of arduino before you start the experiments
EXPERIMENT 7 Please visit https://www.arduino.cc/en/reference/homepage to learn all features of arduino before you start the experiments TEMPERATURE MEASUREMENT AND CONTROL USING LM35 Purpose: To measure
More informationkeyestudio Keyestudio MEGA 2560 R3 Board
Keyestudio MEGA 2560 R3 Board Introduction: Keyestudio Mega 2560 R3 is a microcontroller board based on the ATMEGA2560-16AU, fully compatible with ARDUINO MEGA 2560 REV3. It has 54 digital input/output
More informationRobotics/Electronics Review for the Final Exam
Robotics/Electronics Review for the Final Exam Unit 1 Review. 1. The battery is 12V, R1 is 400 ohms, and the current through R1 is 20 ma. How many ohms is R2? ohms What is the voltage drop across R1? V
More informationLab 01 Arduino 程式設計實驗. Essential Arduino Programming and Digital Signal Process
Lab 01 Arduino 程式設計實驗 Essential Arduino Programming and Digital Signal Process Arduino Arduino is an open-source electronics prototyping platform based on flexible, easy-to-use hardware and software. It's
More informationARDUINO EXPERIMENTS ARDUINO EXPERIMENTS
ARDUINO EXPERIMENTS IR OBSTACLE SENSOR... 3 OVERVIEW... 3 OBJECTIVE OF THE EXPERIMENT... 3 EXPERIMENTAL SETUP... 3 IR SENSOR ARDUINO CODE... 4 ARDUINO IDE SERIAL MONITOR... 5 GAS SENSOR... 6 OVERVIEW...
More informationSmart Objects. SAPIENZA Università di Roma, M.Sc. in Product Design Fabio Patrizi
Smart Objects SAPIENZA Università di Roma, M.Sc. in Product Design Fabio Patrizi 1 What is a Smart Object? Essentially, an object that: Senses Thinks Acts 2 Example 1 https://www.youtube.com/watch?v=6bncjd8eke0
More informationFUNCTIONS For controlling the Arduino board and performing computations.
d i g i t a l R e a d ( ) [Digital I/O] Reads the value from a specified digital pin, either HIGH or LOW. digitalread(pin) pin: the number of the digital pin you want to read HIGH or LOW Sets pin 13 to
More information3.The circuit board is composed of 4 sets which are 16x2 LCD Shield, 3 pieces of Switch, 2
Part Number : Product Name : FK-FA1416 MULTI-FUNCTION 16x2 LCD SHIELD This is the experimental board of Multi-Function 16x2 LCD Shield as the fundamental programming about the digits, alphabets and symbols.
More informationArduino Programming and Interfacing
Arduino Programming and Interfacing Stensat Group LLC, Copyright 2017 1 Robotic Arm Experimenters Kit 2 Legal Stuff Stensat Group LLC assumes no responsibility and/or liability for the use of the kit and
More informationIntroduction to Arduino
Introduction to Arduino Paco Abad May 20 th, 2011 WGM #21 Outline What is Arduino? Where to start Types Shields Alternatives Know your board Installing and using the IDE Digital output Serial communication
More informationLab-3: LCDs Serial Communication Analog Inputs Temperature Measurement System
Mechatronics Engineering and Automation Faculty of Engineering, Ain Shams University MCT-151, Spring 2015 Lab-3: LCDs Serial Communication Analog Inputs Temperature Measurement System Ahmed Okasha okasha1st@gmail.com
More informationClark College Electrical Engineering & Computer Science
Clark College Electrical Engineering & Computer Science slide # 1 http://www.engrcs.com/ecsv5.pdf Electrical Engineering & Computer Science Artificial Intelligent (AI) Bio Medical Computers & Digital Systems
More informationIME-100 ECE. Lab 4. Electrical and Computer Engineering Department Kettering University. G. Tewolde, IME100-ECE,
IME-100 ECE Lab 4 Electrical and Computer Engineering Department Kettering University 4-1 1. Laboratory Computers Getting Started i. Log-in with User Name: Kettering Student (no password required) ii.
More informationTABLE OF CONTENTS INTRODUCTION LESSONS PROJECTS
TABLE OF CONTENTS INTRODUCTION Introduction to Components - Maker UNO 5 - Maker UNO Board 6 - Setting Up - Download Arduino IDE 7 - Install Maker UNO Drivers - Install Maker UNO Board Package 3 LESSONS.
More informationSPLDuino Programming Guide
SPLDuino Programming Guide V01 http://www.helloapps.com http://helloapps.azurewebsites.net Mail: splduino@gmail.com HelloApps Co., Ltd. 1. Programming with SPLDuino 1.1 Programming with Arduino Sketch
More informationArduino and Matlab for prototyping and manufacturing
Arduino and Matlab for prototyping and manufacturing Enrique Chacón Tanarro 11th - 15th December 2017 UBORA First Design School - Nairobi Enrique Chacón Tanarro e.chacon@upm.es Index 1. Arduino 2. Arduino
More informationAdapted from a lab originally written by Simon Hastings and Bill Ashmanskas
Physics 364 Arduino Lab 1 Adapted from a lab originally written by Simon Hastings and Bill Ashmanskas Vithayathil/Kroll Introduction Last revised: 2014-11-12 This lab introduces you to an electronic development
More informationIntroduction to Microcontrollers Using Arduino. PhilRobotics
Introduction to Microcontrollers Using Arduino PhilRobotics Objectives Know what is a microcontroller Learn the capabilities of a microcontroller Understand how microcontroller execute instructions Objectives
More informationTANGIBLE MEDIA & PHYSICAL COMPUTING INTRODUCTION TO ARDUINO
TANGIBLE MEDIA & PHYSICAL COMPUTING INTRODUCTION TO ARDUINO AGENDA ARDUINO HARDWARE THE IDE & SETUP BASIC PROGRAMMING CONCEPTS DEBUGGING & HELLO WORLD INPUTS AND OUTPUTS DEMOS ARDUINO HISTORY IN 2003 HERNANDO
More informationARDUINO WORKSHOP A HANDS-ON I N T R O D U C T I O N W I T H 65 PROJECTS JOHN BOXALL
ARDUINO WORKSHOP A HANDS-ON I N T R O D U C T I O N W I T H 65 PROJECTS JOHN BOXALL I NDEX Symbols & Numbers &, 139 &&, 73 *, 84 */, 27 ==, 71!, 73!=, 71 /, 84 /*, 27 //, 27 >, 84 >=, 84 #define, 70 #include,
More informationPROGRAMMING ARDUINO COURSE ON ADVANCED INTERACTION TECHNIQUES. Luís Carriço FCUL 2012/13
Sources: Arduino Hands-on Workshop, SITI, Universidad Lusófona Arduino Spooky projects Basic electronics, University Pennsylvania Beginning Arduino Programming Getting Started With Arduino COURSE ON ADVANCED
More informationDesigned & Developed By: Ms. Jasleen Kaur, PhD Scholar, CSE. Computer Science & Engineering Department
Design & Development of IOT application using Intel based Galileo Gen2 board A Practical Approach (Experimental Manual For B.Tech & M.Tech Students) For SoC and Embedded systems in association with Intel
More informationStenBOT Robot Kit. Stensat Group LLC, Copyright 2018
StenBOT Robot Kit 1 Stensat Group LLC, Copyright 2018 Legal Stuff Stensat Group LLC assumes no responsibility and/or liability for the use of the kit and documentation. There is a 90 day warranty for the
More informationExperiment 3: Sonar Navigation, CAD and 3D Printing
Experiment 3: Sonar Navigation, CAD and 3D Printing V3 Robot scans area for obstacles to avoid hitting them and navigates using sonar sensor mounted on a 3D printed sensor bracket that goes on a micro
More informationWorkshop on Microcontroller Based Project Development
Organized by: EEE Club Workshop on Microcontroller Based Project Development Presented By Mohammed Abdul Kader Assistant Professor, Dept. of EEE, IIUC Email:kader05cuet@gmail.com Website: kader05cuet.wordpress.com
More informationLab 2 - Powering the Fubarino. Fubarino,, Intro to Serial, Functions and Variables
Lab 2 - Powering the Fubarino Fubarino,, Intro to Serial, Functions and Variables Part 1 - Powering the Fubarino SD The Fubarino SD is a 56 pin device. Each pin on a chipkit device falls broadly into one
More informationLaboratory 1 Introduction to the Arduino boards
Laboratory 1 Introduction to the Arduino boards The set of Arduino development tools include µc (microcontroller) boards, accessories (peripheral modules, components etc.) and open source software tools
More informationIME-100 Interdisciplinary Design and Manufacturing
IME-100 Interdisciplinary Design and Manufacturing Introduction Arduino and Programming Topics: 1. Introduction to Microprocessors/Microcontrollers 2. Introduction to Arduino 3. Arduino Programming Basics
More informationThe Arduino Briefing. The Arduino Briefing
Mr. Yee Choon Seng Email : csyee@simtech.a-star.edu.sg Design Project resources http://guppy.mpe.nus.edu.sg/me3design.html One-Stop robotics shop A-Main Objectives Pte Ltd, Block 1 Rochor Road, #02-608,
More informationHow to Use an Arduino
How to Use an Arduino By Vivian Law Introduction The first microcontroller, TMS-1802-NC, was built in 1971 by Texas Instruments. It owed its existence to the innovation and versatility of silicon and the
More informationArduino Uno. Power & Interface. Arduino Part 1. Introductory Medical Device Prototyping. Digital I/O Pins. Reset Button. USB Interface.
Introductory Medical Device Prototyping Arduino Part 1, http://saliterman.umn.edu/ Department of Biomedical Engineering, University of Minnesota Arduino Uno Power & Interface Reset Button USB Interface
More informationIME-100 ECE. Lab 3. Electrical and Computer Engineering Department Kettering University. G. Tewolde, IME100-ECE,
IME-100 ECE Lab 3 Electrical and Computer Engineering Department Kettering University 3-1 1. Laboratory Computers Getting Started i. Log-in with User Name: Kettering Student (no password required) ii.
More informationE11 Lecture 4: More C!!! Profs. David Money Harris & Sarah Harris Fall 2011
E11 Lecture 4: More C!!! Profs. David Money Harris & Sarah Harris Fall 2011 Outline Logistics Serial Input Physical Inputs/Outputs Randomness Operators Control Statements Logistics Logistics Tutoring hours:
More informationChapter 2 The Basic Functions
Chapter 2 The Basic Functions 2.1 Overview The code you learn to write for your Arduino is very similar to the code you write in any other computer language. This implies that all the basic concepts remain
More informationMEDIS Module 2. Microcontroller based systems for controlling industrial processes. Chapter 4: Timer and interrupts. M. Seyfarth, Version 0.
MEDIS Module 2 Microcontroller based systems for controlling industrial processes Chapter 4: Timer and interrupts M. Seyfarth, Version 0.1 Steuerungstechnik 1: Speicherprogrammierbare Steuerungstechnik
More informationIntro to Arduino. Zero to Prototyping in a Flash! Material designed by Linz Craig and Brian Huang
Intro to Arduino Zero to Prototyping in a Flash! Material designed by Linz Craig and Brian Huang Overview of Class Getting Started: Installation, Applications and Materials Electrical: Components, Ohm's
More informationEEG 101L INTRODUCTION TO ENGINEERING EXPERIENCE
EEG 101L INTRODUCTION TO ENGINEERING EXPERIENCE LABORATORY 1: INTRODUCTION TO ARDUINO IDE AND PROGRAMMING DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING UNIVERSITY OF NEVADA, LAS VEGAS 1. FYS KIT COMPONENTS
More informationLøkkestrukturer. Trykknap: Button, Se eksempler / Digital / Button. Decision: If: Version 01/ Loops, løkker mm. i Arduino.
Loops, løkker mm. i Arduino Links til: Trykknap If, If Else If For-Loop While, Do While PWM Serial Read Funktioner Array, Matrix Trykknap: Button, Se eksempler / Digital / Button int buttonpin=2 pinmode(buttonpin,
More informationSerial.begin ( ); Serial.println( ); analogread ( ); map ( );
Control and Serial.begin ( ); Serial.println( ); analogread ( ); map ( ); A system output can be changed through the use of knobs, motion, or environmental conditions. Many electronic systems in our world
More informationPROGRAMMING WITH ARDUINO
PROGRAMMING WITH ARDUINO Arduino An open-source hardware platform based on an Atmel AVR 8-bit microcontroller and a C++ based IDE Over 300000 boards have been manufactured Arduino Due is based on a 32-bit
More informationArduino Course. Technology Will Save Us - Tim Brooke 10th August Friday, 9 August 13
Arduino Course Technology Will Save Us - Tim Brooke 10th August 2013 Arduino Projects http://www.instructables.com/id/20-unbelievable-arduino-projects/ Blink /* Blink Turns on an LED on for one second,
More informationWhat s inside the kit
What s inside the kit 1 set Jumper Wires 5 pcs Tact Switch 1 pc Photoresistor 1 pc 400 Points Breadboard 1 pc Potentiometer 1 pc LCD 5 pcs 5mm Red LED 5 pcs 5mm Green LED 5 pcs 5mm Yellow LED 30 pcs Resistors
More informationMake your own secret locking mechanism to keep unwanted guests out of your space!
KNOCK LOCK Make your own secret locking mechanism to keep unwanted guests out of your space! Discover : input with a piezo, writing your own functions Time : 1 hour Level : Builds on projects : 1,,3,4,5
More informationJunying Huang Fangjie Zhou. Smartphone Locker
Junying Huang Fangjie Zhou Smartphone Locker Motivation and Concept Smartphones are making our lives more and more convenient. In addition to some basic functions like making calls and sending messages,
More informationINDUSTRIAL TRAINING:6 MONTHS PROGRAM TEVATRON TECHNOLOGIES PVT LTD
MODULE-1 C Programming Language Introduction to C Objectives of C Applications of C Relational and logical operators Bit wise operators The assignment statement Intermixing of data types type conversion
More informationRequired Materials. Optional Materials. Preparation
Module 1: Crash Prevention Lesson 3: Weather Information systems Programming Activity Using Arduino Teacher Resource Grade 9-12 Time Required: 3 60 minute sessions or 3 hours Required Materials Computers
More informationDistributed Real- Time Control Systems. Lecture 3 Embedded Systems Interfacing the OuterWorld
Distributed Real- Time Control Systems Lecture 3 Embedded Systems Interfacing the OuterWorld 1 Bibliography ATMEGA 328 Datasheet. arduino.cc Book: Arduino Cookbook, 2nd Ed. Michael Margolis O Reilly, 2012
More informationSchedule. Sanford Bernhardt, Sangster, Kumfer, Michalaka. 3:10-5:00 Workshop: Build a speedometer 5:15-7:30 Dinner and Symposium: Group 2
Schedule 8:00-11:00 Workshop: Arduino Fundamentals 11:00-12:00 Workshop: Build a follower robot 1:30-3:00 Symposium: Group 1 Sanford Bernhardt, Sangster, Kumfer, Michalaka 3:10-5:00 Workshop: Build a speedometer
More informationTANGIBLE MEDIA & PHYSICAL COMPUTING MORE ARDUINO
TANGIBLE MEDIA & PHYSICAL COMPUTING MORE ARDUINO AGENDA RECAP ALGORITHMIC APPROACHES TIMERS RECAP: LAST WEEK WE DID: ARDUINO IDE INTRO MAKE SURE BOARD AND USB PORT SELECTED UPLOAD PROCESS COVERED DATATYPES
More informationWorkshop Arduino English starters workshop 2
Workshop Arduino English starters workshop 2 We advice to finish part 1 of this workshop before following this one. There are a set of assignments in this workshop that can be taken individually. First
More informationNew APIs and Hacks. Servo API. Chapter 4. The Theory versus Practice
Chapter 4 New APIs and Hacks The challenge when Intel Galileo was designed was to create a board that would be compatible with Arduino headers and reference language using only the Quark microprocessor,
More informationLaboratory 5 Communication Interfaces
Laboratory 5 Communication Interfaces Embedded electronics refers to the interconnection of circuits (micro-processors or other integrated circuits) with the goal of creating a unified system. In order
More informationLab 4 LCDs and Accelerometers
University of Pennsylvania Department of Electrical and Systems Engineering ESE 111 Intro to Electrical/Computer/Systems Engineering Lab 4 LCDs and Accelerometers Introduction: In this lab, will learn
More informationNote. The above image and many others are courtesy of - this is a wonderful resource for designing circuits.
Robotics and Electronics Unit 2. Arduino Objectives. Students will understand the basic characteristics of an Arduino Uno microcontroller. understand the basic structure of an Arduino program. know how
More informationIntroduction to Arduino. Wilson Wingston Sharon
Introduction to Arduino Wilson Wingston Sharon cto@workshopindia.com Physical computing Developing solutions that implement a software to interact with elements in the physical universe. 1. Sensors convert
More informationArduino Programming Part 4: Flow Control
Arduino Programming Part 4: Flow Control EAS 199B, Winter 2010 Gerald Recktenwald Portland State University gerry@me.pdx.edu Goal Make choices based on conditions in the environment Logical expressions:
More informationPhysical Computing Tutorials
Physical Computing Tutorials How to install libraries Powering an Arduino Using an MPR121 capacitive touch sensor Using a Sparkfun MP3 Trigger Controlling an actuator with TinkerKit Mosfet Making sounds
More informationIntroduction What is MIT App Inventor?
Table of Contents Introduction What is MIT App Inventor? Arduino (From Arduino Website) Turn On and OFF an LED (Hello World) Creating Android App Connecting Bluetooth and programming Arduino Control LED
More informationLab 2 - Powering the Fubarino, Intro to Serial, Functions and Variables
Lab 2 - Powering the Fubarino, Intro to Serial, Functions and Variables Part 1 - Powering the Fubarino SD The Fubarino SD is a 56 pin device. Each pin on a chipkit device falls broadly into one of 9 categories:
More information<Table of content> <Parts and description> <Circuit board Guide> <Pins> <Basics of Coding> <Intro to Arduino> <Intro> <Downloading Arduino IDO>
http://www.arduino.cc/
More informationCARTOOINO Projects Book
1 CARTOOINO Projects Book Acknowledgement Acknowledgement This Cartooino Projects Book is a cartoon based adaptation of the Arduino Projects Book. The Cartooino Project Book was developed by the GreenLab
More informationUniversity of Portland EE 271 Electrical Circuits Laboratory. Experiment: Arduino
University of Portland EE 271 Electrical Circuits Laboratory Experiment: Arduino I. Objective The objective of this experiment is to learn how to use the Arduino microcontroller to monitor switches and
More information#include <Keypad.h> int datasens; #define pinsens 11. const byte ROWS = 4; //four rows const byte COLS = 3; //three columns
#include int datasens; #define pinsens 11 const byte ROWS = 4; //four rows const byte COLS = 3; //three columns char keys[rows][cols] = '1','2','3', '4','5','6', '7','8','9', '*','0','#' ; byte
More informationEnergia MSP-430!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 1
Energia MSP-430 1 3 Energia 4 4 4 6 8 9 Energia 11 18 2 IIB Energia MSP-430 IIB C C++ 3 Energia Energia MSP-430 Windows Mac OS Linux MSP-430, http://www.energia.nu, Max OS X, windows Linux Mac OS X, energia-
More informationARDUINO FOR COMPLETE IDIOTS. by David Smith
ARDUINO FOR COMPLETE IDIOTS by David Smith All Rights Reserved. No part of this publication may be reproduced in any form or by any means, including scanning, photocopying, or otherwise without prior written
More informationArduino provides a standard form factor that breaks the functions of the micro-controller into a more accessible package.
About the Tutorial Arduino is a prototype platform (open-source) based on an easy-to-use hardware and software. It consists of a circuit board, which can be programed (referred to as a microcontroller)
More informationDAQ-1000 Data Acquisition and Control System Application
WWW.INHAOS.COM DAQ-1000 Data Acquisition and Control System Application Based on the DAQ-1000 Arduino UNO Data Acquisition shield Tony Tan 2015/11/10 1. Summary This document gives an example of how to
More informationLaboratory 3 Working with the LCD shield and the interrupt system
Laboratory 3 Working with the LCD shield and the interrupt system 1. Working with the LCD shield The shields are PCBs (Printed Circuit Boards) that can be placed over the Arduino boards, extending their
More informationSTEPD StepDuino Quickstart Guide
STEPD StepDuino Quickstart Guide The Freetronics StepDuino is Arduino Uno compatible, uses the ATmega328P Microcontroller and works with most Arduino software. The StepDuino can be powered automatically
More informationSWITCH 10 KILOHM RESISTOR 220 OHM RESISTOR POTENTIOMETER LCD SCREEN INGREDIENTS
11 SWITCH 10 KILOHM RESISTOR 220 OHM RESISTOR POTENTIOMETER LCD SCREEN INGREDIENTS 115 CRYSTAL BALL CREATE A CRYSTAL BALL TO TELL YOUR FUTURE Discover: LCD displays, switch/case statements, random() Time:
More informationArduino Programming Part 3. EAS 199A Fall 2010
Arduino Programming Part 3 EAS 199A Fall 2010 Overview Part I Circuits and code to control the speed of a small DC motor. Use potentiometer for dynamic user input. Use PWM output from Arduino to control
More informationUser manual. For Keenlon Rarduino.
User manual For Keenlon Rarduino Design & Executive Service Website Shanghai Keenlon Hi-Tech Co., Ltd. Techsupport@keenlon.com www.keenlon.com Contents 3 Programming software installation guide 5 Programming
More informationThis tutorial will show you how to take temperature readings using the Freetronics temperature sensor and an Arduino Uno.
This tutorial will show you how to take temperature readings using the Freetronics temperature sensor and an Arduino Uno. Note that there are two different module types: the temperature sensor module and
More informationFubar Labs Arduino Tutorial
Fubar Labs Arduino Tutorial Introduction to Arduino HW and Integrated Development Environment 4/14/2018 Introduction to Arduino and IDE 1 Hampton Sailer, HW Engineer 30+ years experience designing microprocessor
More informationSpecification. 1.Power Supply direct from Microcontroller Board. 2.The circuit can be used with Microcontroller Board such as Arduino UNO R3.
Part Number : Product Name : FK-FA1410 12-LED AND 3-BOTTON SHIELD This is the experimental board for receiving and transmitting data from the port of microcontroller. The function of FK-FA1401 is fundamental
More informationArduino - DigitalReadSerial
arduino.cc Arduino - DigitalReadSerial 5-6 minutes Digital Read Serial This example shows you how to monitor the state of a switch by establishing serial communication between your Arduino or Genuino and
More informationThe Arduino IDE and coding in C (part 1)
The Arduino IDE and coding in C (part 1) Introduction to the Arduino IDE (integrated development environment) Based on C++ Latest version ARDUINO IDE 1.8.3 can be downloaded from: https://www.arduino.cc/en/main/software
More informationFall Harris & Harris
E11: Autonomous Vehicles Fall 2011 Harris & Harris PS 1: Welcome to Arduino This is the first of five programming problem sets. In this assignment you will learn to program the Arduino board that you recently
More informationIntroduction to Arduino Programming. Sistemi Real-Time Prof. Davide Brugali Università degli Studi di Bergamo
Introduction to Arduino Programming Sistemi Real-Time Prof. Davide Brugali Università degli Studi di Bergamo What is a Microcontroller www.mikroe.com/chapters/view/1 A small computer on a single chip containing
More informationKNOCK LOCK MAKE YOUR OWN SECRET LOCKING MECHANISM TO KEEP UNWANTED GUESTS OUT OF YOUR SPACE! Discover: input with a piezo, writing your own functions
125 KNOCK LOCK MAKE YOUR OWN SECRET LOCKING MECHANISM TO KEEP UNWANTED GUESTS OUT OF YOUR SPACE! Discover: input with a piezo, writing your own functions Time: 1 HOUR Level: Builds on projects: 1, 2, 3,
More informationArduino Platform Part I
Arduino Platform Part I Justin Mclean Class Software Email: justin@classsoftware.com Twitter: @justinmclean Blog: http://blog.classsoftware.com Who am I? Director of Class Software for almost 15 years
More informationThe speaker connection is circled in yellow, the button connection in red and the temperature sensor in blue
Connections While the board can be connected to a number of different Arduino versions I chose to use the Pro Mini as I wanted the completed unit to be fairly small. The Mini and the MP3 board run on 5
More informationRB-Dfr-12 DFRobot URM04 v2.0 Ultrasonic Sensor
RB-Dfr-12 DFRobot URM04 v2.0 Ultrasonic Sensor URM04 is developed based upon our popular URM37 ultrasonic sensor. The RS485 interface allows a number of sensors working together. Up to 32 URM04 may be
More information/* to use: enter key aray and make sure that the userentered has the same number of zeros
to use: enter key aray and make sure that the userentered has the same number of zeros ex: int Keyarray[] = {1,2,3,4; int userentered[] = {0,0,0,0; ex2: int Keyarray[] = {1,2,3,4,1,2,3; int userentered[]
More information#define CE_PIN 12 //wireless module CE pin #define CSN_PIN 13 //wireless module CSN pin. #define angleaveragenum 1
/***************************************************************************************************** define statements *****************************************************************************************************/
More informationFIRE SENSOR ROBOT USING ATMEGA8L
PROJECT REPORT MICROCONTROLLER AND APPLICATIONS ECE 304 FIRE SENSOR ROBOT USING ATMEGA8L BY AKSHAY PATHAK (11BEC1104) SUBMITTED TO: PROF. VENKAT SUBRAMANIAN PRAKHAR SINGH (11BEC1108) PIYUSH BLAGGAN (11BEC1053)
More information