bartmarchand Skrevet November 21, 2019 Rapporter Share Skrevet November 21, 2019 Hello, Is there any information about connection inputmodules and outputmodules to an arduino? I want to replace the controller but need to keep the input and outputmodules. The idea was to program a modbus to ihc converter (or mqtt or another protocol). The modbus part of the arduino is easy, the ihc not. Nowack 1 Citér Link til kommentar Del på andre sites More sharing options...
0 niklascp Besvaret November 21, 2019 Rapporter Share Besvaret November 21, 2019 Hi, have a look at https://www.dingus.dk/arduinoihc/ Citér Link til kommentar Del på andre sites More sharing options...
0 bartmarchand Besvaret November 22, 2019 Forfatter Rapporter Share Besvaret November 22, 2019 Yes, I know the work of Dingus. He's creating Arduino input and output modules. I want to do the opposite, controlling the output modules with an arduino. Citér Link til kommentar Del på andre sites More sharing options...
0 Jonas Tehler Besvaret November 22, 2019 Rapporter Share Besvaret November 22, 2019 The communication protocol is the same. You could use the code from ArduinoIHC. IHCInput to listen to input modules and IHCOutput to talk to output modules. I think the only problem is that the IHCInput class only listens to the first 8 bits since it is designed to emulate an output module with just 8 outputs. Change that to 16 bits and it should work as a controller. I'm trying to do the same thing as you and I have a working prototype for listening to my input modules and will start working on output modules next. Citér Link til kommentar Del på andre sites More sharing options...
0 bartmarchand Besvaret November 25, 2019 Forfatter Rapporter Share Besvaret November 25, 2019 I've succesfully created a modbus to IHC output converter, with the Basicoutput example. Now I want to do the same for the input module, with the Basicinput example. The Basicinput code is loaded into an arduino, dataline from the input module connected to the arduino. I get no readings from it when I change an input on the inputmodule. Any tips? I think I'm doing something wrong. I'm sure the inputmodule works. Citér Link til kommentar Del på andre sites More sharing options...
0 Lars Jacobsen Besvaret November 25, 2019 Rapporter Share Besvaret November 25, 2019 You Can check by connecting input module directly to output module without anything between. Them it should work just as a releay Citér Link til kommentar Del på andre sites More sharing options...
0 bartmarchand Besvaret November 26, 2019 Forfatter Rapporter Share Besvaret November 26, 2019 So strange: IHC inputmodule connected to IHC outputmodule: OK Arduino BasicOutput connected to IHC outputmodule: OK Arduino BasicOutput connected to Arduino BasicInput: OK IHC inputmodule connected to Arduino Basicinput: NOK I'm lost... Citér Link til kommentar Del på andre sites More sharing options...
0 bartmarchand Besvaret November 26, 2019 Forfatter Rapporter Share Besvaret November 26, 2019 I did some scope measurements, signal is exactly the same. Citér Link til kommentar Del på andre sites More sharing options...
0 Marius K. Bjerregaard Besvaret October 12, 2023 Rapporter Share Besvaret October 12, 2023 . Citér Link til kommentar Del på andre sites More sharing options...
Spørgsmål
bartmarchand
Hello,
Is there any information about connection inputmodules and outputmodules to an arduino?
I want to replace the controller but need to keep the input and outputmodules.
The idea was to program a modbus to ihc converter (or mqtt or another protocol). The modbus part of the arduino is easy, the ihc not.
Link til kommentar
Del på andre sites
8 svar på dette spørgsmål
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.