I would like to read and write 24V digital IO for an external device. I found the Load module that could fit my need for the Output but I don’t know how to handle the inputs. Is there any off-the-shelf module that I can use for Raptor? And I would be more happy if only one additional device can handle the IO together.
I2C interface is free to use. The device below is more or less fine, but I need your suggestions and advice:
@ durnek60 - Those devices look like they will work. However, if you need high speed or an Input to fire an interrupt then they won’t work. You will have the overhead of polling the inputs over I2C.
There are not a whole lot of 24Vdc industrial type offerings out there yet for .NETMF. Hopefully that will change with some time. I have made a shield for the Cerbuino that has 24Vdc I/O but it’s not isolated. I am waiting for bare boards to arrive so I can test my updated version. https://www.ghielectronics.com/community/forum/topic?id=16885
I chose not to isolate I/O because of cost and that in my applications the I/O is powered from the same 24Vdc that powers the Cerbuino.
@ durnek60 - Correction.
I do see that they have an interrupt line that comes back from the I2C chip. This will help a lot if you need to get a notification of Input changes. Still not as fast as local, on chip I/O, but better than polling.
@ durnek60 - I am not aware of any upcoming modules from GHI. My guess would be no, they just did a major revamp of their catalog that actually removed a lot of low selling modules.
Depending on your application another option would be to use MODBUS, either RS485 or Ethernet. There are a lot of companies that sell MODBUS enabled I/O.
Option 2 would be to use 24Vdc relays for the inputs. Your Input device would control the coil and the contacts would switch the 3.3Vdc or 5Vdc inputs.
There are plenty of rs485 interface devices that provide all kinds of isolated inputs and outputs, including connecting 24v. Any these would be a perfect solution.