Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Has anybody experience with MODBUS to read temp sensors?
#21
(01-14-2026, 02:00 PM)Petr Wrote: The program reads temperatures. That's a clear reason to go buy a beer  Big Grin   Thank you for the information. If you need anything else, write it here, please.
Thank You Petr!!!
While running Your (USB-connected) SensorProgram, I did also a test with the USB-using-relaisbord,
this to see if both software did not came in conflict. And: Both stay working perfect!
I'm trying to store the temperatures in a little global array:
Dim shared MaxSensors : MaxSensors% = 4  (in this case 4 sensors...).  or possible also CONST MaxSensors = 4
Dim shared Temp!(MaxSensors%) ... and store the T of each sensor in his variable.
If I'm so far I publish it here on the forum.
---------------------------------------------------------------------------
Have you solved the switching of outputs according to temperatures with the second board? What is the current load capacity of those relays, what is the power consumption of the heaters, will you power it directly from the second board, or will you use contactors or other auxiliary relays for higher current? Have you solved this yet?
Yes, I did this already to switch ON OFF an Induction-heater-plate of 2000 Watt.
I use this big one to start heating or boiling water in a big vessel.
Thereafter I switch to 480 and 750 Watt heaterpads to keep the temperature constant (p.e. for the maishing proces in beer fabrication).
(Rem: Yes it are the same heaterpads one use in printer devices...).
To switch the power of bigger heater elements the relais contacts are to weak!
So I use SSR-40 DA modules (Aliexpress) to switch heater-elements ON and OFF.
Input: 3 - 32 VDC
Output: 24 - 380 VAC
I used them Input directly connected to GPIO pins of a RaspberryPI
When the relais is on You can see burning a red LED.


[Image: SSR-aliexpress.png]



Warning for everybody who want also do this:
Aliexpress sellers announce always mention the peak current or power values of these SSR's
So always buy and use an SSR with at least double the current or power you want to drive, and use also the aluminium heatsink. (I even use little PC ventilators to keep T below 40°C)For my safety I even use a separate differential and all metal parts of my installation are grounded.

That's it for the non-QB64 electrical info, but for safety reasons I tried to answer more comprehensively, for which I apologize. There's no point in creating software that will cause the installation to burn down afterward, right?
---------------------------------------------------------------------------

Greatings, and thank You very much for Your help.
Rudy M
Reply


Messages In This Thread
RE: Has anybody experience with MODBUS to read temp sensors? - by Rudy M - 01-14-2026, 03:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question How to read Google Calendar events? Ikerkaz 10 1,882 07-10-2023, 11:06 AM
Last Post: Ultraman
  SHELL creates unicode file, can't read correctly with LINE INPUT thesolarcode 3 1,248 05-06-2023, 09:41 PM
Last Post: thesolarcode
  Read / Allocate Cores dISP 10 2,231 04-25-2023, 12:23 PM
Last Post: dISP
  Can images be read from a file into an array? PhilOfPerth 11 2,560 02-17-2023, 03:31 AM
Last Post: TerryRitchie

Forum Jump:


Users browsing this thread: 1 Guest(s)