Joy-it RB-P-XPLR-SET handleiding

37 pagina's
PDF beschikbaar

Handleiding

Je bekijkt pagina 9 van 37
4.3 RELAY
Relays are some of the oldest electromechanical components and function as electrically controlled switches. With a small input voltage and low current, a
large electrical load can be switched on and o at the output. When the relay switches through, the red LED also lights up. You can insert stripped cable ends
into the terminal socket (by pressing down the orange lever) to use the three connections.
The relay is connected to GPIO pin GP28.
# Load libraries
from machine import Pin, PWM
from utime import sleep
relayPin = 28
# Initialize GPIOs
relay = Pin(relayPin, Pin.OUT)
while True:
# Toggle Relay
relay.on()
sleep(1)
relay.off()
sleep(1)
9

Bekijk gratis de handleiding van Joy-it RB-P-XPLR-SET, stel vragen en lees de antwoorden op veelvoorkomende problemen, of gebruik onze assistent om sneller informatie in de handleiding te vinden of uitleg te krijgen over specifieke functies.

Productinformatie

MerkJoy-it
ModelRB-P-XPLR-SET
CategorieNiet gecategoriseerd
TaalNederlands
Grootte21690 MB