Basic Circuits – Lab 5 Wireless Networking Xmedia Spring 2011.

Slides:



Advertisements
Similar presentations
Wireless Cue Light Project
Advertisements

ARDUINO CLUB What we’re really doing. BASICS The setup() and loop() functions.
ARDUINO FRAMEWORK.
Using the Arduino to Make an LED Flash Work in teams of two! living with the lab digital I/O pins (I/O = input / output) USB cable plug power pins.
BLUESMIRF SILVER BY MICHAEL SANCHEZ AND HECTOR REYNA.
1 Arduino Board: Arduino UNO Arduino Programing Environment: Arduino 0022
Basic Circuits – Lab 2 Arduino and Sensors Xmedia Spring 2011.
Parallax 4x20 LCD (part number 27979) with Arduino Duemilanove
Arduino Part 2 Topics: Serial Communication Programming Constructs: functions, loops and conditionals Digital Input.
Basic Circuits – Lab 2 Arduino and Sensors
Objectives: Lead Switching Circuitry/Control Analog to Digital Converter Write to Computer.
DPNM Lab., POSTECH 1/25 CS490K - Internet of Things (IoT) Jonghwan Hyun DPNM Lab. Department of Computer Science and Engineering, POSTECH
Tele-presence – Connecting Two Processing Platforms via Internet Controlling the Screen based on Distant User Input ServerClient 1.
Intro to the Arduino Topics: The Arduino Digital IO
Ballooning Bundle. What is a Microcontroller? Small computer with a processor core, memory and programmable input/output Continuously repeats software.
Socket Lab Info. Computer Network. Requirement Use TCP socket to implement a pair of programs, containing a server and a client. The server program shall.
Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications.
INTERFACING WEB SERVER WITH A ROBOT
Sparkfun Electronics ATtiny85 Arduino Quick Reference Sheet
Code The Arduino Environment.
Robootika lahenduste esitlus Raul Liinev Martin Ligema Siim Suu Martin Tõnne.
Serial Communication. mouseX from computer to arduino processing sends a single byte of data arduino reads each byte arduino uses value to set light brightness.
Programming, Serial and Virtual Prototyping. Code if ( You like semicolons ) { Stay here for intro to Arduino code } else { Join the MODKit group for.
ARDUINO 1. Basics  Comments  /* * Blink * * The basic Arduino example. Turns on an LED on for one second, * then off for one second, and so on... We.
Basic Circuits – Lab 4 Serial and OSC (maybe some theory too) Xmedia Spring 2011.
Photoresistor resistance changes dramatically with light level living with the lab Using Photoresistors with an Arduino © 2011 LWTL faculty team.
Serial Communication RS-232. In order to make two devices communicate, whether they are desktop computers, microcontrollers, or any other form of integrated.
Microcontroller basics Embedded systems for mortals.
Microcontroller basics Embedded systems for mortals.
INTERNET OF EVERYTHING SDU 2016 Week 12. Remotely Controlling Devices  interact with almost any device that uses some form of remote control  TVs, audio.
Autumn, 2012C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Arduino Development Environment Chin-Shiuh Shieh ( 謝欽旭 ) Department.
Arduino + Bluetooth TYWu. Connection Arduino + Bluetooth Module.
ICTWays workshop “Creativity and imagination in the classroom: Arduino and its application samples” LLP PT-COMENIUS-CNW
Arduino Uno Zigbee Arduino Uno Zigbee Arduino Uno Zigbee Coordonator Router Arhitectura Cerinta de comunicare ambele directii – odata la 5 secunde.
Microcontroller basics
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
Infrared Proximity Sensors & Liquid Crystal Display Instructor Dr Matthew Khin Yi Kyaw.
Wireless control of an LED. the XBee transceiver transmitter: sends radio waves receiver: receives radio waves transceiver: sends AND receives.
Istituto Tecnico Industriale A.Monaco EURLAB European Robotic LABoratory HOW TO Transmit and RECEIVE Datas.
ME 120: Photoresistors and Arduino Programming Arduino Programming Case Study: Photoresistor Measurements ME 120 Mechanical and Materials Engineering Portland.
Using a SparkFun™ serial LCD with an Arduino
Lab 7 Basic 1: Game of Memory
Sparkfun Electronics ATtiny85 Arduino Quick Reference Sheet
Assist. Prof. Rassim Suliyev - SDU 2017
Manual for Arduino Kit v1.0
Wireless Cue Light Project
Raspberry Pi <--> Arduino
Microcontroller basics
UTA010 : Engineering Design – II
Tele-presence – Connecting Two Processing Platforms via Internet
Lab 1: Arduino Basics Topics: Arduino Fundamentals, First Circuit
Arduino Part 1 Topics: Microcontrollers Programming Basics
INC 161 , CPE 100 Computer Programming
3.2 Serial Communication Part 2
3.1 Serial Communication Part 1
Roller Coaster Design Project
Programming, Serial and Virtual Prototyping
Intro to the Arduino Topics: The Arduino Digital IO
1 Code
Putting the I in IoT.
Topics: Programming Constructs: loops & conditionals Digital Input
XBEE CONTROLLED DC MOTORS
Assist. Prof. Rassim Suliyev - SDU 2018
To connect to the Internet, you must record the computers’ MAC Address. Follow these instructions. Click on Start Then Run.
CTY SAR FCPS Shawn Lupoli, Elliot Tan
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Arduino 7 Segment Display Lab
Lab #1: Getting Started.
Arduino程式範例.
CTY SAR FCPS Alexander Velikanov
Presentation transcript:

Basic Circuits – Lab 5 Wireless Networking Xmedia Spring 2011

Agenda Xbee –Setup Arduino –Soft Serial Arduino and Processing –Protocol –OSC Messages

Xbee – Setup Command Mode and AT Commands Serial Terminal – Coolterm (mac, windows)macwindows +++Enter Command Mode ATIDPersonal Area Network ID – shared by all xbees on the network ATDLDestination Address – what Xbee this one sends data to ATMYSource address – what DL refers to ATWRWrite values to memory ATCNExit Command Mode

Arduino – Soft Serial #include //SoftwareSerial mySerial(rxPin, txPin); SoftwareSerial mySerial(2, 3); void setup() { Serial.begin(9600); Serial.println("Goodnight moon!"); // set the data rate for the SoftwareSerial port mySerial.begin(9600); mySerial.println("Hello, world?"); } void loop() { if (mySerial.available()>0) { int inData = mySerial.read(); Serial.println(“Data Received” + inData); mySerial.println(“Soft Serial”); } Connect rx (receive) from xbee to Arduino Pin 3 (transmit) Connect tx (transmit) from xbee to Arduino Pin 2 (receive) New soft serial library -

Arduino and Processing – Protocol 1.Processing broadcasts a string to all puppets. 2.Puppets check the string to see if it is their address. 3.If the string refers to the puppet, the puppet sends its data to the computer. 4.Processing constructs an OSC message from the data from the puppet. 5.Processing sends the OSC message to Unity. 6.Processing requests data from the next puppet.

Protocol – Sample Arduino Code void loop() { if (mySerial.available()>0) { while (mySerial.available() > 0) { addressChar = char(mySerial.read()); address += addressChar; } Serial.println(address); if (address.equals( "One" )) { mySerial.print("Xbee1"); } address = ""; delay(100); }