SECOND EDITION. Arduino Cookbook. Michael Margolis O'REILLY- Tokyo. Farnham Koln Sebastopol. Cambridge. Beijing

Size: px
Start display at page:

Download "SECOND EDITION. Arduino Cookbook. Michael Margolis O'REILLY- Tokyo. Farnham Koln Sebastopol. Cambridge. Beijing"

Transcription

1 SECOND EDITION Arduino Cookbook Michael Margolis Beijing Cambridge Farnham Koln Sebastopol O'REILLY- Tokyo

2 Table of Contents Preface xi 1. Getting Started Installing the Integrated Development Environment (IDE) Setting Up the Arduino Board Using the Integrated Development Environment (IDE) to Prepare an Arduino Sketch Uploading and Running the Blink Sketch Creating and a Saving Sketch Using Arduino Making the Sketch Do Your Bidding Structuring an Arduino Program Using Simple Primitive Types (Variables) Using Floating-Point Numbers Working with Groups of Values Using Arduino String Functionality Using C Character Strings Splitting Comma-Separated Text into Groups Converting a Number to a String Converting a String to a Number Structuring Your Code into Functional Blocks Returning More Than One Value from a Function Taking Actions Based on Conditions 52 of Statements Repeating a Sequence 2.14 Repeating Statements with a Counter Breaking Out of Loops Taking a Variety of Actions Based on a Single Variable Comparing Character and Numeric Values Comparing Strings Performing Logical Comparisons 64 iii

3 2.20 Performing Bitwise Operations Combining Operations and Assignment Using Mathematical Operators Adding, Subtracting, Multiplying, and Dividing Incrementing and Decrementing Values Finding the Remainder After Dividing Two Values Determining the Absolute Value Constraining a Number to a Range of Values Finding the Minimum or Maximum of Some Values Raising a Number to a Power Taking the Square Root Rounding Floating-Point Numbers Up and Down Using Trigonometric Functions Generating Random Numbers Setting and Reading Bits Shifting Bits Extracting High and Low Bytes in an int or long Forming an int or long from High and Low Bytes Serial Communications Sending Debug Information from Arduino to Your Computer Sending Formatted Text and Numeric Data from Arduino 97 Serial Data in Arduino Receiving 4.4 Sending Multiple Text Fields from Arduino in a Single Message Receiving Multiple Text Fields in a Single Message in Arduino Sending Binary Data from Arduino Receiving Binary Data from Arduino on a Computer Sending Binary Values from Processing to Arduino Sending the Value of Multiple Arduino Pins How to Move the Mouse Cursor on a PC or Mac Controlling Google Earth Using Arduino Logging Arduino Data to a File on Your Computer Sending Data to Two Serial Devices at the Same Time Receiving Serial Data from Two Devices at the Same Time Setting Up Processing on Your Computer to Send and Receive Serial Data Simple Digital and Analog Input Using a Switch Using a Switch Without External Resistors Reliably Detecting the Closing of a Switch Determining How Long a Switch Is Pressed 158 iv Table of Contents

4 5.5 Reading a Keypad Reading Analog Values Changing the Range of Values Reading More Than Six Analog Inputs Displaying Voltages Up to 5V Responding to Changes in Voltage Measuring Voltages More Than 5V (Voltage Dividers) Getting Input from Sensors Detecting Movement Detecting Light Detecting Motion (Integrating Passive Infrared Detectors) Measuring Distance Measuring Distance Accurately Detecting Vibration Detecting Sound Measuring Temperature Reading RFID Tags Tracking Rotary Movement Tracking the Movement of More Than One Rotary Encoder Tracking Rotary Movement in a Busy Sketch Using a Mouse Getting Location from a GPS Detecting Rotation Using a Gyroscope Detecting Direction Getting Input from a Game Control Pad (PlayStation) Reading Acceleration Visual Output Connecting and Using 7.2 Adjusting the Brightness of an LED Driving High-Power LEDs 249 LEDs Adjusting the Color of an LED Sequencing Multiple LEDs: Creating a Bar Graph Sequencing Multiple LEDs: Making a Chase Sequence (Knight Rider) Controlling an LED Matrix Using Multiplexing Displaying Images 7.9 Controlling a Matrix of LEDs: Charlieplexing 265 on an LED Matrix Driving a 7-Segment LED Display Driving Multidigit, 7-Segment LED Displays: Multiplexing Driving Multidigit, 7-Segment LED Displays Using MAX7221 Shift Registers 276 Table of Contents v

5 7.13 Controlling an Array of LEDs by Using MAX72xx Shift Registers Increasing the Number of Analog Outputs Using PWM Extender Chips (TLC5940) Using an Analog Panel Meter as a Display Physical Output Controlling the Position of a Servo Controlling One or Two Servos with a Potentiometer or Sensor Controlling the Speed of Continuous Rotation Servos Controlling Servos Using Computer Commands Driving a Brushless Motor (Using a Hobby Speed Controller) Controlling Solenoids and Relays Making an Object Vibrate Driving Brushed a Motor a Using Transistor Controlling the Direction of a Brushed Motor with an H-Bridge Controlling the Direction and Speed of a Brushed Motor with an H-Bridge Using Sensors to Control the Direction and Speed of Brushed Motors (L293 H-Bridge) Driving a Bipolar Stepper Motor Driving a Bipolar Stepper Motor (Using the EasyDriver Board) Driving a Unipolar Stepper Motor (ULN2003A) Audio Output Playing Tones Playing a Simple Melody Generating More Than One Simultaneous Tone Generating Audio Tones and Fading an LED Playing a WAV File Controlling MIDI Making an Audio Synthesizer Remotely Controlling External Devices Responding to an Infrared Remote Control Decoding Infrared Remote Control Signals Imitating Remote Control Signals Controlling a Digital Camera Controlling AC Devices by Hacking a Remote-Controlled Switch Using Displays Connecting and Using a Text LCD Display Formatting Text Turning the Cursor and Display On or Off 370 vi Table of Contents

6 11.4 Scrolling Text Displaying Special Symbols Creating Custom Characters Displaying Symbols Larger Than a Single Character Displaying Pixels Smaller Than a Single Character Connecting and Using a Graphical LCD Display Creating Bitmaps for Use with a Graphical Display Displaying Text on a TV Using Time and Dates Creating Delays Using millis to Determine Duration More Precisely Measuring the Duration of a Pulse Using Arduino as a Clock Creating an Alarm to Periodically Call a Function Using a Real-Time Clock Communicating Using I2C and SPI Controlling an RGB LED Using the BlinkM Module Using the Wii Nunchuck Accelerometer Interfacing to an External Real-Time Clock Adding External EEPROM Memory Reading Temperature with a Digital Thermometer Driving Four 7-Segment LEDs Using Only Two Wires Integrating an I2C Port Expander Driving Multidigit, 7-Segment Displays Using SPI Communicating Between Two or More Arduino Boards Wireless Communication Sending Messages Using Low-Cost Wireless Modules Connecting Arduino to a ZigBee or Network Sending a Message to a Particular XBee Sending Sensor Data Between XBees Activating an Actuator Connected to an XBee Sending Messages Using Low-Cost Transceivers Communicating with Bluetooth Devices Ethernet and Networking Setting Up the Ethernet Shield Obtaining Your IP Address Automatically Resolving Hostnames to IP Addresses (DNS) Requesting Data from a Web Server Requesting Data from a Web Server Using XML 508 Table of Contents vii

7 15.6 Setting Up an Arduino to Be a Web Server Handling Incoming Web Requests Handling Incoming Requests for Specific Pages Using HTML to Format Web Server Responses Serving Web Pages Using Forms (POST) Serving Web Pages Containing Large Amounts of Data Sending Twitter Messages Sending and Receiving Simple Messages (UDP) Getting the Time from an Internet Time Server Monitoring Pachube Feeds Sending Information to Pachube Using, Modifying, and Creating Libraries Using the Built-in Libraries Installing Third-Party Libraries Modifying a Library Creating Your Own Library Creating a Library That Uses Other Libraries Updating Third-Party Libraries for Arduino Advanced Coding and Memory Handling Understanding the Arduino Build Process Determining the Amount of Free and Used RAM Storing and Retrieving Numeric Values in Program Memory Storing and Retrieving Strings in Program Memory Using #define and const Instead of Integers Using Conditional Compilations Using the Controller Chip Hardware Storing Data in Permanent EEPROM Memory Using Hardware Interrupts Setting Timer Duration Setting Timer Pulse Width and Duration Creating a Pulse Generator Changing a Timer's PWM Frequency Counting Pulses Measuring Pulses More Accurately Measuring Analog Values Quickly Reducing Battery Drain Setting Digital Pins Quickly Uploading Sketches Using a Programmer Replacing the Arduino Bootloader Reprogram the Uno to Emulate a Native USB device 633 viii Table of Contents

8 A. Electronic Components 637 B. Using Schematic Diagrams and Data Sheets 643 C. Building and Connecting the Circuit 651 D. Tips on Troubleshooting Software Problems 655 E. Tips on Troubleshooting Hardware Problems 659 F. Digital and Analog Pins 663 G. ASCII and Extended Character Sets 667 H. Migrating to Arduino Index 677 Table of Contents ix

Arduino Cookbook O'REILLY* Michael Margolis. Tokyo. Cambridge. Beijing. Farnham Koln Sebastopol

Arduino Cookbook O'REILLY* Michael Margolis. Tokyo. Cambridge. Beijing. Farnham Koln Sebastopol Arduino Cookbook Michael Margolis O'REILLY* Beijing Cambridge Farnham Koln Sebastopol Tokyo Table of Contents Preface xiii 1. Getting Started 1 1.1 Installing the Integrated Development Environment (IDE)

More information

Copyright 2011 Michael Margolis and Nicholas Weldin. All rights reserved. Printed in the United States of America.

Copyright 2011 Michael Margolis and Nicholas Weldin. All rights reserved. Printed in the United States of America. Arduino Cookbook by Michael Margolis Copyright 2011 Michael Margolis and Nicholas Weldin. All rights reserved. Printed in the United States of America. Published by O Reilly Media, Inc., 1005 Gravenstein

More information

PROGRAMMING AND CUSTOMIZING

PROGRAMMING AND CUSTOMIZING PROGRAMMING AND CUSTOMIZING THE PICAXE MICROCONTROLLER SECOND EDITION DAVID LINCOLN Mc Grauu Hill New York Chicago San Francisco Lisbon London Madrid Mexico City Milan New Delhi San Juan Seoul Singapore

More information

RoboSpecies Technologies Pvt. Ltd.

RoboSpecies Technologies Pvt. Ltd. Table of Contents Table of Contents... vi Part 1: Introduction to Robotics... 1 1.1 Robotics... 3 1.1.1 House Robots... 4 1.1.2 Industrial Robots... 4 1.1.3 Medical Robots... 6 1.1.4 Space Robots... 7

More information

Arduino Uno. Power & Interface. Arduino Part 1. Introductory Medical Device Prototyping. Digital I/O Pins. Reset Button. USB Interface.

Arduino 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 information

Arduino Internals. Dale Wheat. Apress

Arduino Internals. Dale Wheat. Apress Arduino Internals Dale Wheat Apress Contents About the Authors About the Technical Reviewers Acknowledgments Preface xv xvi xvii xviii Chapter 1: Hardware 1 What Is an Arduino? 1 The Arduino Uno 2 Processor

More information

Intel Galileo gen 2 Board

Intel Galileo gen 2 Board Intel Galileo gen 2 Board The Arduino Intel Galileo board is a microcontroller board based on the Intel Quark SoC X1000, a 32- bit Intel Pentium -class system on a chip (SoC). It is the first board based

More information

Answers to Chapter 2 Review Questions. 2. To convert controller signals into external signals that are used to control the machine or process

Answers to Chapter 2 Review Questions. 2. To convert controller signals into external signals that are used to control the machine or process Answers to Chapter 2 Review Questions 1. To accept signals from the machine or process devices and to convert them into signals that can be used by the controller 2. To convert controller signals into

More information

Index A COPYRIGHTED MATERIAL 349

Index A COPYRIGHTED MATERIAL 349 = (assignment) operator, 34 == (comparison) operator, 32 && (logical) operator, 35 3-bit analog quantization, 44 45 3.3V power, 7 5V power, 7, 82 84 74HC595 shift register, 148 151 A accelerometers, triple

More information

Getting to know the Arduino IDE

Getting to know the Arduino IDE Getting to know the Arduino IDE I ve heard about Arduino, what the heck is it? Arduino is a development environment Combination of hardware and software Hardware based on Atmel AVR processors Software

More information

Physical Computing Self-Quiz

Physical Computing Self-Quiz Physical Computing Self-Quiz The following are questions you should be able to answer without reference to outside material by the middle of the semester in Introduction to Physical Computing. Try to answer

More information

Acknowledgments...xvi Introduction... xvii Primer Project 1: Blinking an LED Project 2: Pushbutton LED Flashlight...

Acknowledgments...xvi Introduction... xvii Primer Project 1: Blinking an LED Project 2: Pushbutton LED Flashlight... Contents Acknowledgments...xvi Introduction... xvii Primer... 2 LEDs Project 1: Blinking an LED... 36 Project 2: Pushbutton LED Flashlight... 46 Project 3: LED Dimmer Switch... 52 Project 4: A Graphical

More information

Introduction to Microcontroller Apps for Amateur Radio Projects Using the HamStack Platform.

Introduction to Microcontroller Apps for Amateur Radio Projects Using the HamStack Platform. Introduction to Microcontroller Apps for Amateur Radio Projects Using the HamStack Platform www.sierraradio.net www.hamstack.com Topics Introduction Hardware options Software development HamStack project

More information

GUIDE TO SP STARTER SHIELD (V3.0)

GUIDE TO SP STARTER SHIELD (V3.0) OVERVIEW: The SP Starter shield provides a complete learning platform for beginners and newbies. The board is equipped with loads of sensors and components like relays, user button, LED, IR Remote and

More information

Microcontrollers and Interfacing

Microcontrollers and Interfacing Microcontrollers and Interfacing Week 11 input/output device summary project suggestions College of Information Science and Engineering Ritsumeikan University 1 2 this week various input/output devices

More information

ADVANCED TRAINING INSTITUTE, HYDERABAD

ADVANCED TRAINING INSTITUTE, HYDERABAD Revision:01 LEARNING CONTENT Page 1 of 8 III COURSE CODE IA-01 COURSE TITLE PLC PROGRAMMING FOR INDUSTRIAL AUTOMATION OBJECTES On completion of the course, the learner will be able to explain the applications

More information

INDUSTRIAL TRAINING:6 MONTHS PROGRAM TEVATRON TECHNOLOGIES PVT LTD

INDUSTRIAL 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 information

Interaction with the Physical World

Interaction with the Physical World Interaction with the Physical World Methods and techniques for sensing and changing the environment Light Sensing and Changing the Environment Motion and acceleration Sound Proximity and touch RFID Sensors

More information

MT2 Introduction Embedded Systems. MT2.1 Mechatronic systems

MT2 Introduction Embedded Systems. MT2.1 Mechatronic systems MT2 Introduction Embedded Systems MT2.1 Mechatronic systems Mechatronics is the synergistic integration of mechanical engineering, with electronics and intelligent computer control in the design and manufacturing

More information

Retentive On-Delay (TONR)

Retentive On-Delay (TONR) A small sample of the flexibility of PLCs is shown in the following program logic. By reprogramming the T37 contact as a normally closed contact, the function of the circuit is changed to cause the indicator

More information

Programming 8-bit PIC Microcontrollers in С

Programming 8-bit PIC Microcontrollers in С Programming 8-bit PIC Microcontrollers in С with Interactive Hardware Simulation Martin P. Bates älllllltlilisft &Щ*лЛ AMSTERDAM BOSTON HEIDELBERG LONDON ^^Ш NEW YORK OXFORD PARIS SAN DIEGO SAN FRANCISCO

More information

Making Embedded Systems

Making Embedded Systems Making Embedded Systems Elecia White O'REILLY. Beijing Cambridge Farnham Köln Sebastopol Tokyo Table of Contents Preface ix 1. Introduction 1 Compilers, Languages, and Object-Oriented Programming 1 Embedded

More information

Bolt 18F2550 System Hardware Manual

Bolt 18F2550 System Hardware Manual 1 Bolt 18F2550 System Hardware Manual Index : 1. Overview 2. Technical specifications 3. Definition of pins in 18F2550 4. Block diagram 5. FLASH memory Bootloader programmer 6. Digital ports 6.1 Leds and

More information

Embedded Robotics. Software Development & Education Center

Embedded Robotics. Software Development & Education Center Software Development & Education Center Embedded Robotics Robotics Development with 8051 µc INTRODUCTION TO ROBOTICS Types of robots Legged robots Mobile robots Autonomous robots Manual robots Robotic

More information

Advance Robotics with Embedded System Design (ARESD)

Advance Robotics with Embedded System Design (ARESD) Advance Robotics with Embedded System Design (ARESD) LEARN HOW TO: Use Arduino hardware &Arduino programming for microcontroller based hobby project development Use WinAVRcross compiler formicrocontroller

More information

TEVATRON TECHNOLOGIES PVT. LTD Embedded! Robotics! IoT! VLSI Design! Projects! Technical Consultancy! Education! STEM! Software!

TEVATRON TECHNOLOGIES PVT. LTD Embedded! Robotics! IoT! VLSI Design! Projects! Technical Consultancy! Education! STEM! Software! Summer Training 2016 Advance Embedded Systems Fast track of AVR and detailed working on STM32 ARM Processor with RTOS- Real Time Operating Systems Covering 1. Hands on Topics and Sessions Covered in Summer

More information

Laboratory of Sensors Engineering Sciences 9 CFU

Laboratory of Sensors Engineering Sciences 9 CFU Laboratory of Sensors Engineering Sciences 9 CFU Contacts Alexandro Catini catini@ing.uniroma2.it Phone: +39 06 7259 7347 Department of Electronic Engineering First Floor - Room B1-07b Course Outline THEORY

More information

Automation Engineers AB Pvt Ltd, NOIDA Job-Oriented Course on Embedded Microcontrollers & Related Software Stack

Automation Engineers AB Pvt Ltd, NOIDA Job-Oriented Course on Embedded Microcontrollers & Related Software Stack Automation Engineers AB Pvt Ltd, NOIDA Job-Oriented Course on Embedded Microcontrollers & Related Software Stack Course Syllabus: Chapter# Topic Covered Duration MODULE 1 INTRO TO EMBEDDED SYSTEMS 2-1

More information

ECE791/792 Project Proposal

ECE791/792 Project Proposal ECE791/792 Project Proposal Project Title: Touch Screen, Gaming, and Audio Visual LED Table Team Members: Michael Perez, Michael McManus, Nicholas Nazarenko, Andreas Wigger Advisor: Dr. Richard Messner

More information

SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR. ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1

SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR. ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1 SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1 Subject: Microcontroller and Interfacing (151001) Class: B.E.Sem V (EC-I & II) Q-1 Explain RISC

More information

Arduino Uno Microcontroller Overview

Arduino 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 information

Arduino Smart Robot Car Kit User Guide

Arduino Smart Robot Car Kit User Guide User Guide V1.0 04.2017 UCTRONIC Table of Contents 1. Introduction...3 2. Assembly...4 2.1 Arduino Uno R3...4 2.2 HC-SR04 Ultrasonic Sensor Module with Bracket / Holder...5 2.3 L293D Motor Drive Expansion

More information

Microcontrollers for Ham Radio

Microcontrollers for Ham Radio Microcontrollers for Ham Radio MARTIN BUEHRING - KB4MG MAT T PESCH KK4NLK TOM PERRY KN4LSE What is a Microcontroller? A micro-controller is a small computer on a single integrated circuit containing a

More information

Arduino and Matlab for prototyping and manufacturing

Arduino 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 information

Physical Computing Self-Quiz

Physical Computing Self-Quiz Physical Computing Self-Quiz The following are questions you should be able to answer by the middle of the semeter in Introduction to Physical Computing. Give yourself 6.5 points for questions where you

More information

Arduino Platform Part I

Arduino 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 information

DEV-1 HamStack Development Board

DEV-1 HamStack Development Board Sierra Radio Systems DEV-1 HamStack Development Board Reference Manual Version 1.0 Contents Introduction Hardware Compiler overview Program structure Code examples Sample projects For more information,

More information

Lab 01 Arduino 程式設計實驗. Essential Arduino Programming and Digital Signal Process

Lab 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 information

Embedded Systems and Kinetic Art. CS5968: Erik Brunvand School of Computing. FA3800: Paul Stout Department of Art and Art History.

Embedded Systems and Kinetic Art. CS5968: Erik Brunvand School of Computing. FA3800: Paul Stout Department of Art and Art History. Embedded Systems and Kinetic Art CS5968: Erik Brunvand School of Computing FA3800: Paul Stout Department of Art and Art History Logistics Class meets Wednesdays from 3:05-6:05 We ll start meeting in MEB

More information

Logistics. Embedded Systems. Kinetic Art. This Class. Embedded Systems and Kinetic Art. Kinetic Art

Logistics. Embedded Systems. Kinetic Art. This Class. Embedded Systems and Kinetic Art. Kinetic Art Embedded Systems and Kinetic Art CS5968: Erik Brunvand School of Computing FA3800: Paul Stout Department of Art and Art History Logistics Class meets Wednesdays from 3:05-6:05 We ll start meeting in MEB

More information

Embedded ROBOTICS. A 15 days program on Embedded Systems & Robotics Development with Microcontroller Technology & Image Processing

Embedded ROBOTICS. A 15 days program on Embedded Systems & Robotics Development with Microcontroller Technology & Image Processing Embedded ROBOTICS A 15 days program on Embedded Systems & Robotics Development with Microcontroller Technology & Image Processing Workshop Designed & Conceptualized by Training Courseware We will provide

More information

Robotic Systems ECE 401RB Fall 2006

Robotic Systems ECE 401RB Fall 2006 The following notes are from: Robotic Systems ECE 401RB Fall 2006 Lecture 15: Processors Part 3 Chapter 14, G. McComb, and M. Predko, Robot Builder's Bonanza, Third Edition, Mc- Graw Hill, 2006. I. Peripherals

More information

AlphaBot2 robot building kit for Arduino

AlphaBot2 robot building kit for Arduino AlphaBot2 robot building kit for Arduino SKU 110060864 Description This AlphaBot2 robot kit is designed to use with an Arduino compatible board UNO PLUS. It features rich common robot functions including

More information

Arduino Prof. Dr. Magdy M. Abdelhameed

Arduino 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 information

AC : INFRARED COMMUNICATIONS FOR CONTROLLING A ROBOT

AC : INFRARED COMMUNICATIONS FOR CONTROLLING A ROBOT AC 2007-1527: INFRARED COMMUNICATIONS FOR CONTROLLING A ROBOT Ahad Nasab, Middle Tennessee State University SANTOSH KAPARTHI, Middle Tennessee State University American Society for Engineering Education,

More information

Supply voltage. Input current. Encoder supply. Memory SIMATIC S7-200, CPU 221 COMPACT UNIT, DC POWER SUPPLY 6 DI DC/4 DO DC, 4 KB CODE/2 KB DATA,

Supply voltage. Input current. Encoder supply. Memory SIMATIC S7-200, CPU 221 COMPACT UNIT, DC POWER SUPPLY 6 DI DC/4 DO DC, 4 KB CODE/2 KB DATA, Data sheet SIMATIC S7-200, CPU 221 COMPACT UNIT, DC POWER SUPPLY 6 DI DC/4 DO DC, 4 KB CODE/2 KB DATA, Supply voltage Rated value (DC) 24 V DC Load voltage L+ Rated value (DC) permissible range, lower

More information

1.0. Presents. techathon 3.0

1.0. Presents. techathon 3.0 1.0 Presents techathon 3.0 Course Content - techathon techathon 3.0 is a Robotics and Embedded systems Workshop designed by team Robo-Minions. It is a 2 days workshop with each day divided into two sessions

More information

Index. Jeff Cicolani 2018 J. Cicolani, Beginning Robotics with Raspberry Pi and Arduino,

Index. Jeff Cicolani 2018 J. Cicolani, Beginning Robotics with Raspberry Pi and Arduino, A Accessor methods, 92 Adafruit, 9 Adafruit DC & Stepper Motor HAT assembling board adjustment, 199 circuit board, 199 kit, 197 pins, 197 preparation, 197 Raspberry Pi, 198, 204 removal, 201 rotation,

More information

CPU 224. The compact high-performance CPU With 24 inputs/outputs on board Expandable with up to 7 expansion modules Design

CPU 224. The compact high-performance CPU With 24 inputs/outputs on board Expandable with up to 7 expansion modules Design CPU 224 The compact high-performance CPU With 24 inputs/outputs on board Expandable with up to 7 expansion modules Design The CPU 224 is equipped with the following: Integral 24 V encoder/load current

More information

Advanced Embedded Systems

Advanced Embedded Systems Advanced Embedded Systems Practical & Professional Training on Advanced Embedded System Course Objectives : 1. To provide professional and industrial standard training which will help the students to get

More information

Overview of Microcontroller and Embedded Systems

Overview of Microcontroller and Embedded Systems UNIT-III Overview of Microcontroller and Embedded Systems Embedded Hardware and Various Building Blocks: The basic hardware components of an embedded system shown in a block diagram in below figure. These

More information

keyestudio Keyestudio MEGA 2560 R3 Board

keyestudio 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 information

Embedded Systems. Software Development & Education Center. (Design & Development with Various µc)

Embedded Systems. Software Development & Education Center. (Design & Development with Various µc) Software Development & Education Center Embedded Systems (Design & Development with Various µc) Module 1: Embedded C Programming INTRODUCTION TO EMBEDDED SYSTEM History & need of Embedded System Basic

More information

ARM Microcontroller Interfacing - Warwick A. Smith ISBN Elektor. Table of Contents

ARM Microcontroller Interfacing - Warwick A. Smith ISBN Elektor. Table of Contents Table of Contents Introduction...6 Target Audience...6 Prerequisites...7 Introduction to the ARM Microcontrollers used in this Book...7 AT91SAM7S256 basic features:...7 Hardware Requirements...9 Summary

More information

CS-3410 Systems Programming Spring 2013

CS-3410 Systems Programming Spring 2013 CS-3410 Systems Programming Spring 2013 Course Description http://atomicrhubarb.com/systems This course introduces students to many concepts underlying all computer systems and ties together the basic

More information

Introduction to Arduino. Wilson Wingston Sharon

Introduction 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 information

Data Sheet T 6493 EN. TROVIS 6400 Automation System TROVIS 6493 Compact Controller. For panel mounting (front frame 48 x 96 mm/1.89 x 3.

Data Sheet T 6493 EN. TROVIS 6400 Automation System TROVIS 6493 Compact Controller. For panel mounting (front frame 48 x 96 mm/1.89 x 3. Data Sheet T 6493 EN TROVIS 6400 Automation System TROVIS 6493 Compact Controller For panel mounting (front frame 48 x 96 mm/1.89 x 3.78 inch) Application Digital controller to automate industrial and

More information

Introduction to Microcontrollers

Introduction to Microcontrollers Introduction to Microcontrollers June 2017 Scott A. Theis W2LW Rev 5 ( 0 8 / 0 2 / 2 0 1 7 ) What s it all about How to get started What are some of the common controller options General introduction to

More information

Wireless Accident Detection and Indicator System

Wireless Accident Detection and Indicator System Wireless Accident Detection and Indicator System March 15 2012 Nelson Magdaleno CmpE Adedamola Aluko EE Joseph Kennedy EE Austin Studebaker EE Ese Urhuogo EE Product Summary Accident Detection Additional

More information

Serial Communication

Serial Communication Serial Communication Asynchronous communication Synchronous communication Device A TX RX RX TX Device B Device A clock data A->B data B->A Device B asynchronous no clock Data represented by setting HIGH/LOW

More information

Project 17 Shift Register 8-Bit Binary Counter

Project 17 Shift Register 8-Bit Binary Counter Project 17 Shift Register 8-Bit Binary Counter In this project, you re going to use additional ICs (Integrated Circuits) in the form of shift registers in order to drive LEDs to count in binary (I will

More information

University Program Advance Material

University Program Advance Material University Program Advance Material Advance Material Modules Introduction ti to C8051F360 Analog Performance Measurement (ADC and DAC) Detailed overview of system variances, parameters (offset, gain, linearity)

More information

University of Portland EE 271 Electrical Circuits Laboratory. Experiment: Arduino

University 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

Project Final Report Internet Ready Refrigerator Inventory Control System

Project Final Report Internet Ready Refrigerator Inventory Control System Project Final Report April 25, 2006 Dustin Graves, dgraves@gwu.edu Project Abstract Appliance vendors have started producing internet enabled refrigerators which allow users to keep track of refrigerator

More information

Lab 3 XBees and LCDs and Accelerometers, Oh My! Part 1: Wireless Communication Using XBee Modules and the Arduino

Lab 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 information

Lab-3: LCDs Serial Communication Analog Inputs Temperature Measurement System

Lab-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 information

Fredrick M. Cady. Assembly and С Programming forthefreescalehcs12 Microcontroller. шт.

Fredrick M. Cady. Assembly and С Programming forthefreescalehcs12 Microcontroller. шт. SECOND шт. Assembly and С Programming forthefreescalehcs12 Microcontroller Fredrick M. Cady Department of Electrical and Computer Engineering Montana State University New York Oxford Oxford University

More information

FIFTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLOGY-MARCH 2014 EMBEDDED SYSTEMS (Common for CT,CM) [Time: 3 hours] (Maximum marks : 100)

FIFTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLOGY-MARCH 2014 EMBEDDED SYSTEMS (Common for CT,CM) [Time: 3 hours] (Maximum marks : 100) (Revision-10) FIFTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLOGY-MARCH 2014 EMBEDDED SYSTEMS (Common for CT,CM) [Time: 3 hours] (Maximum marks : 100) PART-A (Maximum marks : 10) I. Answer all

More information

EXPERIMENT 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 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 information

Robotics Training Module ABLab Solutions

Robotics Training Module ABLab Solutions Robotics Training Module ABLab Solutions www.ablab.in Table of Contents Course Outline... 4 Introduction to Robotics... 4 Overview of Basic Electronic... 4 Overview of Digital Electronic... 4 Power Supply...

More information

ADC to I 2 C. Data Sheet. 10 Channel Analog to Digital Converter. with output via I 2 C

ADC to I 2 C. Data Sheet. 10 Channel Analog to Digital Converter. with output via I 2 C Data Sheet 10 Channel Analog to Digital Converter with output via I 2 C Introduction Many microcontroller projects involve the use of sensors like Accelerometers, Gyroscopes, Temperature, Compass, Barometric,

More information

Blinking an LED 1 PARTS: Circuit 2 LED. Wire. 330Ω Resistor

Blinking an LED 1 PARTS: Circuit 2 LED. Wire. 330Ω Resistor Circuit PIN 3 RedBoard Blinking an LED LED (Light-Emitting Diode) Resistor (33 ohm) (Orange-Orange-Brown) LEDs (light-emitting diodes) are small, powerful lights that are used in many different applications.

More information

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

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 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 information

The DTMF generator comprises 3 main components.

The DTMF generator comprises 3 main components. Make a DTMF generator with an Arduino board This article is for absolute beginners, and describes the design and construction of a DTMF generator. DTMF generators are often used to signal with equipment

More information

The industrial technology is rapidly moving towards ARM based solutions. Keeping this in mind, we are providing a Embedded ARM Training Suite.

The industrial technology is rapidly moving towards ARM based solutions. Keeping this in mind, we are providing a Embedded ARM Training Suite. EMBEDDED ARM TRAINING SUITE ARM SUITE INCLUDES ARM 7 TRAINER KIT COMPILER AND DEBUGGER THROUGH JTAG INTERFACE PROJECT DEVELOPMENT SOLUTION FOR ARM 7 e-linux LAB FOR ARM 9 TRAINING PROGRAM INTRODUCTION

More information

Arduino & mbed Workshop + Hackathon

Arduino & mbed Workshop + Hackathon Arduino & mbed Workshop + Hackathon Rob Faludi! Arduino Basics Pedro Perez! Intro to mbed Goals Explore two paths to fast programmability with our radio modules in mind Learn their strengths and weaknesses

More information

Introduction To Arduino

Introduction To Arduino Introduction To Arduino What is Arduino? Hardware Boards / microcontrollers Shields Software Arduino IDE Simplified C Community Tutorials Forums Sample projects Arduino Uno Power: 5v (7-12v input) Digital

More information

Station Automation --W3SZ

Station Automation --W3SZ Station Automation --W3SZ Arduino Ethernet Device Control Example Use Arduino to create web page, provide on/off control for 12 devices via the Ethernet Could use instead for band switching transverters

More information

ARDUINO LEONARDO ETH Code: A000022

ARDUINO LEONARDO ETH Code: A000022 ARDUINO LEONARDO ETH Code: A000022 All the fun of a Leonardo, plus an Ethernet port to extend your project to the IoT world. You can control sensors and actuators via the internet as a client or server.

More information

Diploma in Embedded Systems

Diploma in Embedded Systems Diploma in Embedded Systems Duration: 5 Months[5 days a week,3 hours a day, Total 300 hours] Module 1: 8051 Microcontroller in Assemble Language Characteristics of Embedded System Overview of 8051 Family

More information

Me Stepper Driver. Overview

Me Stepper Driver. Overview Me Stepper Driver Overview The Me Stepper Motor Driver module is designed to precisely drive the bipolar stepper motor. When pulse signals are input into the stepper motor, it rotates step by step. For

More information

Variable Power Supply Digital Control Circuit Diagram Using Lm317

Variable Power Supply Digital Control Circuit Diagram Using Lm317 Variable Power Supply Digital Control Circuit Diagram Using Lm317 DIGITAL POWER SUPPLY USING LM317 A Major Project Report Submitted partial fulfillment of the requirement for the award of the Degree of

More information

Personal Computer-less (PC-less) Microcontroller Training Kit

Personal Computer-less (PC-less) Microcontroller Training Kit IOP Conference Series: Materials Science and Engineering PAPER OPEN ACCESS Personal Computer-less (PC-less) Microcontroller Training Kit To cite this article: Y Somantri et al 2018 IOP Conf. Ser.: Mater.

More information

Alessandra de Vitis. Arduino

Alessandra de Vitis. Arduino Alessandra de Vitis Arduino Arduino types Alessandra de Vitis 2 Interfacing Interfacing represents the link between devices that operate with different physical quantities. Interface board or simply or

More information

Lesson 6 Intel Galileo and Edison Prototype Development Platforms. Chapter-8 L06: "Internet of Things ", Raj Kamal, Publs.: McGraw-Hill Education

Lesson 6 Intel Galileo and Edison Prototype Development Platforms. Chapter-8 L06: Internet of Things , Raj Kamal, Publs.: McGraw-Hill Education Lesson 6 Intel Galileo and Edison Prototype Development Platforms 1 Intel Galileo Gen 2 Boards Based on the Intel Pentium architecture Includes features of single threaded, single core and 400 MHz constant

More information

Supply voltage. Input current. Encoder supply. Memory

Supply voltage. Input current. Encoder supply. Memory Data sheet SIMATIC S7-200, CPU 224XP COMPACT UNIT, DC POWER SUPPLY 14 DI DC/10 DO DC, 2 AI, 1 AO 12/16 KB CODE/10 KB DATA, 2 PPI/FREEPORT PORTS Supply voltage Rated value (DC) 24 V DC Load voltage L+ Rated

More information

Lesson 5 Arduino Prototype Development Platforms. Chapter-8 L05: "Internet of Things ", Raj Kamal, Publs.: McGraw-Hill Education

Lesson 5 Arduino Prototype Development Platforms. Chapter-8 L05: Internet of Things , Raj Kamal, Publs.: McGraw-Hill Education Lesson 5 Arduino Prototype Development Platforms 1 Arduino Boards, Modules And Shields Popular AVR MCU based products Each board has clear markings on the connection pins, sockets and in-circuit connections

More information

INTRODUCTION HARDWARE

INTRODUCTION HARDWARE Project Kit Table of Contents INTRODUCTION... 3 HARDWARE... 3 Hardware built-in micro:bit:... 3 Hardware included in this kit:... 4 CODE... 5 Pseudo Code:... 5 Coding Tools:... 5 Running Programs:... 8

More information

ECE471: Embedded Systems Final Project. Due: Friday, 14 December 2018 (Last day of Classes)

ECE471: Embedded Systems Final Project. Due: Friday, 14 December 2018 (Last day of Classes) ECE471: Embedded Systems Final Project Due: Friday, 14 December 2018 (Last day of Classes) Overview: Design an embedded system that does something interesting. This is very open-ended, but some guidelines

More information

EasyPIC5 Development System

EasyPIC5 Development System EasyPIC5 Development System Part No.: MPMICRO-PIC-Devel- EasyPIC5 Overview EasyPIC5 is a development system that supports over 120 8-, 14-, 18-, 20-, 28- and 40-pin PIC MCUs. EasyPIC5 allows PIC microcontrollers

More information

Developement of Multi Interface Board for Educational Trainer Kit

Developement of Multi Interface Board for Educational Trainer Kit Journal of Engineering Technology Vol. 2(1): 1-5, 2012 ISSN 2231-8798 2012UniKLBMI Developement of Multi Interface Board for Educational Trainer Kit M.R. Abdullah, Z. Zaharudin, Z. Mahmoodin, Z. Zainuddin

More information

Answers to Chapter 2 Review Questions. 2. To convert controller signals into external signals that are used to control the machine or process

Answers to Chapter 2 Review Questions. 2. To convert controller signals into external signals that are used to control the machine or process Answers to Chapter 2 Review Questions 1. To accept signals from the machine or process devices and to convert them into signals that can be used by the controller 2. To convert controller signals into

More information

MECHATRONICS. William Bolton. Sixth Edition ELECTRONIC CONTROL SYSTEMS ENGINEERING IN MECHANICAL AND ELECTRICAL PEARSON

MECHATRONICS. William Bolton. Sixth Edition ELECTRONIC CONTROL SYSTEMS ENGINEERING IN MECHANICAL AND ELECTRICAL PEARSON MECHATRONICS ELECTRONIC CONTROL SYSTEMS IN MECHANICAL AND ELECTRICAL ENGINEERING Sixth Edition William Bolton PEARSON Harlow, England London New York Boston San Francisco Toronto Sydney Auckland Singapore

More information

Modern Robotics Inc. Sensor Documentation

Modern Robotics Inc. Sensor Documentation Sensor Documentation Version 1.0.1 September 9, 2016 Contents 1. Document Control... 3 2. Introduction... 4 3. Three-Wire Analog & Digital Sensors... 5 3.1. Program Control Button (45-2002)... 6 3.2. Optical

More information

App Inventor 2 Create Your Own Android Apps

App Inventor 2 Create Your Own Android Apps App Inventor 2 Create Your Own Android Apps David Wolber, HalAbelson, Ellen Spertus, and Liz Looney Beijing Cambridge Farnham Koln Sebastopol Tokyo O'REILLY Table of Contents Foreword xi Preface xiii Parti.

More information

Prototyping & Engineering Electronics Kits Basic Kit Guide

Prototyping & Engineering Electronics Kits Basic Kit Guide Prototyping & Engineering Electronics Kits Basic Kit Guide odysseyboard.com Please refer to www.odysseyboard.com for a PDF updated version of this guide. Guide version 1.0, February, 2018. Copyright Odyssey

More information

MiCOKit-3166 Development Kit Hardware Manual

MiCOKit-3166 Development Kit Hardware Manual Hardware Engineering Department Working Group Track Number: Jing Minhua MXCHIP Co., Ltd Version: 1.1 July 2017 Category: Reference Manual Open MiCOKit-3166 Development Kit Hardware Manual Abstract MiCOKit

More information

STEPD StepDuino Quickstart Guide

STEPD 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 information

ROBOTLINKING THE POWER SUPPLY LEARNING KIT TUTORIAL

ROBOTLINKING THE POWER SUPPLY LEARNING KIT TUTORIAL ROBOTLINKING THE POWER SUPPLY LEARNING KIT TUTORIAL 1 Preface About RobotLinking RobotLinking is a technology company focused on 3D Printer, Raspberry Pi and Arduino open source community development.

More information

WIRELESS VEHICLE WITH ANIMATRONIC ROBOTIC ARM

WIRELESS VEHICLE WITH ANIMATRONIC ROBOTIC ARM WIRELESS VEHICLE WITH ANIMATRONIC ROBOTIC ARM PROJECT REFERENCE NO. : 37S0918 COLLEGE : P A COLLEGE OF ENGINEERING, MANGALORE BRANCH : ELECTRONICS & COMMUNICATION GUIDE : MOHAMMAD RAFEEQ STUDENTS : CHARANENDRA

More information