
HAN ESP TSS721
UtilitechAS/amsreader-firmware
ESP8266 and ESP32 compatible firmware to read, interpret and publish data to MQTT from smart electrical meters, both DLMS and DSMR is supported

A comprehensive, production-grade industrial control suite for plastic filament extruders. This repository provides complete firmware, circuit schematics, PCB designs, simulation guides, and real-time data logging…
ExtruderController is an open-source printed circuit board by lokeshtekade77-source, from the lokeshtekade77-source/FILAMENT_EXTRUDER repository on GitHub. It is a 2-layer board of 100 × 80 mm with 17 parts on 12 nets, routed with 11 tracks and 0 vias.
It is built around the DS18B20. Its parts include 6 connectors, 4 resistors, 2 capacitors and 1 diode.
A comprehensive, production-grade industrial control suite for plastic filament extruders. This repository provides complete firmware, circuit schematics, PCB designs, simulation guides, and real-time data logging software across two flexible architectures:
http://192.168.4.1).This repository accommodates multiple production and testing configurations:
| Architecture / Folder | Target Hardware | Heating / Sensors | Key Feature |
|---|---|---|---|
Arduino_Mega2560_Standalone_Controller | Arduino Mega 2560 + 3.5" TFT | 4x Relays, 4x Band Heaters, 2x PT100 RTDs | Flagship All-in-One: Direct standalone control, EEPROM saving, 9600-baud CSV streaming |
Arduino_Mega2560_PT100_Test_Bench | Arduino Mega 2560 | 2x PT100 RTDs (A8, A9) | Minimal diagnostic test bench for PT100 ADC & Callendar–Van Dusen verification |
Arduino_Mega2560_TFT_UART_Controller | Arduino Mega 2560 + 3.5" TFT | Communicates via Serial3 (Pins 14 & 15) | Dedicated hardware UART link without USB upload conflicts |
Arduino_TFT_UART_Controller | Arduino Uno / Mega + 3.5" TFT | Communicates via Serial (Pins 0 & 1) | Universal 115,200-baud TFT client for ESP32 / ESP8266 |
ESP32_TempSensor_UART | ESP32 DevKit V1 | 3x SSRs, DS18B20 OneWire, Motor PWM | Wi-Fi Access Point (ESP32-Extruder-Link), Web Server (192.168.4.1) |
NodeMCU_ESP8266_TempSensor_UART | NodeMCU ESP8266 | 3x SSRs, DS18B20 OneWire, Motor PWM | Cost-effective Wi-Fi master controller |
Arduino_Mega2560_Demo_1Heater_DS18B20 | Arduino Mega 2560 + 3.5" TFT | 1x Relay (Pin 22), 1x DS18B20 (Pin 26) | Rapid single-relay bench verification |
When mounting the 3.5" MCUFRIEND TFT Shield on the Arduino Mega 2560, the standard Uno headers (Pins 0–13 and A0–A5) are physically covered. The rear digital double-row header (Pins 22–53) and the extended analog header (Pins A8–A15) remain 100% accessible:
┌──────────────────────────────────────────────────────────────────────────────────┐
│ ARDUINO MEGA 2560 UNBLOCKED GANG PINOUT MAPPING │
├──────────┬──────────────┬────────────────────────────────────────────────────────┤
│ Pin No. │ Type │ Connected Component & Functional Role │
├──────────┼──────────────┼────────────────────────────────────────────────────────┤
│ Pin 23 │ Digital OUT │ Relay Module IN1 -> Zone 1 Band Heater 1 (Active-LOW) │
│ Pin 25 │ Digital OUT │ Relay Module IN2 -> Zone 1 Band Heater 2 (Active-LOW) │
│ Pin 27 │ Digital OUT │ Relay Module IN3 -> Zone 2 Band Heater 3 (Active-LOW) │
│ Pin 29 │ Digital OUT │ Relay Module IN4 -> Zone 2 Band Heater 4 (Active-LOW) │
│ Pin 31 │ Digital OUT │ Safety Alarm Buzzer (Audible warning indicator) │
│ Pin 42 │ Digital OUT │ Extruder Motor Driver Run / Enable (HIGH=Run, LOW=Stop)│
│ Pin 44 │ PWM Output │ Extruder Motor Speed PWM (Timer 5 HW PWM: 0-150 RPM) │
│ Pin A8 │ Analog IN │ Zone 1: PT100 RTD Sensor Junction (1kΩ pull-up to 5V) │
│ Pin A9 │ Analog IN │ Zone 2: PT100 RTD Sensor Junction (1kΩ pull-up to 5V) │
│ 5V & GND │ Power Rails │ Logic & Sensor Power Rails (Rear Header Gang) │
└──────────┴──────────────┴────────────────────────────────────────────────────────┘Note on Zones & Motor Expansion:
- Zone 3: Maintained in firmware as
CLOSED / INACTIVE(zone3Temp = 0.0,zone3Volts = 0.0). The UI displaysOFF / CLOSED.- Motor Driver Pins (42 & 44): Initialized in a safe idle state (
PWM = 0,RUN = LOW). Motor connections can be added at any time with no code modifications.
Both PT100 temperature sensors are read ratiometrically using precision $1\text{ k}\Omega$ ($1000\ \Omega$) pull-up resistors:
Arduino Mega 2560 +5V Rail (Rear Header)
│ │
[ 1kΩ R1 ] [ 1kΩ R2 ]
│ │
├───── Pin A8 ├───── Pin A9
│ (Zone 1 Temp) │ (Zone 2 Temp)
│ │
[ PT100 #1 ] [ PT100 #2 ]
(Zone 1 RTD) (Zone 2 RTD)
│ │
└─────────┬─────────┘
│
Arduino Mega 2560 GND RailPT100 SENSOR FAULT), all relays cut off immediately.[ Arduino Mega 2560 Rear Header ]
Pin 23 (OUT) ──> IN1 ──┐
Pin 25 (OUT) ──> IN2 ──┤ [ 4-Channel 5V Relay Module ]
Pin 27 (OUT) ──> IN3 ──┤ (Active-LOW: LOW=ON, HIGH=OFF)
Pin 29 (OUT) ──> IN4 ──┤
5V (Logic) ──> VCC ──┤
GND (Logic) ──> GND ──┘
================================ HIGH VOLTAGE AC / DC HEATER LOOPS ================================
[ AC Mains LIVE (Phase) / DC +24V Supply ]
│
├───> Relay 1 COM ──> NO ──> [ Band Heater 1 (Zone 1) ] ──┐
│ │
├───> Relay 2 COM ──> NO ──> [ Band Heater 2 (Zone 1) ] ──┤
│ │
├───> Relay 3 COM ──> NO ──> [ Band Heater 3 (Zone 2) ] ──┤
│ │
└───> Relay 4 COM ──> NO ──> [ Band Heater 4 (Zone 2) ] ──┤
│
[ AC Mains NEUTRAL / DC GND Return Rail ] <────────────────────┘
* NC (Normally Closed) Terminals: MUST BE EMPTY / DISCONNECTED for failsafe protection!Safety Guidelines:
- Failsafe Normally Open (NO): Always use
COMandNO. If the microcontroller loses power or resets, all relays automatically de-energize and cut heater power.- Power Supply: Power the Arduino Mega with a $9\text{V}\text{--}12\text{V}\ 2\text{A}$ DC adapter or supply $5\text{V}$ externally to the relay module's
JD-VCCpin with the jumper removed.- Thermostat Anti-Chatter Protection: Firmware includes a $2.0^\circ\text{C}$ deadband hysteresis and a minimum $2000\text{ ms}$ switching delay (
MIN_SWITCH_MS) to protect mechanical relay contacts.
For the distributed architecture connecting an Arduino TFT controller to an ESP32 or ESP8266:
+---------------------------------------------------+ +----------------------------------------------------+
| Arduino UNO / Mega 2560 | | ESP32 DevKit Module |
| (with 3.5" TFT Touchscreen Shield) | | (Extruder Master & Web Dashboard Server) |
| | | |
| Pin 0 (RX) <------------------------------------------------------------ GPIO 17 / TX2 (3.3V Direct UART Output) |
| Pin 1 (TX) ----[ 1kΩ ]---+----->---------------------------------------> GPIO 16 / RX2 (3.3V Shifted UART Input) |
| | | | |
| [2kΩ] | | GPIO 4 (D4) <--- DS18B20 Sensors (4.7kΩ pullup) |
| | | | GPIO 18 ---> SSR Zone 1 Heating Output |
| GND ---------------------+--------------------------------------------> GPIO 19 ---> SSR Zone 2 Heating Output |
| | | GPIO 21 ---> SSR Zone 3 Heating Output |
| | | GPIO 22 ---> Motor Enable / Run Driver |
| | | GPIO 23 ---> Motor Speed PWM / DAC Driver |
| | | GND <--- Common Ground Connection |
+---------------------------------------------------+ +----------------------------------------------------+When using Arduino_Mega2560_TFT_UART_Controller:
The 3.5" MCUFRIEND LCD Touchscreen features an industrial dark UI with 5 main navigation tabs:
┌─────────────────────────────────────────────────────────────────────────────┐
│ [ DASH ] [ ZONES ] [ MOTOR ] [ LOGS ] [ ALARM ] │
├────────────────────────────────────────┬────────────────────────────────────┤
│ ZONE 1 & 2 HEATING │ RELAY OUTPUTS │
│ ZONE 1 (PT100 A8 LIVE): 190.2 / 190C │ * Z1: HEATING │
│ ZONE 2 (PT100 A9 LIVE): 200.1 / 200C │ * Z2: HEATING │
│ ZONE 3 (CLOSED/INACTIVE): OFF/--.- C ├────────────────────────────────────┤
│ │ MOTOR SPEED: 45 RPM │
├────────────────────────────────────────┴────────────────────────────────────┤
│ SYSTEM: STARTED | HEATING ACTIVE ON Z1 & Z2 │
├────────────────────────────────────────┬────────────────────────────────────┤
│ [ START EXTRUSION ] │ [ STOP EXTRUSION ] │
├────────────────────────────────────────┴────────────────────────────────────┤
│ EXTRUDER: STARTED RELAYS: HEATING Z1: 190.2C Z2: 200.1C [MANUAL SYNC]│
└─────────────────────────────────────────────────────────────────────────────┘[ DASH ] (Real-Time Overview):
[ ZONES ] (Temperature Profile Tuner):
[ MOTOR ] (Material Presets & RPM Control):
[ LOGS ] (System Diagnostics):
[ ALARM ] (Safety Interlock Management):
tft.begin(0x9481) with low-level register write (0x36 MADCTL = 0xE8) to force proper 180° orientation without mirror distortion.The controller streams live system telemetry over USB Serial (9600 baud) in clean CSV format for real-time analysis, charting, and Excel logging.
Timestamp_s,Zone1_ADC,Zone1_Temp_C,Zone1_Set_C,Zone2_ADC,Zone2_Temp_C,Zone2_Set_C,Relay_Z1,Relay_Z2,Motor_RPM,Status,Alarm_Code
14.8,105.2,37.58,190.0,105.8,39.35,200.0,1,1,45,RUNNING,0serial_csv_logger.py):
telemetry_logs/telemetry_YYYYMMDD_HHMMSS.csv with instant disk flush (zero data loss if interrupted).telemetry_logs/latest_telemetry.csv.log_data.ps1):
log_data.bat):
When running the distributed dual-MCU architecture:
>TEL:Z1T:<val>,Z1S:<set>,Z2T:<val>,Z2S:<set>,Z3T:<val>,Z3S:<set>,Z1V:<volts>,Z2V:<volts>,Z3V:<volts>,RPM:<val>,MODE:<mode>,RUN:<0|1>,ALM:<code/0>>TEL:Z1T:190.2,Z1S:190,Z2T:200.1,Z2S:200,Z3T:210.0,Z3S:210,Z1V:220,Z2V:220,Z3V:0,RPM:45,MODE:PLA,RUN:1,ALM:0>CMD:START_EXTRUDE>CMD:STOP_EXTRUDE>CMD:SET_ZONES:Z1:190,Z2:200,Z3:210>CMD:SET_MODE:PLA>CMD:SET_RPM:45>CMD:ACK_ALARMWhen using ESP32_TempSensor_UART or NodeMCU_ESP8266_TempSensor_UART:
ESP32-Extruder-Link (or ESP8266-Extruder-Link)12345678http://192.168.4.1.PCB_KiCad/ExtruderController):
ExtruderController.kicad_sch) and 2-layer PCB layout (ExtruderController.kicad_pcb).PCB_KiCad/KICAD_DESIGN_GUIDE.md.PROTEUS_SCHEMATIC_GUIDE.md):
PROTEUS_SCHEMATIC_GUIDE.md.├── Arduino_Mega2560_Standalone_Controller/ # FLAGSHIP: 4-Relay, 4-Heater, 2-PT100 standalone firmware
│ ├── Arduino_Mega2560_Standalone_Controller.ino
│ ├── README.md
│ └── log_data.bat
├── Arduino_Mega2560_PT100_Test_Bench/ # PT100 RTD sensor verification test bench
│ └── Arduino_Mega2560_PT100_Test_Bench.ino
├── Arduino_Mega2560_TFT_UART_Controller/ # Mega TFT interface using Serial3 (Pins 14/15)
│ ├── Arduino_Mega2560_TFT_UART_Controller.ino
│ └── README.md
├── Arduino_TFT_UART_Controller/ # Universal Arduino Uno/Mega TFT UART client
│ └── Arduino_TFT_UART_Controller.ino
├── ESP32_TempSensor_UART/ # ESP32 master firmware & Web Dashboard server
│ └── ESP32_TempSensor_UART.ino
├── NodeMCU_ESP8266_TempSensor_UART/ # ESP8266 master firmware & Web Dashboard server
│ └── NodeMCU_ESP8266_TempSensor_UART.ino
├── Arduino_Mega2560_Demo_1Heater_DS18B20/ # Single-relay & DS18B20 bench test
│ ├── Arduino_Mega2560_Demo_1Heater_DS18B20.ino
│ └── README.md
├── PCB_KiCad/ # KiCad EDA schematic & PCB design files
│ ├── ExtruderController/
│ │ ├── ExtruderController.kicad_pro
│ │ ├── ExtruderController.kicad_sch
│ │ └── ExtruderController.kicad_pcb
│ └── KICAD_DESIGN_GUIDE.mdMCUFRIEND_kbvAdafruit GFX LibraryTouchScreenArduino_Mega2560_Standalone_Controller.ino and click Upload.log_data.bat to start capturing live CSV telemetry to your PC.ESP32_TempSensor_UART.ino onto your ESP32 board.Arduino_TFT_UART_Controller.ino onto your Arduino Uno or Mega (disconnect Pin 0 RX wire while uploading).ESP32-Extruder-Link (Password: 12345678) and navigate to http://192.168.4.1.| Qty | Value | Footprint | References |
|---|---|---|---|
| 1 | 100nF | Capacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mm | C1 |
| 1 | 10uF | Capacitor_THT:CP_Radial_D5.0mm_P2.50mm | C2 |
| 1 | 1k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R1 |
| 1 | 2k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R2 |
| 1 | 330 | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R4 |
| 1 | 4.7k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R3 |
| 1 | DC_5V_IN | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_Horizontal | J6 |
| 1 | DS18B20 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-3-5.08_1x03_P5.08mm_Horizontal | J1 |
| 1 | MOTOR_CTRL | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-3-5.08_1x03_P5.08mm_Horizontal | J5 |
| 1 | PWR_LED | LED_THT:LED_D5.0mm | D1 |
| 1 | SSR_Z1 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_Horizontal | J2 |
| 1 | SSR_Z2 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_Horizontal | J3 |
| 1 | SSR_Z3 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_Horizontal | J4 |
The 13 most common of 17 parts.

UtilitechAS/amsreader-firmware
ESP8266 and ESP32 compatible firmware to read, interpret and publish data to MQTT from smart electrical meters, both DLMS and DSMR is supported

pablozg/freeds
Derivador de energía solar excedente creado por Pablo Zerón, Diseño PCB por Amcalo, Tester original por Aeizoon, Wiki por Zoilo Mora

AK-Homberger/NMEA2000WifiGateway-with-ESP32
This repository shows how to build a NMEA2000 WiFi Gateway with voltage and temperature alarms.

fehlfarbe/arduino-motorfocus
Arduino motorfocus with moonlite protocol for telescopes



felixwittwer/homeassistant_automaic_greenhouse
A cool Project to make your greenhouse smart. What about automaic irrigation and collecting enviromental data right from your garden.

Neumi/fastLOGIC
An affordable Arduino-based board designed for straightforward (industrial) logic control, ideal for building small-scale automation and control solutions.
It measures 100 × 80 mm and has 2 copper layers, 1.6 mm thick.
17 parts, built around the DS18B20. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the lokeshtekade77-source/FILAMENT_EXTRUDER repository on GitHub, at the commit this page was made from: the board is PCB_KiCad/ExtruderController/ExtruderController.kicad_pcb and its schematic PCB_KiCad/ExtruderController/ExtruderController.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository states no licence, so its author keeps all rights: ask lokeshtekade77-source before reusing the design.