Kubulu Arduino Workshop: Difference between revisions
No edit summary |
|||
| (12 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
[[File:FlyerMail2_Arduino.jpeg]] | |||
==Infos zum Workshop== | ==Infos zum Workshop== | ||
[http://kubulu.ch/laborII.html Infos und Anmeldung] | [http://kubulu.ch/laborII.html Infos und Anmeldung] | ||
==Hardware Übersicht== | ==Hardware Übersicht Arduino Uno== | ||
[[File:Arduino-Uno-Overview.png|800px]] | |||
Mehr infos: [http://arduino.cc/en/Main/ArduinoBoardUno Arduino Uno] | |||
==Software== | |||
[http://arduino.cc/en/Guide/HomePage Software installieren] | |||
[http://arduino.cc/en/Reference/HomePage Referenz] | |||
set DDR and PORT register directly (advanced): [http://www.arduino.cc/en/Reference/PortManipulation direct port manipulation] | |||
==Basics== | |||
LED Blinker [http://arduino.cc/en/Tutorial/Button Arduino Schaltung] | |||
==Arduino-Computer Serial Kommunikation== | |||
===Beispiel: Potentiometer auslesen und Wert an Computer senden=== | |||
[http://arduino.cc/en/Tutorial/AnalogReadSerial Arduino Schaltung] | |||
===MaxMSP=== | |||
===VVVV=== | |||
in vvvv you can use the RS232 and regex object to receive data and translate the ASCII values back to decimal. | |||
check the vvvv regex documentation for details. in the following patch i used <code>a(\d+)z</code> for the parsing, that's an 'a' followed by one or more numeric values, followed by a 'z'. patterns in brackets () will be shown as outputs in the regex object. | |||
Arduino code (you may have to adjust the baudrate): | |||
<syntaxhighlight lang="cpp"> | |||
void setup() | |||
{ | |||
Serial.begin(19200); | |||
} | |||
void loop() | |||
{ | |||
Serial.print('a'); | |||
Serial.print(analogRead(0),DEC); | |||
Serial.print('z'); | |||
} | |||
</syntaxhighlight> | |||
[[File:Vvvv.PNG|340px]] | |||
===ASCII - decimal conversion=== | |||
serial data between arduino and the computer is sent in ASCII format. values have to be translated back to decimal. | |||
[http://www.asciitable.com/ http://www.asciitable.com/] | |||
==Sensoren== | |||
* Phototransistor | |||
* Piezo | |||
* Infrarot Distanzmesser | |||
* Beschleunigungssensor (X-Y-Z) | |||
* Flex | |||
* Luftdruck | |||
* ... | |||
==Anwendung== | |||
* Relais Polyhedron [http://www.mechatronicart.ch/blog/openlabsession-2012-01-24 video] | |||
* LED Handschuh | |||
* Wearables | |||
* [http://arduino.cc/playground/Main/SID-emulator SIDuino] | |||
* [http://www.stahlnow.com/blog/cheminee Cheminée] | |||
* [http://www.youtube.com/watch?v=R8_dAgaBBdI Arduino High Speed Photography Trigger] | |||
==Arduino Clones== | |||
Mit etwas Erfahrung kann man sein eigenes Arduino designen oder ein bestehender Clone nachbauen. Nebst dem Löten der Bauteile muss der Arduino Bootloader auf den ATMega geladen werden. Ist der Bootloader einmal auf dem chip, kann das Arduino mit einem USB zu Serial Interface (z.B. FTDI Basic Breakout - 5V von sparkfun) programmiert werden. | |||
SGMK Arduino clone: [[SGMKduino]] | |||
[http://itp.nyu.edu/physcomp/Tutorials/ArduinoBreadboard Arduino auf dem breadboard] | |||
== | ==Partslist== | ||
Experimentierset / Werkzeug | |||
* Breadboard | |||
* Steckkabel | |||
* Drahtlitze | |||
* Seitenschneider/Zangen etc. | |||
* Lötkolben etc. | |||
Material | |||
* Arduino UNO | |||
* Potentiometer | |||
* Phototransistor | |||
* Piezo | |||
* LED | |||
* Taster | |||
* Widerstände | |||
* Kondensatoren | |||
Latest revision as of 02:21, 11 February 2012
Infos zum Workshop
Hardware Übersicht Arduino Uno
Mehr infos: Arduino Uno
Software
set DDR and PORT register directly (advanced): direct port manipulation
Basics
LED Blinker Arduino Schaltung
Arduino-Computer Serial Kommunikation
Beispiel: Potentiometer auslesen und Wert an Computer senden
MaxMSP
VVVV
in vvvv you can use the RS232 and regex object to receive data and translate the ASCII values back to decimal.
check the vvvv regex documentation for details. in the following patch i used a(\d+)z for the parsing, that's an 'a' followed by one or more numeric values, followed by a 'z'. patterns in brackets () will be shown as outputs in the regex object.
Arduino code (you may have to adjust the baudrate):
void setup()
{
Serial.begin(19200);
}
void loop()
{
Serial.print('a');
Serial.print(analogRead(0),DEC);
Serial.print('z');
}
ASCII - decimal conversion
serial data between arduino and the computer is sent in ASCII format. values have to be translated back to decimal. http://www.asciitable.com/
Sensoren
- Phototransistor
- Piezo
- Infrarot Distanzmesser
- Beschleunigungssensor (X-Y-Z)
- Flex
- Luftdruck
- ...
Anwendung
- Relais Polyhedron video
- LED Handschuh
- Wearables
- SIDuino
- Cheminée
- Arduino High Speed Photography Trigger
Arduino Clones
Mit etwas Erfahrung kann man sein eigenes Arduino designen oder ein bestehender Clone nachbauen. Nebst dem Löten der Bauteile muss der Arduino Bootloader auf den ATMega geladen werden. Ist der Bootloader einmal auf dem chip, kann das Arduino mit einem USB zu Serial Interface (z.B. FTDI Basic Breakout - 5V von sparkfun) programmiert werden.
SGMK Arduino clone: SGMKduino
Partslist
Experimentierset / Werkzeug
- Breadboard
- Steckkabel
- Drahtlitze
- Seitenschneider/Zangen etc.
- Lötkolben etc.
Material
- Arduino UNO
- Potentiometer
- Phototransistor
- Piezo
- LED
- Taster
- Widerstände
- Kondensatoren
