I am new to Arduino so just getting used to Arduino IDE and coding.
I have a little project and i need some help to code it, here is what i am trying to achieve:-
Connect a DS18B20 to a esp8266 and use as a Modbus slave
Using the Arduino Modbus library, store the value in to a register every 10 seconds
so that the registers can be read by another device (not arduino or esp8266).
I have the code that allows me to read the data coming from the DS18B20 and i can see this on the serial monitor.
Can somebody help me with the code that writes the values into a register so that they can be read by a different device please.
I am happy to offer some money if the project works.
I am using a Dallas DS18B20 temperature sensor and have the output connected to pin 6 of my arduino uno. I want to read the value every 5 seconds, convert it into Celsius and then store it in register 0.
My Arduino needs to be configured as a slave so that it appears to be a Modbus device that any master can read.
I am trying to join together two sketches:-
1 - Modbus RTU Slave, Simple Modbus Slave example
2 - Onewire, DS18x20 Temperature
I don't know too much about Modbus so if there is anybody out there who can help i would be very much appreciated and willing to donate some funds for a successful sketch.
Post an annotated schematic (the language of electronics) of what you have and how you have wired it. You have not given enough information to determine if your project is doable as you want it.
You’ve started four topics on virtually the same subject and didn’t receive any help because you don’t seem to want to adhere to the forum guidelines. Do you really expect the results to be any different this time?
not expected or required but if you feel compelled then please donate to Arduino.cc to keep this lovely place alive..
didn't notice this was in paid section, maybe someone will offer a proper solution..
otherwise of course, I will try to help if I can..
recommend you get a 485 adapter for your pc if you haven't already..
there's a test app in my git.. Modbus Test App
then you can use your pc to test..
Modbus stuff should fly, not sure of the sensor..
I did read through the lib to assemble what I wrote..