17
Making is Fun! [inspired]

Making is fun!

Embed Size (px)

Citation preview

Page 1: Making is fun!

Making is Fun!

[inspired]

Page 2: Making is fun!

Why Prototype

• It is fun!• It helps to put across ideas better• It is what actually works!

• To get people started with prototyping• Experience the joy (and intermittent frustrations) of making.• Experience the joy of a space where everyone is having fun

and making stuff together!

Why this Workshop

Page 3: Making is fun!

Structure

• Not a one to many but a many to many workshop! (people who know stuff should chip in – we are in this together).

• Some introduction on Arduino and Processing• Idea generation• Thinking of how we will actually prototype it (a schematic

sorts).• Build!

Page 4: Making is fun!

Processing 101Why Processing?

• A very strong online platform• Lots of libraries• Very low learning curve• A very good graphical tool• Android, Kinect capabilities!• A lot of cool projects!

Page 5: Making is fun!

Examples

• Codeable Objects- http://hlt.media.mit.edu/?p=2254• WaveTouch

• TactArt

Page 6: Making is fun!

Fiducials!

• Markers that have unique ID• Can track their position and rotational orientation.

Page 8: Making is fun!

Physical Computing

Page 9: Making is fun!

Arduino Pre 101

Page 10: Making is fun!

• External supply of 6 to 20 volts. If supplied with less than 7V, however, the 5V pin may supply less than five volts and the board may be unstable. If using more than 12V, the voltage regulator may overheat and damage the board. The recommended range is 7 to 12 volts.

• VIN. The input voltage to the Arduino board when it's using an external power source. This is where you put in the red lead of a battery. If supplying voltage via the power jack, access it through this pin. There is a regulatory circuit within Arduino that then makes sure that there is just 5V from the 5V pin. You can directly add it to the 5 or 3.3V but then you are bypassing the regulator- can be risky!

Page 11: Making is fun!

• Analog Pins: Read analog data from sensors. (Can be configured to work as digital, but not required – esp on a Mega). When doing so, they are referred to as A0, A1, etc.

pinMode(A0, OUTPUT);digitalWrite(A0, HIGH);

• Digital Pins: Can be set to INPUT or OUTPUT mode (HIGH – 5V, LOW – 0V) (Default mode is INPUT).

• Digital input – generally for push buttons, output for anything!

Page 12: Making is fun!

• Arduino has a certain PWM frequency (green lines – i/f).• Pulse Width – on time• AnalogWrite (255) – 100% duty cycle – always on.

Page 13: Making is fun!

• AREF. Reference voltage for the analog inputs.• Analog sensors give you a range of values (for Mega i think it

is 0-1023). These are basically based on the voltage at the particular pin- there is a 10 bit analog to digital converter that then sends values to the computer.

• By default the mapping is 0 – 0V, 1023 – 5V• To change this mapping, we use AREF.

Page 14: Making is fun!
Page 15: Making is fun!

• Firmata – Firmata is a generic protocol for communicating with microcontrollers from software on a host computer.

Page 16: Making is fun!

How do we write a sketch?

int ledpin = 13; void setup() - runs once{ Serial.begin(9600); pinMode(ledpin, OUTPUT);}void loop() – runs infinitely many times{digitalWrite(ledpin, HIGH);}

Page 17: Making is fun!

IDEAS!