Priprema, pozor, sad
OŠ Ivana Mažuranića Obrovac SinjskiNaziv projekta je Priprema,pozor, sad. Uključuje 3 diode – crvenu, žutu i zelenu. Diode se pravilno spoje na tablu te pomoću 3 gumba u aplikaciji Blynk palimo prvo crvenu, zatim žutu pa zelenu čime postižemo efekt tzv. Priprema, pozor, sad koji često koristimo kada želimo označiti početak nečega (npr. utrke, natjecanja ili odbrojavanja).
Učenici su koristili gotovi Arduino kod sa stranice Blynk examples koji je služio da bi povezali aplikaciju i pločicu, a naredbe vezane za projekt su zadavali u samoj Blynk aplikaciji.
Izrada projekta
Mobilna aplikacija
Shema projekta
Arduino program
#define BLYNK_PRINT /* /************************************************************* Download latest Blynk library here: https://github.com/blynkkk/blynk-library/releases/latest Blynk is a platform with iOS and Android apps to control Arduino, Raspberry Pi and the likes over the Internet. You can easily build graphic interfaces for all your projects by simply dragging and dropping widgets. Downloads, docs, tutorials: http://www.blynk.cc Sketch generator: http://examples.blynk.cc Blynk community: http://community.blynk.cc Follow us: http://www.fb.com/blynkapp Tweets by blynk_app Blynk library is licensed under MIT license This example code is in public domain. ************************************************************* Blynk using a LED widget on your phone! App project setup: LED widget on V1 *************************************************************/ /* Comment this out to disable prints and save space */ #define BLYNK_PRINT SerialUSB #include #include #include // You should get Auth Token in the Blynk App. // Go to the Project Settings (nut icon). char auth[] = "00182b794cd84fbd8bf7fae37a790a63"; // Your WiFi credentials. // Set password to "" for open networks. char ssid[] = "Radic"; char pass[] = "57753167"; WidgetLED led1(V1); BlynkTimer timer; // V1 LED Widget is blinking void blinkLedWidget() { if (led1.getValue()) { led1.off(); SerialUSB.println("LED on V1: off"); } else { led1.on(); SerialUSB.println("LED on V1: on"); } } void setup() { // Debug console SerialUSB.begin(9600); Blynk.begin(auth, ssid, pass); // You can also specify server: //Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 8442); //Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8442); timer.setInterval(1000L, blinkLedWidget); } void loop() { Blynk.run(); timer.run(); }
Arduino program ovoga projekta možete preuzeti ovdje.
Autori
Projekt su izradili Ivan Munivrana i Mihael Žižić uz mentorstvo Stipe Radića iz OŠ Ivana Mažuranića Obrovac Sinjski.
Projekt je prijavljen na temu: Internet of Things: Pametna rasvjeta.