( KaTT | 2019. 11. 12., k – 01:39 )

"Digital Inputs

Up to 6 pins can be used as digital inputs, and are wired, through a protection network, to 6 GPIO pins of the Raspberry Pi. Applying a positive voltage (up to 40Vdc) to these pins will bring the corresponding GPIO pin to high. Three of the digital input pins are shared with open collector outputs, while the remaining three can be reconfigured as TTL I/O lines. All inputs are protected by a network of resistors and Schottky barrier diodes to ensure that the input pins of the Raspberry Pi never receive voltages significantly higher than 3V or lower than 0V."

Szóval az RPI-re vagy ennek az eszköznek a digitális bementére rákötök egy ilyen optocsatolót:

2-channel Opto-isolated Relay Module Low Trigger 5v Arduino / Raspberry Pi

" Allows your Arduino, Raspberry PI or MCU to control appliances and other high current usage devices.
Opto isolated provides 5000V isolation from control signal to load, 1500V isolation between low voltage and the high voltage relay contacts
LED indication of active relay channel and Diode protected transistor relay driver The relay is rated at 5VDC for the coil.
The relay contacts are rated at 10Amps at 250VAC, 10Amps at 125VAC, 10Amps at 30VDC and 10Amps at 28VDC
Separated power supplies input pins for relay coils (5V) and optic isolators (3.3V-5V). Which allow 3.3V optic isolator driving by Raspberry PI "

https://www.amazon.co.uk/2-channel-Opto-isolated-Trigger-Arduino-Raspbe…

Majd tudom érzékelni, hogy van-e átfolyó áram (1) vagy nincs (0), mint visszaadott érték?

A pseudo kapcsolási rajz így nézne ki, természetesen nem pontos bekötésekkel, hanem elméleti módon:

https://imgur.com/a/IKzS4M5

Mi szükséges még?