11/20/2018 10:27 AM | |
Joined: 6/25/2018 Last visit: 7/27/2023 Posts: 19 Rating: (2) |
Hi guys, I have connected different machine outputs to my IOT2000 Input/Output Module, and on Node-RED, I assigned the ports as per the documentation, so DI0 with D12, DI1 with D11, DI2 with D10. DI3 with D9, and DI4 with D4. Unfortunately I do not get anything on DI1, DI3 and DI4. I have tried that with several IOT2020, with several Input/Output modules, but the problem is still the same. For all those devices the configuration is as follows: mraav1.9.0 node-red-node-intel-gpio v0.0.6 Node-RED v0.19.5 The problem are not coming from the signal, I have inverted the wires, tried several machines, some offline test stations, and consistently those 3 inputs do not work, the 2 others works perfectly. The input signal are nice 24v signals. I also tried the iot2000 specific nodes from bergmanu [Here], but no difference, nothing is detected on those 3 input pins, and they sometims make node red crash, and when I activate the input I get a "lost connection to server reconnecting" and I can't reconnect, I have to restart the IOT2000. What can I try to solve this issue ? |
11/22/2018 10:42 AM | |
Joined: 12/12/2016 Last visit: 4/8/2024 Posts: 640 Rating: (60)
|
Hello, Remember that if you are using the intel_gpio package: You will get no reaction from the DIs on the I/O Shield because only GPIO 2 and 3 support interrupts. And GPIO 2 and 3 are not mapped on the I/O Shield. Imho the nodes for the I/O Shield seem a bit buggy and do not work for me on the IOT2020. I will have a look into the nodes to see what's going wrong, but for now please test this nodejs code in the attachment:
This will continuously read all DIs on your I/O-Shield. Make sure M0 is wired to something and your input voltage is >12V. Let me know if this works for you. If it doesn't, try bumping up the Gpio voltage to 5V with the jumper on the arduino shield. Kind regards! Attachmentread-di-test.zip (836 Downloads) |
11/29/2018 8:37 AM | |
Joined: 6/25/2018 Last visit: 7/27/2023 Posts: 19 Rating: (2) |
Hi dear community, Good news, I have it solved, and now it's working perfectly, no reading issues, you can redeploy as many times as you want without needing to restart the IOT2000... Here is the modified code:
I put the new archive, here, the LED works fine as well, in the coming weeks I will work on the other nodes, but I don't really need them for my project at the moment so I will treat that with a low priority. One comment regarding the UserLed, on the IOT2040 there are indeed 3 colors for the LED, but on the IOT2020 we only have green. Cheers, Antoine Attachmentnode-red-contrib-IoT2000-gpio.zip (1065 Downloads) |
Last edited by: abajolle at: 11/29/2018 10:37:32 AMInstall Instructions Added |
|
This contribution was helpful to5 thankful Users |
1/15/2020 11:23 PM | |
Joined: 3/25/2018 Last visit: 11/6/2024 Posts: 2 Rating: (0) |
abajolle's node works really well. I can now get all five digital inputs captured. Is there a node for Analog Input? |
Follow us on