Simple Serial MaxMSP Arduino

Similar documents
Lab 6 Introduction to Serial and Wireless Communication

Microcontroller Programming Beginning with Arduino. Charlie Mooney

Arduino Lesson 5. The Serial Monitor

Computer Architectures

Theory and Practice of Tangible User Interfaces. Thursday Week 2: Digital Input and Output. week. Digital Input and Output. RGB LEDs fade with PWM

Connecting Arduino to Processing a

Working with microcontroller-generated audio frequencies (adapted from the Machine Science tutorial)

Driver Installation and Hyperterminal Operation of iload Digital USB Sensors

Arduino Internet Connectivity: Maintenance Manual Julian Ryan Draft No. 7 April 24, 2015

A REST API for Arduino & the CC3000 WiFi Chip

1602 LCD adopts standard 14 pins(no backlight) or 16pins(with backlight) interface, Instruction of each pin interface is as follows:

TUTORIAL FOR INITIALIZING BLUETOOTH COMMUNICATION BETWEEN ANDROID AND ARDUINO

After: bmotorreflected[port2]= 1; //Flip port2 s direction

PART I: WELCOME TO THE WONDERFUL WORLD OF ACCESSORIES CHAPTER 1: INTRODUCTION TO ANDROID OPEN ACCESSORY 3

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

Special Lecture. Basic Stamp 2 Programming. (Presented on popular demand)

Arduino Shield Manual

Arduino-Based Dataloggers: Hardware and Software David R. Brooks Institute for Earth Science Research and Education V 1.2, June, , 2015

idvr-pro Viewer Software for Mac User Manual ver 0.1

IR Communication a learn.sparkfun.com tutorial

Kinect Interface to Play Computer Games with Movement

Introduction to Arduino

ANDROID BASED FARM AUTOMATION USING GR-SAKURA

Arduino Lesson 1. Blink

Application Note IMU Visualization Software

EARTH PEOPLE TECHNOLOGY SERIAL GRAPH TOOL FOR THE ARDUINO UNO USER MANUAL

WeatherLink for Emergency Response Teams Addendum

Arduino Wifi shield And reciever. 5V adapter. Connecting wifi module on shield: Make sure the wifi unit is connected the following way on the shield:

SYMETRIX SOLUTIONS: TECH TIP August 2015

SUDT AccessPort TM Advanced Terminal / Monitor / Debugger Version 1.37 User Manual

Software Version

C4DI Arduino tutorial 4 Things beginning with the letter i

Installation Steps Follow these steps to install the network camera on your local network (LAN):

Car Racing Game. Figure 1 The Car Racing Game

Unified Utility Manual Label Printer. Rev. 2.08

Wireless Communication With Arduino

LCD I 2 C/Serial RX Backpack. Data Sheet. LCD to I2C/Serial RX Backpack I2C or Serial RX communication with Standard 16 Pin LCD modules

The I2C Bus. NXP Semiconductors: UM10204 I2C-bus specification and user manual HAW - Arduino 1

Crazy Alarm Clock L A K S H M I M E Y Y A P P A N J A M E S K A Y E W I L L I A M D I E H L C O N G C H E N

Installation and setup of remote keyboard for monitoring system Multiscreen 5.x

Surveillance System Using Wireless Sensor Networks

CanSat Program. Stensat Group LLC

Tutorial for MPLAB Starter Kit for PIC18F

Basic Pulse Width Modulation

Pop-up Surveillance Camera On Your TV

Wireless Security Camera with the Arduino Yun

Using HyperTerminal with Agilent General Purpose Instruments

Parallax Serial LCD 2 rows x 16 characters Non-backlit (#27976) 2 rows x 16 characters Backlit (#27977) 4 rows x 20 characters Backlit (#27979)

Animated Lighting Software Overview

Lecture 7: Programming for the Arduino

enervista UR Setup Software Quick Connect Instructions:

GM862 Arduino Shield

ENGG*44200 Real Time System Design Lab3 Implement VoIP on ARM Outline

User Manual Wireless HD AV Transmitter & Receiver Kit

F2103 GPRS DTU USER MANUAL

Building a Basic Communication Network using XBee DigiMesh. Keywords: XBee, Networking, Zigbee, Digimesh, Mesh, Python, Smart Home

Today s Outline. Computer Communications. Java Communications uses Streams. Wrapping Streams. Stream Conventions 2/13/2016 CSE 132

CONCEPT1 RS232 COMMUNICATION

ivms-4200 Client Software Quick Start Guide V1.02

1 Requirements. 2 Configuration. Axis-compatible Camera Application Integration.

Using Bluetooth-Enabled PosiTector 6000 with Statistical Process Control Software

Single channel data transceiver module WIZ2-434

Measuring Wireless Network Performance: Data Rates vs. Signal Strength

AXIS 205 Network Camera Quick Installation Guide

PM1122 INT DIGITAL INTERFACE REMOTE

NetClient software user manual

Sending an SMS with Temboo

Different Ways of Connecting to. 3DLevelScanner II. A.P.M Automation Solutions LTD. Version 3.0

HOMEWORKS. RS-232 Protocol. Data Protocol for Communicating with Lutron's HOMEWORKS System

Question: 3 When using Application Intelligence, Server Time may be defined as.

ROCK BAND 3 WIRELESS KEYBOARD:

Your Multimeter. The Arduino Uno 10/1/2012. Using Your Arduino, Breadboard and Multimeter. EAS 199A Fall Work in teams of two!

The network we see so far. Internet Best Effort Service. Is best-effort good enough? An Audio Example. Network Support for Playback

RMS U GSM USB GSM Modem

Sending Data from a computer to a microcontroller using a UART (Universal Asynchronous Receiver/Transmitter)

1.1 Connection Direct COM port connection. 1. Half duplex RS232 spy cable without handshaking

Performance Tuning Guidelines for PowerExchange for Microsoft Dynamics CRM

Arduino Lesson 4. Eight LEDs and a Shift Register

AXON Mobile for Android Devices User Manual

DVS-100 Installation Guide

How To Use The Workstation Program On A Pc Or Mac Or Macbook Or Macintosh (Aero) With A Computer Or Ipa (A2) With An Ipa Or Ipad (A3) With The Powerpoint 2.

MANUAL PC1000R

Network Video Monitor Software

Multi Client (Integration)

Sending SMS Messages and s

The Answer to the 14 Most Frequently Asked Modbus Questions

Bluetooth Operation. In - Dash Navigation Radio

Master-Touch and ValuMass. Modbus Communications. INSTRUCTION MANUAL (Rev. 2.1)

Arduino project. Arduino board. Serial transmission

CONNECTING THE RASPBERRY PI TO A NETWORK

How To Use A Powerpoint On A Microsoft Powerpoint 2.5 (Powerpoint 2) With A Microsatellite 2.2 (Powerstation 2) (Powerplant 2.3) (For Microsonde) (Micros

CHAPTER 2: USING THE CAMERA WITH THE APP

How to Use SNMP in Network Problem Resolution

User s Guide for Polycom CX7000 Systems

2 ASCII TABLE (DOS) 3 ASCII TABLE (Window)

HOST Embedded System. SLAVE EasyMDB interface. Reference Manual EasyMDB RS232-TTL. 1 Introduction

Docklight V2.1 User Manual 08/2015. Copyright 2015 Flachmann und Heggelbacher GbR

Transcription:

Simple Serial MaxMSP Arduino int inbyte = 0; // incoming serial byte pinmode(13, OUTPUT); // connect an LED here inbyte = Serial.read(); if (inbyte == 97) digitalwrite(13, HIGH); // letter 'a' turns LED on if (inbyte == 98) digitalwrite(13, LOW); // letter 'b' turns LED off Serial.read receives one byte at a time Click on MaxMSP 97 message: Arduino pin 13 goes high Click on MaxMSP 98 message: Arduino pin 13 goes low These numbers are single ASCII byte values, arbitrarily chosen

ASCII Code each byte value corresponds to a character

Simple Serial Arduino MaxMSP int sensorvalue = 0; sensorvalue = analogread(0); sensorvalue = map(sensorvalue, 0, 1023, 0, 255); Serial.write(sensorValue); delay(100); Sends one byte at a time Only a single stream of numbers (i.e. data from one sensor) can be sent Values are limited to the range 0-255 map command takes 0-1023 sensor range and reduces it to a range of 0-255

Simple Serial Arduino sensor controls sound in MaxMSP Add these blocks to generate a tone MSP does realtime audio processing All MSP objects end in ~ MSP audio interconnects are dashed lines

Using Formatted Data Arduino MaxMSP int sensorvalue = 0; sensorvalue = analogread(0); //sensorvalue = map(sensorvalue, 0, 1023, 0, 255); Serial.println(sensorValue); delay(100); Formatting allows multi-byte packets to be sent Real world language can be used Data from multiple sensors can be sent Numbers can take any format or range of values (no need to use map ) Serial.println automatically adds ASCII 13 to the end of every packet sent

Multiple Messages Arduino MaxMSP int sensorvalue = 0; int count; sensorvalue = analogread(0); count = count + 1; Serial.print(sensorValue); Serial.write(32); Serial.println(count); delay(100); sensorvalue count

Formatted Serial MaxMSP Arduino int inbyte = 0; // incoming serial byte char buffer[40]; int index = 0; int value; pinmode(11, OUTPUT); index = 0; do buffer[index] = Serial.read(); // get a byte from the serial port if (buffer[index]!=-1) index = index+1; // -1 if no byte is present while (buffer[index-1]!= 32); //keep collecting bytes until a space is received value = atoi(buffer); // interpret buffer string as an integer analogwrite(11,value); // set brightness of an LED on pin 11

Audio Processing External Sound Input (also try freqshift~ object)

Assignment for Thursday 8 April 2010: One page proposal for Final Project This proposal is due in class on Thursday April 8 th. The project will be presented in class on May 6 th Final Project For this project, you will connect multiple sensors (such as switches, potentiometers, flex sensors, light sensors, thermistors, ping distance sensors, IR distance sensors, accelerometers, etc ) to the Arduino. and use them to control audio and/or video in MaxMSP. In your proposal please include a description of what you want your project to do and how it will react and interact with its environment. Make a list of specifically which sensors you intend to use and provide a breakdown of the system's intended behavior describing how the hardware and software will function in a range of situations, for example: ping distance sensor controls speed of video playback based upon viewer location video track is selected by buttons on keyboard -- audio is pitch shifted by potentiometer setting -- tilting the keyboard triggers new audio track Try to make the system as engaging/interesting as possible. It may help to first choose a category for the device you want to make such as toy, game, sculpture, fashion accessory, or musical instrument. It is also a good idea to decide first whether this is primarily a sound or video based system such as a musical instrument, effects box, or interactive video installation. The primary focus over the remaining weeks of the class will be working together to make sure each of you can realize your projects as planned. The grade for this project will be based upon a combination of technical proficiency (in terms of software, hardware, and mechanical/visual design) and conceptual development.