RPI Projects

TripWire: https://projects.raspberrypi.org/en/projects/laser-tripwire

LDR intro

Motion Sensor Intro

Can you light the LED by using the LDR level?

from gpiozero import LightSensor, LED
from time import sleep
led = LED(17)
ldr = LightSensor(4)
while True:
    print(ldr.value)
    if (ldr.value < 0.7):
     led.on()
    elif (ldr.value >= 0.7):
     led.off()

Camera


Explorer HAT

Sense Hat

No comments:

Post a Comment