Tilføj nemt lidt lys til dit projekt med dette hvide LED modul
Hvid LED
Denne komponent indeholder en hvid LED som vil lyse når den modtager en spænding via sit signal ben, og være slukket når der ikke modtages nogen spænding. Det er en høj effekts LED, så den lyser ret kraftigt.
Tekniske specifikationer
Operativ spænding | 3.3V - 5V DC |
Interface | Digital |
LED farve | Hvid |
Dimensioner | 34mm x 20mm x 11.5mm |
Vægt | 2.7g |
Kode Eksempel
from machine import Pin
import time
led = Pin(17, Pin.OUT)
while True:
led.value(1)
print("LED IS ON")
time.sleep(5)
led.value(0)
print("LED IS OFF")
time.sleep(10)
Pinout
Pinout
Nummer | Navn | Function |
---|---|---|
1 | G (GND) | Negativ forsyning |
2 | V (VCC) | Positiv forsyning |
3 | S (Signal) | Kontrol signal (digital) |
Hvordan fungerer den?
Referencer
Begynder guide til MicroPython: https://randomnerdtutorials.com/getting-started-micropython-esp32-esp8266/
Blink en LED: http://www.esp32learning.com/tutorials/micropython-and-esp32-blink-an-led.php
Dæmp LED med PWM: https://randomnerdtutorials.com/esp32-esp8266-pwm-micropython/
LED og knapper: https://wdi.centralesupelec.fr/boulanger/MicroPython/ESP32BE3
Inspiration og kommentarer
Er du faldet over links eller lignende, som kan være relevant for dine medstuderende så send os en mail på nini@kea.dk