GMU:Dataflow/Jam session/Ayla Güney: Difference between revisions

From Medien Wiki
No edit summary
No edit summary
Line 2: Line 2:
An unremarkable continuous event in public space caused by passing   
An unremarkable continuous event in public space caused by passing   
cars in Weimar triggers an equally mundane event in the exhibition   
cars in Weimar triggers an equally mundane event in the exhibition   
space in Berlin. A distance sensor sends measurements of slight movements over the Internet while a servo motor translates these measurements back into another type of movement.
space in Berlin. A distance sensor sends measurements of slight movements over the Internet while a servo motor translates these measurements back into another type of movement.<br>
 
 
[[:File:WP_20170401_003.mp4]]
 
 
 




Line 16: Line 22:




a) There are several possibilities for microcontrollers. Instead of using a expansive arduino wifi module I decided to go first with a SIM 800L ([http://www.ayomaonline.com/programming/quickstart-sim800-sim800l-with-arduino/]) as I was coming across with hardware failures of that module, I decided to try out WEMOS D1 mini ([https://www.wemos.cc/product/d1-mini-pro.html#]). This module has great functions as you can directly hook up sensors on it (but also you can do a lot of different stuff with it, see here:[https://www.youtube.com/watch?v=G73fiaOpUAc]). The great thing about them is that they are easy to use because you can work with the Arduino IDE on it, they are small, they come with wifi (ESP 8266 chip) and they are cheap (check out aliexpress.com).
a) There are several types of microcontrollers that could be used for the purpose of sending realtime data over the Internet. Instead of using an expansive arduino wifi module I decided to try first the SIM 800L ([http://www.ayomaonline.com/programming/quickstart-sim800-sim800l-with-arduino/]). As I was coming across with hardware failures of that module, I decided to try out WEMOS D1 mini ([https://www.wemos.cc/product/d1-mini-pro.html#]). This module has great functions as you can directly hook up sensors on it (but also you can do a lot of different stuff with it, see here:[https://www.youtube.com/watch?v=G73fiaOpUAc]). The great thing about them is that they are easy to use because you can work with the Arduino IDE on it, they are small, they come with wifi (ESP 8266 chip) and they are cheap (check out aliexpress.com).
So I used two of these modules: One on the sensing and one on the retrieving site.
So I used two of these modules: One on the sensing and one on the retrieving site.


b) Distance meassuring part (Weimar)
b) distance meassuring part (Weimar)
microcontroller 1 was connected with the HC-SR04 distance sensor ([http://www.micropik.com/PDF/HCSR04.pdf]). It was meassuring the movement of the metal plate that was created whenever there was a car passing by. The code below contains already the hosting information for the data transfer. More information on that under e)<br>
microcontroller 1 was connected with the HC-SR04 distance sensor ([http://www.micropik.com/PDF/HCSR04.pdf]). It was meassuring the movement of a metal plate that was created whenever there was a car passing by. The code below contains already the hosting information for the data transfer. More information on that topic can be found on d)<br>
 
<br>wiring<br>


<br>[[File:distance sensor and code_Steckplatine.jpg|400px]]<br>
<br>[[File:distance sensor and code_Steckplatine.jpg|400px]]<br>
Line 29: Line 37:


c) retrieving part with servo motor (Berlin)<br>
c) retrieving part with servo motor (Berlin)<br>
<br>wiring<br>
<br>[[File:Servo motor and receiving site.jpg|400px]]<br>
<br>[[File:Servo motor and receiving site.jpg|400px]]<br>


arduino code:<br>
arduino code:<br>
Line 38: Line 51:




d) webhost FIREBASE<br>
<br>wiring<br>d) webhost FIREBASE<br>
data from the distance sensor in Weimar was sent in real-time to the webhost [https://firebase.google.com/] and from there to the servo motor in Berlin<br>
data from the distance sensor in Weimar was sent in real-time to the webhost [https://firebase.google.com/] and from there to the servo motor in Berlin<br>


view of host site<br>
view of host site<br>
<br>[[File:Firebase.JPG|400px]]
<br>[[File:Firebase.JPG|400px]]

Revision as of 22:06, 23 April 2017


SLIGHT MOVEMENT
An unremarkable continuous event in public space caused by passing cars in Weimar triggers an equally mundane event in the exhibition space in Berlin. A distance sensor sends measurements of slight movements over the Internet while a servo motor translates these measurements back into another type of movement.


File:WP_20170401_003.mp4



technical setup

a) 2 microcontrollers with wifi (2 x mini USB, 2 x Powerbank (5V), jumperwire, 330 ohm + 470 ohm resistors)
b) distance sensor (hardware + software)
c) servo motor (hardware + software)
d) web-hoster for data transfer


a) There are several types of microcontrollers that could be used for the purpose of sending realtime data over the Internet. Instead of using an expansive arduino wifi module I decided to try first the SIM 800L ([1]). As I was coming across with hardware failures of that module, I decided to try out WEMOS D1 mini ([2]). This module has great functions as you can directly hook up sensors on it (but also you can do a lot of different stuff with it, see here:[3]). The great thing about them is that they are easy to use because you can work with the Arduino IDE on it, they are small, they come with wifi (ESP 8266 chip) and they are cheap (check out aliexpress.com). So I used two of these modules: One on the sensing and one on the retrieving site.

b) distance meassuring part (Weimar) microcontroller 1 was connected with the HC-SR04 distance sensor ([4]). It was meassuring the movement of a metal plate that was created whenever there was a car passing by. The code below contains already the hosting information for the data transfer. More information on that topic can be found on d)


wiring


Distance sensor and code Steckplatine.jpg

arduino code:
File:Sending Distance Sensor Meassurements.txt


c) retrieving part with servo motor (Berlin)


wiring


Servo motor and receiving site.jpg


arduino code:

File:move servo to firebase data.txt




wiring
d) webhost FIREBASE
data from the distance sensor in Weimar was sent in real-time to the webhost [5] and from there to the servo motor in Berlin

view of host site

Firebase.JPG