Project Name: Modbus Remote I/O Board – Based on STM32F103C8T6 – V1.0
Project Author: NeoMR
Introduction
To consolidate newly learned embedded knowledge, a handsome guy crafted a industrial control Modbus remote I/O board!
This project is fully open source and relatively simple! It is meant for sharing and learning together!
This project can be used for host communication and remote control.
01Project Features/Highlights?”1
Communication Interfaces: RS485, Ethernet, TTL Serial, IIC, with DI, DO, AI
2
Main Control Chip: STM32F103C8T6
2
Power Supply: DC24V
2
Input: 8-channel isolated digital input
2
Output: 6-channel isolated digital output
2
Analog Input: 4-channel 16-bit analog input (this function’s program part is not yet implemented)
2
Communication Parameter Settings: Set station number and baud rate via DIP switch, enable and disable 120-ohm termination resistor
2
Working Indicators: One ERR indicator light, one RUN indicator light
2
Communication Protocols: ModbusRTU, ModbusTCP
2
Development Environment: Visual Studio Code
2
Development Framework: PlatformIO + Arduino
2
Software Architecture: FreeRTOS + Watchdog
2
Open Source Program: Refer to Chapter 4 to visit the open-source website, the open-source attachment includes the HEX program file
2
Debugging Software: Connect to the module via RS485 or network, tools are in the open-source attachment
02Design Diagrams”
External Interfaces
Power Circuit
Isolated Input
Isolated Output
RS485 to TTL
Analog Input Module
Running Indicators
PCB Diagram
External Interfaces
Scroll up and down to view all design diagrams
03Testing Tutorial”
①Test using ModbusPoll software
② Connect the I/O board using both ModbusRTU and ModbusTCP
③Change the IP address using ModbusPoll software
For example, to set the IP address to 192.168.10.5, do the following:
-
Use a computer calculator to calculate hexadecimal, resulting in C0.A8.0A,05.
-
Set IP: Address 9 to 0xC0A8, Address 8 to 0x0A05.
-
Save parameters: Set Address 3 to 10.
-
Restart: Set Address 3 to 30.
-
Configuration complete, the I/O board’s IP address has been modified.
④ Use debugging tool software
The debugging tool software is included in the attachments, refer to Chapter 4 to visit the open-source website.
04Open Source Website”
This project is fully open source!
——Want to replicate ? Want to give a thumbs up to the author ? You can copy the open-source URL to visit the original text.
Open Source URL: https://oshwhub.com/18080445486/yuan-cheng-io-ji-yu-stm32f103c8t6
Scan to enter the open-source original text, or click the end of the article 【Read Original】 to go directly to the original text.
*This article is a reprint of user creations from the “Lichuang Open Source Hardware Platform”. If there is any infringement, please contact for deletion.
If you like it, give me a thumbs up!Click here to view the original project