https://github.com/cbalint13/tinnymodbus
RS485 ModBus tiny multi-sensor module
https://github.com/cbalint13/tinnymodbus
1wire adc attiny i2c modbus rs485 sensors sensors-attached
Last synced: about 1 year ago
JSON representation
RS485 ModBus tiny multi-sensor module
- Host: GitHub
- URL: https://github.com/cbalint13/tinnymodbus
- Owner: cbalint13
- License: other
- Created: 2018-02-08T12:05:52.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-01-14T14:44:22.000Z (over 2 years ago)
- Last Synced: 2024-01-15T00:38:49.362Z (over 2 years ago)
- Topics: 1wire, adc, attiny, i2c, modbus, rs485, sensors, sensors-attached
- Language: C
- Homepage:
- Size: 1.55 MB
- Stars: 91
- Watchers: 17
- Forks: 28
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TINNYMODBUS (ModBus tiny multi-sensor module)
TinnyModBus is a very small 11x26mm reconfigurable atmel attiny85 mcu based micro-module that speaks modbus over rs485 two wires. It collects measurements locally from large variety of implemented sensors. It can be reprogrammed right on its own rs485 via it's own bootloader.

> Main specs
- Size is only **11x26 mm** including **screw sockets**
- Can speak **modbus** with several sensors attached, uses a max487 to communicate
- Have it's own **500mA** budget, **ESD** protected **rs485** lines, and **reverse-polarity** protection
- Can read attached sensor data over **1wire**, **i2c**, **spi**, but also could do **gpio** or **adc**
- Has its own **bootloader** that speaks modbus and can be reprogrammed right on rs485 wires
- Internal IC metrics like Vcc voltage and SOIC8 temperature are available
- It is designed to cost less than **2 USD**
> Wiring of TinnyModBus module
Use 4 wires (ideal twisted):
- 2x @ 12/24V remote power
- 2x @ A,B rs485
Connects sensors:
- i2c (any from **/devs** drivers)
- 1wire (up to 32 18DS20 temperature sensors)
- or can do **gpio** or **adc**
- multiple **i2c & 1w** sensors can be **simultaneously** wired
```
>~~~~~~~~~~~~>--- GND --->|-|¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|SCK|>----- SCK ----> i2c/SCK sensor(s)
>~~~ <1.2km ~>--- 12/24V --->|+| TINNY MODULE |DAT|>----- DAT ----> 1wire/DAT or i2c/SDA sensor(s)
>~~~~~~~~~~~~>--- A --->|A| |+5V|>----- +5V ----> 500mA max for sensors(s)
>~~~~~~~~~~~~>--- B --->|B|__________________|GND|>----- GND ----> ground
```
ModBus detailed register description are in [MODBUS.md](https://github.com/cbalint13/tinnymodbus/blob/master/MODBUS.md).
Schematic, Printed Circuit Board, 3D layout are available on [CircuitMaker](https://workspace.circuitmaker.com/Projects/Details/Cristian-Balint/TinnyModbus), but can be also checked in **docs** folder.
Docs & usage scenario examples are in ```tools/examples/``` folder.
> BUILD
See [tools/docker](tools/docker) folder for easy build receipt.

