|
|
@ -9,11 +9,13 @@ Install python3-gpiozero |
|
|
|
|
|
|
|
`$ sudo apt update && sudo apt install python3-gpiozero` |
|
|
|
|
|
|
|
##analogSensor.py |
|
|
|
All of these examples are based on [the excellent documentation of the gpiozero library](https://gpiozero.readthedocs.io/en/stable/index.html) |
|
|
|
|
|
|
|
## analogSensor.py |
|
|
|
|
|
|
|
How to read analog values using a MCP3008 ADC (analog to digital converter) |
|
|
|
|
|
|
|
##distanceSensor.py |
|
|
|
## distanceSensor.py |
|
|
|
|
|
|
|
Using HC-SRO4 distance sensor |
|
|
|
|
|
|
@ -22,7 +24,7 @@ Hardware required: |
|
|
|
* 330 & 470 ohm resistors |
|
|
|
* HC-SRO4 Distance sensor |
|
|
|
|
|
|
|
##ldrLed.py |
|
|
|
## ldrLed.py |
|
|
|
|
|
|
|
Using an LDR to set the values of an LED, also smoothing and constraining sensor values in the process |
|
|
|
|
|
|
|