arduino-mqtt
ArduinoModbus
arduino-mqtt | ArduinoModbus | |
---|---|---|
3 | 2 | |
974 | 236 | |
- | 0.8% | |
5.3 | 6.1 | |
about 2 months ago | 29 days ago | |
C | C++ | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
arduino-mqtt
- USR-TCP232-T2 and MQTT
-
15 years Modicon for my day job. Arduino for my escape rooms. Building a new room and decided to combine them and add open source. So excited! Anyone else use this?
ModbusTCP and MQTT are supported via ethernet. There are a handful of different libraries for each, but I've personally used those.
-
WIFI BUS CONTOL NOOB QUESTION
https://randomnerdtutorials.com/esp32-mqtt-publish-subscribe-arduino-ide/ https://github.com/256dpi/arduino-mqtt
ArduinoModbus
-
Arduino Uno as Modbus RTU Slave with MKR 485 Shield - Not Communicating with PC - Please Help ;
Question: Can anyone assist me figure out the wiring between an Arduino Uno and MKR 485 Shield, and the shield and my PC? All related links are at the bottom of the post. Background: I am trying to use an Uno as a Modbus Slave, and cannot get my PC to read the holding registers (40001-40005). The code generates the registers and writes the values 1-5 to the corresponding holding registers which are printed to the serial monitor as shown below: IDE Screen Capture #include // ArduinoModbus depends on the ArduinoRS485 library #include long holdingRegisterArray[] = {0,0,0,0,0}; // initialize 5 long array for holding registers void setup() { // start the Modbus RTU server, with (slave) id 1 ⠀ if (!ModbusRTUServer.begin(1, 9600)) { Serial.println("Failed to start Modbus RTU Server!"); while (1); } delay(10000); // configure a single coil at address 0x00 ModbusRTUServer.configureHoldingRegisters(0x01, 5); ModbusRTUServer.holdingRegisterWrite(0x01, 1); ModbusRTUServer.holdingRegisterWrite(0x02, 2); ModbusRTUServer.holdingRegisterWrite(0x03, 3); ModbusRTUServer.holdingRegisterWrite(0x04, 4); ModbusRTUServer.holdingRegisterWrite(0x05, 5); } void loop() { // poll for Modbus RTU requests ModbusRTUServer.poll(); holdingRegisterArray[0] = ModbusRTUServer.holdingRegisterRead(0x01); holdingRegisterArray[1] = ModbusRTUServer.holdingRegisterRead(0x02); holdingRegisterArray[2] = ModbusRTUServer.holdingRegisterRead(0x03); holdingRegisterArray[3] = ModbusRTUServer.holdingRegisterRead(0x04); holdingRegisterArray[4] = ModbusRTUServer.holdingRegisterRead(0x05); for(int i = 0; i < 5; i++) { Serial.println(holdingRegisterArray[i]); } } When trying to read registers 40001 - 40005 I get a the following error in ModScan "** MODBUS Message TIME-OUT** as shown below: ModScan Screen Capture I believe I have a wiring issue, but can't seem to get the wiring squared away, any help would be greatly appreciated!! Currently the wiring is as follows: Current Wiring (Not Working) Current Wiring - Top View Current Wiring - Side of MKR 485 Shield Current Wiring - Side of MKR 485 Shield This is my best understanding of the wiring based on the following schematics: MKR 485 Shield Schematic Uno Schematic DT-9003 USB-Serial Converter Links: MKR 485 Shield Page MKR 485 Shield Schematic Uno Schematic MAX3157 Datasheet DT-9003 USB-Serial Converter Manual ArduinoModbus Library ArduinoRS485 Library
-
15 years Modicon for my day job. Arduino for my escape rooms. Building a new room and decided to combine them and add open source. So excited! Anyone else use this?
ModbusTCP and MQTT are supported via ethernet. There are a handful of different libraries for each, but I've personally used those.
What are some alternatives?
openevse_esp32_firmware - OpenEVSE V4 WiFi gateway using ESP32
ArduinoRS485
pubsubclient - A client library for the Arduino Ethernet Shield that provides support for MQTT.
Sonoff-Tasmota - Alternative firmware for ESP8266 with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at [Moved to: https://github.com/arendst/Tasmota]
pyrinas-zephyr - Open companion cloud client to Pyrinas Server for the nRF9160 Feather and Zephyr
Watchy - Watchy - An Open Source E-Ink Smartwatch
wasm3 - 🚀 A fast WebAssembly interpreter and the most universal WASM runtime
Adafruit_MQTT_Library - Arduino library for MQTT support
Tasmota - Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
Mongoose - Embedded Web Server
Unishox2 - Compression for Unicode short strings (works on arduino)
MQTTSerialPrinter - Arduino library that allows you to print to both serial and MQTT at the same time