www.joy-it.net
Pascalstr. 8 47506 Neukirchen-Vluyn
FIELD-EFFECT TRANSISTOR FOR
CONTROLLING HIGHER VOLTAGES
COM-Mosfet
1. GENERAL INFORMATION
Dear costumer,
thank you very much for choosing our product.
In following, we will introduce you to what to observe while starting up
and using this product.
Should you encounter any unexpected problems during use, please do
not hesitate to contact us.
The maximum permissible input voltage is 36 V.
The maximum permissible operating current is 2 A.
Never exceed these limits.
www.joy-it.net
Pascalstr. 8 47506 Neukirchen-Vluyn
2. COMMISSIONING WITH THE RASPBERRY PI
Raspberry Pi Mosfet
GND (Pin 6) GND (Pin1)
3v3 (Pin 1) VCC (Pin2)
NC NC (Pin3)
BCM23 (Pin 16) Signal (Pin4)
Wiring:
Code example:
If the signal pin is set to high, the output is activated.
In the following code example, the output is activated every 15 seconds for 10 seconds.
Vin
- +
- +
Vout
from time import sleep
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BOARD)
Signal_Pin = 16
GPIO.setup(Signal_Pin, GPIO.OUT)
try:
while True:
GPIO.output(Signal_Pin, GPIO.HIGH)
print ("Output enabled")
sleep (10)
GPIO.output(Signal_Pin, GPIO.LOW)
print ("Output disabled")
sleep (5)
except KeyboardInterrupt:
GPIO.cleanup()