SERIAL COMMUNICATION. _creates a data stream by sending one bit at a me _occurs sequen ally H...E...L...L...O

Size: px
Start display at page:

Download "SERIAL COMMUNICATION. _creates a data stream by sending one bit at a me _occurs sequen ally H...E...L...L...O"

Transcription

1 SERIAL COMMUNICATION Bits, Bytes, Data Rates and Protocols ASCI interpreta on Using terminal to view serial Data Serial Out from Arduino Serial In to Processing

2 SERIAL COMMUNICATION _creates a data stream by sending one bit at a me _occurs sequen ally H...E...L...L...O The first to be recieved is H then E and so on.

3 SERIAL COMMUNICATION_ARDUINO RX Receiving Data TX Transmi ng Data

4 Time to Talk with Arduino board! _Program to let Arduino say Hello World! _Baud Rate is the rate at which data is sent and recieve, must be synced between the two devices that are communica ng _Bit per second (baud rate) _Note that this communica on baud rate is independent of the upload process, which is fixed at bps.

5 Sending Serial Data Serial.println( something ); print and println is wri ng data to the serial port. println writes a \n(newline) at the end of each statement equivalant to a serial.write(); in other programming langauages

6 Interfacing with Processing

7

8 Arduino Board TX Processing Read

9 SERIAL PRINT_DATA OUT TO PROCESSING ARDUINO CODE: int val = 0; void setup() Serial.begin(9600); //initialize serial port at 9600 baud rat void loop() val = analogread(0); //read analog pin 0 and assign to val Serial.print(val); //send val to the serial port via Serial.print() Serial.println(); //send a new line (ascii) to serial port // wait 10 milliseconds before the next loop // for the analog-to-digital converter to settle // after the last reading: delay(10); PROCESSING CODE: EXAMPLES > LIBRARY> SERIAL> SIMPLE READ import processing.serial.*; Serial myport; // Create object from Serial class int val; // Data received from the serial port void setup() size(200, 200); // I know that the first port in the serial list on my mac // is always my FTDI adaptor, so I open Serial.list()[0]. // On Windows machines, this generally opens COM1. // Open whatever port is the one you re using. String portname = Serial.list()[0]; myport = new Serial(this, portname, 9600); void draw() if ( myport.available() > 0) // If data is available, val = myport.read(); // read it and store it in val background(255); // Set background to white val = map(val, 0, 1023, 0, 255); fill(val); //fill rectangle in relation to val from arduino rect(50, 50, 100, 100); //draw rectangle at 50,50 at 100x100 pixels

10 ARDUINO CODE: void setup() Serial.begin(9600); void loop() Serial.print(analogRead(0)); Serial.println(); SERIAL EVENT_DATA OUT TO PROCESSING PROCESSING CODE: import processing.serial.*; Serial myport; // Create object from Serial class String instring; // Data received from the serial port byte bytes; float val; int lf = 10; // ascii code for linefeed void setup() size(200, 200); String portname = Serial.list()[0]; myport = new Serial(this, portname, 9600); myport.clear(); myport.bufferuntil(lf); //buffer until linefeed (println) void draw() background(255); // Set background to white val = map(val, 0, 1023, 0, 255); fill(int(val)); //typecast float to int rect(50, 50, 100, 100); /*built in function within processing called when data is available which can be set with buffer() to only trigger after a certain number of data elements are read and can be set with bufferuntil() to only trigger after a specific character is read to be used with one of the Read() functions*/ void serialevent(serial p) instring = p.readstring(); print( received: +instring); val = float(instring); //typecast string type to float println( val);

11 SERIAL FLUSH Flushes the buffer of serial port, when sending or recieving any call to Serial method will return only data received a er all the most recent call to Serial.flush(): Serial.println( Hello! ); Serial.flush(); will pass Hello! \n to Serial buffer before doing anything else to the Serial buffer.

12 Firmata Library ARDUINO CODE: EXAMPLES > LIBRARY> FIRMATA>STANDARD FIRMATA PROCESSING CODE: import processing.serial.*; import cc.arduino.*; Arduino arduino; // Create Arduino object int val = 0; // Data received from the serial port int pin = 0; void setup() size(200, 200); //return list of arduino connected to computer println(arduino.list()); //initialize Arduino on com port as Arduino class object arduino = new Arduino(this, Arduino.list()[0], 57600); void draw() val = arduino.analogread(pin); background(255); // Set background to white val = map(val, 0, 1023, 0, 255); fill(val); rect(50, 50, 100, 100);

13 arduino print: 186 (int) serialevent_readstring() without myport.bufferun l(lf): received: (string) NaN(not a number) = null/linefeed received: (float) received: received: received: NaN received: with myport.bufferun l(lf): received: 186 (string) (float) received: received: void serialevent(serial p) myport.bufferuntil(lf); instring = p.readstring(); print( received: +instring); val = float(instring); println( val);

14 Arduino Board RX

15 int ad=8; //digital output int cd=7; //digital output int incom; //incoming bytes void setup() Serial.begin(9600); //baud rate pinmode(ad,output); pinmode(cd,output); void loop() if(serial.available()) //if there is incoming bytes incom=serial.read(); switch(incom) case a : //if a is pressed digitalwrite(ad,high); digitalwrite(cd,low); //ad on, cd off break; case r : //if r is pressed digitalwrite(ad,low); digitalwrite(cd,high); //ad off, cd on break; case b : //if b is pressed digitalwrite(ad,low); digitalwrite(cd,low); break; default: Serial.println( Please key in command ); break; SERIAL READ_DATA INTO ARDUINO

16 PureData(PD) Max/MSP max v2; #N vpatcher ; #P user uslider ; #P window setfont Sans Serif 9.; #P window linecount 1; #P message print; #P newex serial a 9600; #P window linecount 2; #P comment Slide the fader to dim the LED; #P comment Click here to get a list of serial ports; #P fasten ; #P fasten ; #P pop; FLASH LIBRARIES: h p:// ware

Arduino. AS220 Workshop. Part III Multimedia Applications Lutz Hamel

Arduino. AS220 Workshop. Part III Multimedia Applications Lutz Hamel AS220 Workshop Part III Multimedia Applications Lutz Hamel hamel@cs.uri.edu www.cs.uri.edu/~hamel/as220 Basic Building Blocks The basic building blocks for Arduino interactive object(s) are: Digital Input

More information

Connecting Arduino to Processing

Connecting Arduino to Processing Connecting Arduino to Processing Introduction to Processing So, you ve blinked some LEDs with Arduino, and maybe you ve even drawn some pretty pictures with Processing - what s next? At this point you

More information

Connecting Arduino to Processing a

Connecting Arduino to Processing a Connecting Arduino to Processing a learn.sparkfun.com tutorial Available online at: http://sfe.io/t69 Contents Introduction From Arduino......to Processing From Processing......to Arduino Shaking Hands

More information

Lecture 7. Processing Development Environment (or PDE)

Lecture 7. Processing Development Environment (or PDE) Lecture 7 Processing Development Environment (or PDE) Processing Class Overview What is Processing? Installation and Intro. Serial Comm. from Arduino to Processing Drawing a dot & controlling position

More information

4Serial SIK BINDER //77

4Serial SIK BINDER //77 4Serial SIK BINDER //77 SIK BINDER //78 Serial Communication Serial is used to communicate between your computer and the RedBoard as well as between RedBoard boards and other devices. Serial uses a serial

More information

Real Time Data Plotting

Real Time Data Plotting Real Time Data Plotting Introduction This lesson will show how to write a program plot data on a X-Y graph. On the Arduino, write a program to sample a sensor and print the voltage to the Serial interface.

More information

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

FUNCTIONS USED IN CODING pinmode()

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

Introduction to Processing

Introduction to Processing Processing Introduction to Processing Processing is a programming environment that makes writing programs easier. It contains libraries and functions that make interacting with the program simple. The

More information

Sten-SLATE ESP Kit. Description and Programming

Sten-SLATE ESP Kit. Description and Programming Sten-SLATE ESP Kit Description and Programming Stensat Group LLC, Copyright 2016 Overview In this section, you will be introduced to the processor board electronics and the arduino software. At the end

More information

DESERT CODE CAMP

DESERT CODE CAMP Implementing Multiple Serial Ports On An Arduino DESERT CODE CAMP 2011.2 Presented by Don Doerres Embedded Pro Guy don@azlaborlaw.com THE ARDUINO Arduino is Italian for Strong Friend The basic Arduino

More information

Merging Physical and Virtual:

Merging Physical and Virtual: Merging Physical and Virtual: A Workshop about connecting Unity with Arduino v1.0 R. Yagiz Mungan yagiz@purdue.edu Purdue University - AD41700 Variable Topics in ETB: Computer Games Fall 2013 September

More information

CTEC 1802 Embedded Programming Labs

CTEC 1802 Embedded Programming Labs CTEC 1802 Embedded Programming Labs This document is intended to get you started using the Arduino and our I/O board in the laboratory - and at home! Many of the lab sessions this year will involve 'embedded

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

Physical Programming with Arduino

Physical Programming with Arduino CTA - 2014 Physical Programming with Arduino Some sample projects Arduino Uno - Arduino Leonardo look-alike The Board Arduino Uno and its cheap cousin from Borderless Electronics Mini - Breadboard typical

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

PROJECT FINAL: WEARABLE

PROJECT FINAL: WEARABLE PROJECT FINAL: WEARABLE David Snow Wearable Computing Jackson McConnell Dec/09/2014 DEVICE: iris Project iris is a device that gamifies the experience of your daily drive. This is a device for all those

More information

LEARN HOW TO INTERFACE WITH AND ARDUINO

LEARN HOW TO INTERFACE WITH AND ARDUINO GET STARTED TO WORK WITH XBEE LEARN HOW TO INTERFACE WITH MINDSTORMS AND ARDUINO 3322 Rt.22W, Suite 402, Branchburg, NJ 08876 l www.stormingrobots.com l 908-595-1010 l admin@stormingrobots.com 1 P a g

More information

import processing.serial.*; //import the Serial library import controlp5.*; Serial myport; //the Serial port object

import processing.serial.*; //import the Serial library import controlp5.*; Serial myport; //the Serial port object import processing.serial.*; //import the Serial library import controlp5.*; Serial myport; //the Serial port object ControlP5 cp5; //the Control object CheckBox checkbox; Chart mychart; //Initialize Variables

More information

Note. The above image and many others are courtesy of - this is a wonderful resource for designing circuits.

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

Sensors Provide Feedback to Real World Applications. Jared Gordon. Professor: Pushkin Kachroo. Transpotronics

Sensors Provide Feedback to Real World Applications. Jared Gordon. Professor: Pushkin Kachroo. Transpotronics Sensors Provide Feedback to Real World Applications By Jared Gordon Professor: Pushkin Kachroo Transpotronics I. Abstract The amount of traffic passing a specified point can be measured using pressure

More information

ARDUINO. By Kiran Tiwari BCT 2072 CoTS.

ARDUINO. By Kiran Tiwari BCT 2072 CoTS. ARDUINO By Kiran Tiwari BCT 2072 CoTS www.kirantiwari.com.np SO What is an Arduino? WELL!! Arduino is an open-source prototyping platform based on easy-to-use hardware and software. Why Arduino? Simplifies

More information

Introduction to Arduino

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

Chapter 2 The Basic Functions

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

The Big Idea: Background: About Serial

The Big Idea: Background: About Serial Lesson 6 Lesson 6: Serial Serial Input Input The Big Idea: Information coming into an Arduino sketch is called input. This lesson focuses on text in the form of characters that come from the user via the

More information

EGG 101L INTRODUCTION TO ENGINEERING EXPERIENCE

EGG 101L INTRODUCTION TO ENGINEERING EXPERIENCE EGG 101L INTRODUCTION TO ENGINEERING EXPERIENCE LABORATORY 11: DIGITAL COMPASS DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING UNIVERSITY OF NEVADA, LAS VEGAS OVERVIEW This is a breakout board for Honeywell's

More information

18-heater Arduino code

18-heater Arduino code 18-heater Arduino code Modified from original code by Charith Fernanado: http://www.inmojo.com charith@inmojo.com #include // Creation of variables volatile int idimmer=0; volatile boolean

More information

EGG 101L INTRODUCTION TO ENGINEERING EXPERIENCE

EGG 101L INTRODUCTION TO ENGINEERING EXPERIENCE EGG 101L INTRODUCTION TO ENGINEERING EXPERIENCE LABORATORY 10: DIGITAL COMPASS DEPARTMENT OF ELECTRICAL AND COMPUTER ENGINEERING UNIVERSITY OF NEVADA, LAS VEGAS OVERVIEW This is a breakout board for Honeywell's

More information

Sending Binary Data from Processing to Arduino

Sending Binary Data from Processing to Arduino Sending Binary Data from Processing to Arduino I have been working on sending data (cues) from Processing ("Mother") to Arduino ("Izzy's brain"). Here is what I have so far. 1. 2. 3. 4. 5. 6. It loads

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

Lab 4 - Asynchronous Serial Communications

Lab 4 - Asynchronous Serial Communications Lab 4 - Asynchronous Serial Communications Part 1 - Software Loopback In serial communications one of the important tools we have that allows us to verify the communications channel is working properly

More information

Design with Microprocessors

Design with Microprocessors Design with Microprocessors Year III Computer Science 1-st Semester Lecture 6: Serial data transfer Serial Interfaces on AVR Universal Synchronous and Asynchronous serial Receiver and Transmitter (USART)

More information

Processing the Danger Shield

Processing the Danger Shield // About Processing: What Processing is: Processing is a Java based programming environment that draws on PostScript and OpenGL for 2-D and 3-D graphics respectively. Processing is a wonderful entry level

More information

OpenBAS Arduino Query protocol

OpenBAS Arduino Query protocol OpenBAS Arduino Query protocol In version 2.70.0 this new protocol has been added on the following communication ports: USB COM1 COM2 In communication ports COM1 and COM2 it can be selected in the system

More information

Grove - Thumb Joystick

Grove - Thumb Joystick Grove - Thumb Joystick Introduction 3.3V 5.0V Analog Grove - Thumb Joystick is a Grove compatible module which is very similar to the analog joystick on PS2 (PlayStation 2) controllers. The X and Y axes

More information

Gamma sensor module GDK101

Gamma sensor module GDK101 Application Note: Interfacing with Arduino over I 2 C The Arduino makes an ideal platform for prototyping and data collection with the Gamma sensors. Electrical Connections Interfacing with the sensor

More information

Parts List. XBEE/Wifi Adapter board 4 standoffs ¼ inch screws Cable XBEE module or Wifi module

Parts List. XBEE/Wifi Adapter board 4 standoffs ¼ inch screws Cable XBEE module or Wifi module Rover Wifi Module 1 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 Sten-Bot kit against component

More information

Arduino Part 3. Introductory Medical Device Prototyping

Arduino Part 3. Introductory Medical Device Prototyping Introductory Medical Device Prototyping Arduino Part 3, http://saliterman.umn.edu/ Department of Biomedical Engineering, University of Minnesota More Arduino Functions More functions: Math functions Trigonometry

More information

StenBOT Robot Kit. Stensat Group LLC, Copyright 2018

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

OpenBAS Arduino Query protocol

OpenBAS Arduino Query protocol OpenBAS Arduino Query protocol In version 2.70.1 this new protocol has been added on the following communication ports: USB COM1 COM2 Ethernet (Via Telnet port 23) In communication ports COM1 and COM2

More information

Quantum Phase Isochromatic Pluckeasy

Quantum Phase Isochromatic Pluckeasy Quantum Phase Isochromatic Pluckeasy Laser Harp for short Paul Holcomb Timothy Tribby Hardware Overview IR Sensors Arduino With ATmega 1280 Motor With Rotating Mirror Laser Module Laser Harp Goals Display

More information

Robotics/Electronics Review for the Final Exam

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

EP486 Microcontroller Applications

EP486 Microcontroller Applications EP486 Microcontroller Applications Topic 2 Processing Department of Engineering Physics University of Gaziantep Sep 2013 Sayfa 1 Processing is a programming language, development environment, and online

More information

Grove - Thumb Joystick

Grove - Thumb Joystick Grove - Thumb Joystick Release date: 9/20/2015 Version: 1.0 Wiki: http://www.seeedstudio.com/wiki/grove_-_thumb_joystick Bazaar: http://www.seeedstudio.com/depot/grove-thumb-joystick-p-935.html 1 Document

More information

Lab 8. Communications between Arduino and Android via Bluetooth

Lab 8. Communications between Arduino and Android via Bluetooth Lab 8. Communications between Arduino and Android via Bluetooth Dr. X. Li xhli@citytech.cuny.edu Dept. of Computer Engineering Technology New York City College of Technology (Copyright Reserved) In this

More information

PROGRAMMING ARDUINO COURSE ON ADVANCED INTERACTION TECHNIQUES. Luís Carriço FCUL 2012/13

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

m-block By Wilmer Arellano

m-block By Wilmer Arellano m-block By Wilmer Arellano You are free: to Share to copy, distribute and transmit the work Under the following conditions: Attribution You must attribute the work in the manner specified by the author

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

This is the Arduino Uno: This is the Arduino motor shield: Digital pins (0-13) Ground Rail

This is the Arduino Uno: This is the Arduino motor shield: Digital pins (0-13) Ground Rail Reacting to Sensors In this tutorial we will be going over how to program the Arduino to react to sensors. By the end of this workshop you will have an understanding of how to use sensors with the Arduino

More information

m-block By Wilmer Arellano

m-block By Wilmer Arellano m-block By Wilmer Arellano You are free: to Share to copy, distribute and transmit the work Under the following conditions: Attribution You must attribute the work in the manner specified by the author

More information

EEG 101L INTRODUCTION TO ENGINEERING EXPERIENCE

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

Arduino Programming and Interfacing

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

Electronic Brick Starter Kit

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

A Hacker s Introduction to the Nokia N900

A Hacker s Introduction to the Nokia N900 A Hacker s Introduction to the Nokia N900 Introduction Welcome to the Hacker s Introduction to the Nokia N900. This guide is intended to help you begin connecting the N900 s builtin capabilities to information

More information

TANGIBLE MEDIA & PHYSICAL COMPUTING INTRODUCTION TO ARDUINO

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

RS485 Sensor Node V1.0 (SKU:DFR0233)

RS485 Sensor Node V1.0 (SKU:DFR0233) RS485 Sensor Node V1.0 (SKU:DFR0233) Contents 1 Introduction 2 Application 3 Specification 4 Pin Out 4.1 More details 5 Product Directive 6 Connecting Diagram 7 Sample Code Introduction This RS-485 Sensor

More information

Introduction to Arduino Programming 2017 Gordon Payne Newmarket High School Contents Page Introduction to Electronic Components 2 Arduino Activities 1. Build the Circuit-du-Jour 4 2. Control some LEDs

More information

/* This program now switches between Train at holt to train on its way with button press. */ //MD_MAX72xx_Message_Serial7_train

/* This program now switches between Train at holt to train on its way with button press. */ //MD_MAX72xx_Message_Serial7_train /* This program now switches between Train at holt to train on its way with button press. */ //MD_MAX72xx_Message_Serial7_train // Use the MD_MAX72XX library to scroll text on the display // // Demonstrates

More information

DS18B20+ Digital Temperature Sensor

DS18B20+ Digital Temperature Sensor Handson Technology Data Specs DS18B20+ Digital Temperature Sensor This is a pre-wired and waterproofed version of the DS18B20 sensor. Handy for when you need to measure something far away, or in wet conditions.

More information

Serial.begin ( ); Serial.println( ); analogread ( ); map ( );

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

Serial Graphic LCD Hookup

Serial Graphic LCD Hookup Page 1 of 13 Serial Graphic LCD Hookup Introduction Welcome to the hookup guide for the Serial Graphic LCD Backpack. In this tutorial, you will learn how to use the backpack to its full potential. We ll

More information

TABLE OF CONTENTS INTRODUCTION LESSONS PROJECTS

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

Lesson 4: Animation. Goals

Lesson 4: Animation. Goals Introduction: In this session you are going to use custom built tools in Arduino to help you turn images or animation into code that automatically uploads to your DIY Gamer. It is a fun and easy way to

More information

Parts List. XBEE/Wifi Adapter board 4 standoffs ¼ inch screws Cable XBEE module or Wifi module

Parts List. XBEE/Wifi Adapter board 4 standoffs ¼ inch screws Cable XBEE module or Wifi module Rover Wifi Module 1 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 Sten-Bot kit against component

More information

Design with Microprocessors

Design with Microprocessors Design with Microprocessors Year III Computer Science 1-st Semester Lecture 6: Serial data transfer Serial Interfaces on AVR Universal Synchronous and Asynchronous serial Receiver and Transmitter (USART)

More information

DFRobot BLE4.1 Module SKU: TEL0120

DFRobot BLE4.1 Module SKU: TEL0120 DFRobot BLE4.1 Module SKU: TEL0120 Introduction BLE4.1 Module is DFRobot newly developed Bluetooth 4.1 transmission module, adhering to the same usage of Bluno, and increasing the star network function,

More information

Energia MSP-430!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 1

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

Rotary Encoder Basics

Rotary Encoder Basics Rotary Encoder Basics A rotary encoder has a fixed number of positions per revolution. These positions are easily felt as small clicks you turn the encoder. The Keyes module that I have has thirty of these

More information

Earthshine Design Arduino Starters Kit Manual - A Complete Beginners Guide to the Arduino. Project 13. Serial Temperature Sensor

Earthshine Design Arduino Starters Kit Manual - A Complete Beginners Guide to the Arduino. Project 13. Serial Temperature Sensor Project 13 Serial Temperature Sensor 75 Project 13 - Serial Temperature Sensor Now we are going to make use of the Temperature Sensor in your kit, the LM35DT. You will need just one component. What you

More information

Fall Harris & Harris

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

EP486 Microcontroller Applications

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

Workshop Arduino English starters workshop 2

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

Make your own secret locking mechanism to keep unwanted guests out of your space!

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

Lab 1: Arduino Basics. Rodrigo Carbajales and Marco Zennaro ICTP Trieste-Italy

Lab 1: Arduino Basics. Rodrigo Carbajales and Marco Zennaro ICTP Trieste-Italy Lab 1: Arduino Basics Rodrigo Carbajales and Marco Zennaro ICTP Trieste-Italy Step Zero Clean up your desks! :) Goals of this Lab Learn how the programming takes place Excercises about: installing the

More information

Xbee Shield. Introduction

Xbee Shield. Introduction Xbee Shield Introduction A Xbee shield allows an Arduino board to communicate wirelessly using Bee compatible modules (like Zigbee or BlueTooth Bee). It is designed to be used with Xbee module from MaxStream.

More information

Schedule. Sanford Bernhardt, Sangster, Kumfer, Michalaka. 3:10-5:00 Workshop: Build a speedometer 5:15-7:30 Dinner and Symposium: Group 2

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

GOOD MORNING SUNSHINE

GOOD MORNING SUNSHINE Item 11: Good Morning Sunshine Monday, 15 October 2018 12:30 PM GOOD MORNING SUNSHINE EXPLORE WALT: definition and decomposition of complex problems in terms of functional and non-functional requirements

More information

T-Scratch Basics. Coding with IDE (Software)

T-Scratch Basics. Coding with IDE (Software) T-Scratch Basics Coding with IDE (Software) Learning Objective In this lesson you will learn: T-Scratch Bluetooth-Bluetooth Allow 2 T-Scratch modules to communicate with one another. Using T-Scratch s

More information

Arduino Programming Part 4: Flow Control

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

A rduino Programming Part 5: Functions Redux and Intro toa rrays

A rduino Programming Part 5: Functions Redux and Intro toa rrays A rduino Programming Part 5: Functions Redux and Intro toa rrays ME 121 M e c h a n i c a l a n d M a t e r i a l s E n g i n e e r i n g Portland State University Goals Review operation of the Salinity

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

FTDI SmartBasic Hookup Guide

FTDI SmartBasic Hookup Guide Page 1 of 5 FTDI SmartBasic Hookup Guide Introduction The FTDI SmartBasic is a variation on our classic FTDI Basic which allows you to connect a second device to the hardware serial port on an Arduino

More information

WALT: definition and decomposition of complex problems in terms of functional and non-functional requirements

WALT: definition and decomposition of complex problems in terms of functional and non-functional requirements Item 12: Burglar Alarmed Monday, 15 October 2018 12:31 PM BURGLAR ALARMED EXPLORE WALT: definition and decomposition of complex problems in terms of functional and non-functional requirements WILF - Defined

More information

Marvin Hookup Guide. Your IoT application with Marvin and MachineQ

Marvin Hookup Guide. Your IoT application with Marvin and MachineQ Marvin Hookup Guide Your IoT application with Marvin and MachineQ Overview 1. 2. 3. 4. Program Marvin using Arduino, please install via the link on the right>> Send data over LoRa Routing your data through

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

ARDUINO EXPERIMENTS ARDUINO EXPERIMENTS

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

ArdOS The Arduino Operating System Quick Start Guide and Examples

ArdOS The Arduino Operating System Quick Start Guide and Examples ArdOS The Arduino Operating System Quick Start Guide and Examples Contents 1. Introduction... 1 2. Obtaining ArdOS... 2 3. Installing ArdOS... 2 a. Arduino IDE Versions 1.0.4 and Prior... 2 b. Arduino

More information

Arduino For Amateur Radio

Arduino For Amateur Radio Arduino For Amateur Radio Introduction to Arduino Micro controller vs. a PI Arduino Models, Books and Add-Ons Amateur Radio Applications Arduino Uno/Pro Micro Introduction to Arduino Programming More on

More information

Arduino: Serial Monitor Diagrams & Code Brown County Library

Arduino: Serial Monitor Diagrams & Code Brown County Library Arduino: Serial Monitor Diagrams & Code All projects require the use of the serial monitor in your Arduino IDE program (or whatever you are using to transfer code to the Arduino). Project 01: Monitor how

More information

Station Automation --W3SZ

Station Automation --W3SZ Station Automation --W3SZ Now Back to Previously Scheduled Program USB-Serial IF/Transverter Bandswitch Arduino-VHFLog Example I started with Ed Finn WA3DRC s excellent code that was written to give TS2000

More information

CONSTRUCTION GUIDE Remote Big Wheel. Robobox. Level VIII

CONSTRUCTION GUIDE Remote Big Wheel. Robobox. Level VIII CONSTRUCTION GUIDE Remote Big Wheel Robobox Level VIII Remote Big Wheel In this box we will learn about an advanced use of motors and infrared emission & reception through a unique robot: the Big Wheel.

More information

Development Routines of TF LiDAR on Arduino

Development Routines of TF LiDAR on Arduino Development Routines of TF LiDAR on Arduino This routine is aimed to help our customers quickly master the LiDAR products of our company and to shorten the development cycle. As for Arduino board, UNO

More information

X Board V2 (SKU:DFR0162)

X Board V2 (SKU:DFR0162) X Board V2 (SKU:DFR0162) X-Board V2, DFR0162 Contents 1 Introduction 2 Specifications 3 Pinouts 4 Tutorial 4.1 Requirements 4.2 Wiring Diagram 4.3 Sample code Introduction This is Version 2.0 of the X-board.

More information

FireBeetle Board 328P with BLE4.1 SKU: DFR0492

FireBeetle Board 328P with BLE4.1 SKU: DFR0492 FireBeetle Board 328P with BLE4.1 SKU: DFR0492 Introduction DFRobot FireBeetle series are low power consumption controllers designed for Internet of Things (IoT) development. This Bluetooth controller

More information

URM04 V2.0 (SKU:SEN0002)

URM04 V2.0 (SKU:SEN0002) URM04 V2.0 (SKU:SEN0002) URM04 V2.0 Figure 1: URM04 Beam Width 60 degree Contents 1 Introduction 2 Specification 3 Dimension and Pin definition 4 Communication Protocols 4.1 Set Device Address 4.2 Trigger

More information

Laboratory 5 Communication Interfaces

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

RB-Dfr-12 DFRobot URM04 v2.0 Ultrasonic Sensor

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

Creation & Computation Final Project. Anne Stevens, Jessica Knox, Navaneethan Sivabalaviknarajah

Creation & Computation Final Project. Anne Stevens, Jessica Knox, Navaneethan Sivabalaviknarajah Creation & Computation Final Project Anne Stevens, Jessica Knox, Navaneethan Sivabalaviknarajah Instructed by Kate Hartman & Jim Ruxton OCAD University December 4 th, 2011 Initial Proposal Concept As they

More information

Arduino provides a standard form factor that breaks the functions of the micro-controller into a more accessible package.

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

Lesson 5: LDR Control

Lesson 5: LDR Control Lesson 5: LDR Control Introduction: Now you re familiar with the DIY Gamer and editing in an Arduino sketch. its time to write one from scratch. In this session you will write that talks to the Light Dependent

More information