din-exp
This is an old revision of the document!
Table of Contents
Expandable DIN module
Firmware
Download on GitHub
Implemented functions
- Connectors (T1 and T2) for connecting two DS18B20 digital thermistors with automatic detection. Reading temperature every 20 seconds and sending to MQTT with topic /T1-Celsius
- Ethernet connection using RJ45 connector with IP address retrieval from DHCP server. Static IP address setting is not implemented
- http web server publishing two pages
- mqtt-wall, which is a web MQTT client, for displaying messages that the device has sent to the MQTT broker

-
- MQTT topic
- Device ID
- RS485 (USB-C) BAUDRATE
- MQTT broker IP
- MQTT broker PORT
- websocet MQTT PORT
- MQTT Login
- MQTT Password
- Saving device settings to internal eeprom
- OTA update - allows you to update the device firmware via Ethernet via the web interface. Available at [IP]:82/update, or from the link on the main page of mqtt-wall
- MQTT client for sending and receiving messages from the broker
- Measuring POE voltage and sending the value to MQTT when it changes
- Watchdog timer, triggers a device restart if the firmware stops for longer than 60s
- detect USB-C plug and publish to MQTT with topic /USBdetect
- RS485-MQTT proxy - received RS485 data forward to MQTT with topic /RS485_RX
Hardware interfaces
BOM
| 1x | DC Power connector 5,5/2,1mm | https://www.tme.eu/cz/details/pc-2.1_5.5-14/konektory-dc/changzhou-dahua-imp-and-exp-group-co/vg18013a/ |
| 2x | DS18B20 with JST conector | https://www.laskakit.cz/en/dallas-ds18b20-digitalni-vodotesne-cidlo-teploty-3m/ |
| 1x | RS485 connector | https://www.tme.eu/cz/details/tj0231530000g/rozpojitelne-svorkovnice/amphenol-anytek/ |
| 2x | M3x10mm | https://www.tme.eu/cz/details/b3x10_bn2844/srouby/bossard/1489380/ |
| 1x | 1A fuse | https://www.tme.eu/cz/details/0218001.txp/pojistky-5x20mm-zpozdene/littelfuse/ |
| 30g | fillament PETG-V0 UL94-V0 UL certificate IEC 60695-11-10 | https://www.prusa3d.com/cs/produkt/prusament-petg-v0-natural-1kg/ |
| 1x | 3D print model | https://www.printables.com/model/1386414-arduino-esp32-ethernet-din-module |
din-exp.1762116835.txt.gz · Last modified: by ok1hra














