RaspberryPi3, Python and Circuits 2

Use your RaspberryPi 3 with the excellent electronics kit fromĀ Amazon

The secondĀ circuit to complete is this Light Dependent Resistor (photoresistor) circuit:

lightleveldetector_bb

As with the traffic light circuit, you will need the Python3 code below.

Think about the threshold that you will need for defining when “daytime” has begun.

What else could you adapt this circuit to do?

screen-shot-2016-10-29-at-10-29-31

RaspberryPi3, Python and Circuits 1

Use your RaspberryPi 3 with the excellent electronics kit from Amazon

The first circuit to complete is this traffic light:

traffic-light_bb_finished

Use with the following Python3 code. Don’t forget you will need to be running with sudo access to use the GPIO pins:

For a challenge, you can refine using a procedure that can be called from within a loop, as well as adding a pedestrian crossing red and green indicator.

 

traffic