<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://lamaplc.com/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>lamaPLC - code</title>
        <description></description>
        <link>https://lamaplc.com/</link>
        <lastBuildDate>Wed, 13 May 2026 11:28:50 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>https://lamaplc.com/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
            <title>lamaPLC</title>
            <link>https://lamaplc.com/</link>
        </image>
        <item>
            <title>arduino_modul_bme680</title>
            <link>https://lamaplc.com/doku.php?id=code:arduino_modul_bme680&amp;rev=1778607552&amp;do=diff</link>
            <description>lamaPLC: Arduino Modul: BME680

The program read BME-680 sensor to serial monitor.

Install the Adafruit BME680 Library (this will also prompt you to install the Adafruit Unified Sensor and Adafruit BME680 Library, which you need)



/*
 * BME680 Sensor - Arduino Uno/Nano
 * Connection: I2C
 * Data: Temperature, Humidity, Pressure, Gas (Air Quality)
 *
 * Required Libraries (Arduino Library Manager):
 *   - &quot;Adafruit BME680 Library&quot; by Adafruit
 *   - &quot;Adafruit Unified Sensor&quot; by Adafruit
 *
 * …</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 12 May 2026 17:39:12 +0000</pubDate>
        </item>
        <item>
            <title>index</title>
            <link>https://lamaplc.com/doku.php?id=code:index&amp;rev=1778612901&amp;do=diff</link>
            <description>lamaPLC: Code!

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.00</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 12 May 2026 19:08:21 +0000</pubDate>
        </item>
        <item>
            <title>rp2040_eth_modul_bme680_modbus</title>
            <link>https://lamaplc.com/doku.php?id=code:rp2040_eth_modul_bme680_modbus&amp;rev=1778612656&amp;do=diff</link>
            <description>lamaPLC: RP2040_ETH_Modul: Read BME 680/688 sensor data and store in Modbus input registers

The program reads the following data from the BME680 sensor and displays it in the Modbus input registers:

	*  Temperature: Provides ambient temperature readings.
	*  Humidity: Measures relative humidity.00</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 12 May 2026 19:04:16 +0000</pubDate>
        </item>
        <item>
            <title>rp2040_eth_modul_bme680</title>
            <link>https://lamaplc.com/doku.php?id=code:rp2040_eth_modul_bme680&amp;rev=1778612804&amp;do=diff</link>
            <description>lamaPLC: RP2040_ETH_Modul: Read BME 680/688 sensor data

The program reads the following data from the BME680 sensor and displays it in the Modbus input registers:

	*  Temperature: Provides ambient temperature readings.
	*  Humidity: Measures relative humidity.
00</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 12 May 2026 19:06:44 +0000</pubDate>
        </item>
        <item>
            <title>rp2040_eth_modul_i2c_scanner</title>
            <link>https://lamaplc.com/doku.php?id=code:rp2040_eth_modul_i2c_scanner&amp;rev=1778592356&amp;do=diff</link>
            <description>lamaPLC: RP2040_ETH_Modul: I²C scanner

The program scans the addresses of devices connected via I²C.

Important: The Ethernet module is accessible by RP2040_ETH via UART1 with the following configuration:

uart1 = UART(1, baudrate=115200, tx=Pin(20), rx=Pin(21), timeout=50)00</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 12 May 2026 13:25:56 +0000</pubDate>
        </item>
        <item>
            <title>rp2040_eth_modul_mlx90614_1</title>
            <link>https://lamaplc.com/doku.php?id=code:rp2040_eth_modul_mlx90614_1&amp;rev=1778598511&amp;do=diff</link>
            <description>lamaPLC: RP2040_ETH_Modul: MLX90614 simple

Read MLX90614 (GY-906) infrared non-contact thermometer sensor to serial. 

Important: The Ethernet module is accessible by RP2040_ETH via UART1 with the following configuration:

uart1 = UART(1, baudrate=115200, tx=Pin(20), rx=Pin(21), timeout=50)



import machine
from machine import Pin, I2C
import time
import ustruct

# I2C configuration for RP2040-ETH
# Default: GP4 (SDA), GP5 (SCL), I2C port 0
i2c = I2C(0, sda=Pin(4), scl=Pin(5), freq=100000)

# …</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 12 May 2026 15:08:31 +0000</pubDate>
        </item>
        <item>
            <title>rp2040_eth_modul_modbus_tcp_example_1</title>
            <link>https://lamaplc.com/doku.php?id=code:rp2040_eth_modul_modbus_tcp_example_1&amp;rev=1778171743&amp;do=diff</link>
            <description>lamaPLC: RP2040_ETH_Modul: Modbus TCP example

The 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.

Important: The Ethernet module is accessible by 00</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 07 May 2026 16:35:43 +0000</pubDate>
        </item>
        <item>
            <title>rp2040_eth_modul_modbus_tcp_sniffer_1</title>
            <link>https://lamaplc.com/doku.php?id=code:rp2040_eth_modul_modbus_tcp_sniffer_1&amp;rev=1778172301&amp;do=diff</link>
            <description>lamaPLC: RP2040_ETH_Modul: Modbus TCP sniffer

The program receives and analyses incoming TCP Modbus telegrams, but does not respond.

Important: The Ethernet module is accessible by RP2040_ETH via UART1 with the following configuration:

uart1 = UART(1, baudrate=115200, tx=Pin(20), rx=Pin(21), timeout=50)00</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 07 May 2026 16:45:01 +0000</pubDate>
        </item>
        <item>
            <title>sidebar</title>
            <link>https://lamaplc.com/doku.php?id=code:sidebar&amp;rev=1778596192&amp;do=diff</link>
            <description>lamaPLC Start  



IoT Prototyping 



automation! 

Code! 

Simatic 

Arduino 

ESP32/ESP8266 

Labview 



Communication 

Sensors 

Actors 

Display/HMI 



3D Printing 

Calculations 

Impressum 









abbreviation index 

tag index</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 12 May 2026 14:29:52 +0000</pubDate>
        </item>
        <item>
            <title>start</title>
            <link>https://lamaplc.com/doku.php?id=code:start&amp;rev=1778602879&amp;do=diff</link>
            <description></description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 12 May 2026 16:21:19 +0000</pubDate>
        </item>
    </channel>
</rss>
