Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
fabricademy2017:students:julie.taris:class9-e-textiles-wearables2 [2018/06/25 20:58]
julie_taris
fabricademy2017:students:julie.taris:class9-e-textiles-wearables2 [2018/06/30 17:41]
julie_taris
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}} +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>​245700018?​medium}}+
  
 {{vimeo>​245699994?​medium}} {{vimeo>​245699994?​medium}}