Arduino

Arduino interrupts

Hardware interruptsOn Arduino Uno there are only 2 pins that can handle interrupts (2 and 3) by default. Interrupts has to be quick in execution. Methods like delay(), Serial, millis() can not be used with interrupts. Interrupts project on tinkercad Variables used inside the interrupt need to be global and volatile. In order to add

Arduino interrupts Read More »

ESP8266 NodeMCU WiFi Arduino

Jak zacząć przygodę z ESP8266 NodeMCU w środowisku Arduino? 1. Zainstaluj sterowniki CH40 dla Windows: https://www.arduined.eu/ch340-windows-8-driver-download/ 2. W Arduino IDE dodaj opcje płytek Esp8266 (File / Preferences wklej następujący adres: https://arduino.esp8266.com/stable/package_esp8266com_index.json )3. W Board Manager (Tools / Board / Board Manager) zainstaluj  esp8266 by ESP8266 Community4. Wybierz z listy odpowiednią płytkę: NodeMCU 1.0 (ESP-12E Module)

ESP8266 NodeMCU WiFi Arduino Read More »

ESP8266 / ESP32 z wbudowanym ekranem OLED

Płytki ESP8266 lub ESP32 z wbudowanym ekranem LCD to mega sztosiwo! 😉 Jak wyswietlić dane na takim wyświetlaczu? Na początek należy zainstalować bibliotekę, która to ogarnie, np: U8g2, info na github: https://github.com/olikraus/u8g2 W wiki można poczytać o dostępnych metodach i sposobach użycia biblioteki, można również skorzystać z gotowych przykładów w arduino IDE.W programie należy wybrać

ESP8266 / ESP32 z wbudowanym ekranem OLED Read More »