Monday, 13 February 2017

Lesson 4 - Arduino/Pure Data

Monday 27th February – Project proposal
o   No more than two sides of A4
o   Must include both text and image to provide visualisation
o   Format:
§  All group members names
§  Initial working title
§  Summary of the proposed project in 500 words or less
§  Presentation intentions – how is the project to be experienced by its audience? Is it an installation, app, etc.
§  Visualisation – it could be your own work or an appropriate image from your research
§  Key references – other practitioners, films, books, etc. Include material of genuine influence

Arduino

·      Digital pins/analogue pins
·      5V or 3.3V – must be careful as components can be damaged if using the wrong voltage
·      Upload using USB cable
·      Runs program over and over again if connected to power – no on/off switch


Connecting Arduino to Pure Data

·      Make serial connection to link Arduino to Pure Data
o   Redirect so that the data goes to Pure Data rather than the serial monitor
·      Tell the program that you’re initialising a serial connection in the setup
·      You need the programs to communicate at the same speed – bps match on each program
·      If part of the code is greyed out, it is not going to work – you can use this to temporarily remove part of the code – grey a code out by adding // at the start of the line
·      “serial.write” sends bites of the data to Pure Data, tell the program what it is going to send in the brackets afterwards i.e. serial.write(OutputValue);
·      If code is orange, it is recognised 
·      Open Pure Data, and open the comport template
·      The devices box will open a pop up containing all the available devices, including the Arduino device
·      Different components:
o   Moisture sensor – detects moisture in soil
o   Force sensor – senses pressure 
o   Stretch sensor – small arduinos that can be stitched into clothes etc. 
o   Accelerometer – detects orientation
o   Pulse sensor – measures heart rate
·      Additional shields to slot onto Arduino:
o   RFID reader – reads cards etc. with RFID chips in (i.e. uni card, contactless card), can be embedded into objects easily
o   GSM shield – mobile phone shield – put sim card in, connect to Arduino, it can send and receive text messages, calls etc.
o   Motor controller shield – used to make robotic elements 



No comments:

Post a Comment