RevPI DIO - Inputs connection
Posted: 07 Oct 2017, 11:52
Hi all,
I have doing some tests with RevPi Core 3 and RevPI DIO. Great products.
So far, I have been able to build my own C++ example and read the inpus and write the outputs. For reading, I use the piControl object to read 2 bytes at offset 81.
I have a 24V power supply that powers up the Core (X4) and the DIO (X4 and X2), so GNDs are the same. All LEDs are green.
But I have a doubt about how to connect signals to the inputs.
- I connect OUT1 to IN1 with a wire. When I write "1" to OUT1, I instantly read the change in IN1. But if I disconnect the cable, the IN1 does not turn back to "0", why is that?
- If I connect IN1 to the 24V pin, or to the GND pin, the input does not change its value. Why is that?
My initial thought was that if I used a Power supply with common GND with the DIO X2, and I connected the V+ to any input, that input was going to change to "1". But it seems it does not work like that
More generally, how signals are connected to the inputs for the Core to be able to read its values?
Thank you very much!
I have doing some tests with RevPi Core 3 and RevPI DIO. Great products.
So far, I have been able to build my own C++ example and read the inpus and write the outputs. For reading, I use the piControl object to read 2 bytes at offset 81.
I have a 24V power supply that powers up the Core (X4) and the DIO (X4 and X2), so GNDs are the same. All LEDs are green.
But I have a doubt about how to connect signals to the inputs.
- I connect OUT1 to IN1 with a wire. When I write "1" to OUT1, I instantly read the change in IN1. But if I disconnect the cable, the IN1 does not turn back to "0", why is that?
- If I connect IN1 to the 24V pin, or to the GND pin, the input does not change its value. Why is that?
My initial thought was that if I used a Power supply with common GND with the DIO X2, and I connected the V+ to any input, that input was going to change to "1". But it seems it does not work like that
More generally, how signals are connected to the inputs for the Core to be able to read its values?
Thank you very much!