SwitchLib

I needed a library to poll multiple buttons. Since I had three buttons but needed at least 4 functions, I implemented a short/long press detection. Each button can therefore be pressed briefly or for a longer duration and, after release, will call a callback method accordingly. Apart from a loop through the buttons, this library should not…

Continue reading "SwitchLib"

ESP32 NodeMCU

The NodeMCU board is already known for the ESP8266; now there's also one with an ESP32 Wroom 32. This one doesn't necessarily fit on a breadboard either, unless you can make up your mind about which side of the pins to use ;). This ESP32 board has a CP210 USB bridge, meaning before plugging it into the USB port, have a look at the…

Continue reading "ESP32 NodeMCU"

Arduino Nano V3

The Arduino Nano is one of the smallest of its kind, but no less powerful. It features an ATmega328 controller from Atmel, and the best part is that it fits on a breadboard. It has 30 connection pins, 15 on each side. For its operating voltage, it requires 7-20 Volts via Vin. However, it can also be powered directly with 5V. Here...

Continue reading "Arduino Nano V3"

WeMos D1 R32 ESP32

The WeMos D1 R32 is an ESP32 housed in an Arduino Uno form factor. It looks like an Arduino, but its I/Os only operate at 3V instead of the usual 5V. This can lead to incompatibilities with expansion boards (shields). The price is under 5 Euros on fast shipping sites like AliExpress. The board features all the advantages of the ESP32 processor…

Continue reading "WeMos D1 R32 ESP32"

Arduino PS2 Controller Board Fundamentals

Sales Name: 2018 Arduino Shield Expansion Board 6-12V with 4 Channels Motors Servos Ports PS2 Joystick Remote Control I bought the expansion board in a set including PS2 controller/receiver module, Arduino Uno and USB cable, from fast Ali for under €26. !!!To avoid a few mistakes beforehand, it makes sense to connect an external power source to the Arduino...

Continue reading "Arduino PS2 Controller Platine Grundlagen"

Menu classes for LCD displays

As creating a menu on the display is a recurring task, I have encapsulated some of the functionalities into classes. Hardware Components: * Arduino Uno * LCD Shield Software: * Arduino IDE * LiquidCrystal Lib (can be installed via the library manager, see also here) * My Menu Lib (see below) Goals: Step-by-step simple header with classes that in...

Continue reading "Menü Klassen für LCD Displays"

Put the ESP8266 to sleep

Sensorknoten sollen möglichst lange und unabhängig arbeiten können. Dennoch benötigen sie Strom, um mit der vorhandenen Energie möglichst effizient umgehen zu können, hat der ESP8266 und andere Controller die Möglichkeit in den Tiefschlaf zu gehen. Das schöne ist er kann sich nach fast beliebiger Zeit selbst wieder aufwecken. Ein Nachteil beim ESP8266 ist das er …

Continue reading "Den ESP8266 schlafen legen"

MQTT Protocol + Experimental Setup

I came across the term MQTT online and really liked the approach behind it. So, I treated myself to a small experimental setup, which I've described below. First, a few details about MQTT. About MQTT General Information MQTT governs communication between data sources and data sinks using a broker. Data Source Sources for…

Continue reading "MQTT Protokoll + Versuchsaufbau"

Setting up ESP32 with the Arduino GUI

As always, there is a wealth of information online on how to configure the Arduino GUI. Therefore, I will be very brief here, and for more detailed information, please refer to the sources linked below. Board Manager The ESP 32 has made its way into the Board Manager quite some time ago. The steps for installation are outlined here briefly. …

Continue reading "ESP32 mit der Arduino Gui einrichten"