89
edits
| No edit summary | No edit summary | ||
| Line 5: | Line 5: | ||
| Hardware / | Hardware / | ||
| a) 2 microcontrollers with wifi | a) 2 microcontrollers with wifi (2 x mini USB, 2 x Powerbank (5V), jumperwire, 330 ohm +  470 ohm resistors) | ||
| b) distance sensor | b) distance sensor | ||
| c) servo motor | c) servo motor | ||
| Line 22: | Line 23: | ||
| 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) | ||
| Hardware | |||
| [[File:distance sensor and code_Steckplatine.jpg|400px]] | |||
| arduino code: | |||
edits