89
edits
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
Technical aspects | '''Technical aspects''' | ||
Hardware | Hardware | ||
Line 16: | Line 16: | ||
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 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). | ||
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) | b) | ||
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) | 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) | ||
Here the arduino code: | Here the arduino code: | ||
edits