lamaPLC: Code!

MicroPython example codes (hardware-independent)

Flame Sensor ModulThis MicroPython code reads the infrared analogue signal from an IR module (ignoring the DI signal), and outputs the converted analogue value read, as well as generating its own digital signal (“FLAME DETECTED! 🔥”) based on the captured threshold value (FLAME_THRESHOLD).

MicroPython example codes for the RP2040_ETH_Module

Modbus TCP exampleThe RP2040 module has Ethernet integrated, which can be accessed via UART1. This code creates Modbus Holding registers on the module with contents from 1 to 10.
Modbus TCP snifferThe program receives and analyses incoming TCP Modbus telegrams, but does not respond.
I2C scannerThe program scans the addresses of devices connected via I²C.
MLX90614 simpleRead MLX90614 (GY-906) infrared non-contact Thermometer to serial.
Read BME 680 sensor dataReads data from the BME680 sensor
Read BME 680 sensor data and store in Modbus input registersReads data from the BME680 sensor and displays it in the Modbus input registers.

C example codes for the Arduino Module (Arduino IDE)

Read BME680 SensorRead BME680 Temperature/Humidity/Barometric Pressure/Gas (VOC) Module

This page has been accessed for: Today: 1, Until now: 102