CodeShorty: Serial Interrupt

Is it possible to capture inputs on the serial port via interrupt? The answer is probably more yes-and-no, it is possible to use the Serial Event function. This is executed after every loop, but does not interrupt it. Purpose User input via terminal Communication with other devices via the serial port Necessary libraries None Program There is in the Arduino GUI…

Continue reading "CodeShorty: Serieller Interrupt"

Preprocessor directives

Defining constants: Preprocessor constants are created using the #define command. These can simply exist as a name, as shown below: or they can be assigned a value. The pre-processor then inserts the corresponding value at every point where the constant ‘name’ is used. Expressions are also possible: Whether a …

Continue reading "Präprozessor-Direktiven"

KY-018 Photoresistor Sensor

The KY-018 board is equipped with a light-dependent resistor and a corresponding current-limiting resistor. Data: Voltage: 3V-5V (other voltages are conceivable) Output: analogue voltage value I suspect that a GL5528 has been installed here. Facts: Connection designation – Ground + V+ (3V-5V) S Signal KY-018 – Pin assignment View Application areas: Brightness measurement As a sensor for aligning solar cells Light barrier as...

Continue reading "Sensor KY-018 Photowiderstand"

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"