This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
fabricademy2017:students:julie.taris:class9-e-textiles-wearables2 [2018/06/25 20:58]
fabricademy2017:students:julie.taris:class9-e-textiles-wearables2 [2018/06/30 17:40]
Line 179: Line 179:
 \\  \\ 
 === Arduino tests === === Arduino tests ===
 +== connect an analog sensor to the Arduino==
 +See the instructable here : [http://​www.instructables.com/​id/​Connecting-a-textile-analog-sensor-to-Arduino/​|Connecting a Textile Analog Sensor to Arduino]]
 +  * Connect the '​+'​ pad of your Lilypad to your sensor. Sensors are not polarized, so it does not matter on which side you connect it.
 +  * Connect the output of the sensor to the analog input a0 of the Lilypad
 +  * Connect Sensor to Ground.
 +Plug the USB cable into your USB port of your laptop, and into the USB port of the FTDI board and copy, paste and upload the following program to the Lilypad:
-[http://​www.instructables.com/​id/​Connecting-a-textile-analog-sensor-to-Arduino/​|Connecting a Textile Analog Sensor to Arduino]] 
 <​code>​ <​code>​
Line 206: Line 215:
 </​code>​ </​code>​
-{{vimeo>​245700846?​medium}} +the LED on the Lilypad blinking. By stretching the sensor the LED blink at a slower frequency.
 {{vimeo>​245700018?​medium}} {{vimeo>​245700018?​medium}}
 +upload the sketch into the lilypad and open the monitor
 +we can see the voltage variation between O (the sensor is not stretched) and different more or less intense variations (if the sensor is stretched, twisted, bent...)
 {{vimeo>​245699994?​medium}} {{vimeo>​245699994?​medium}}