Skip to content

Commit 8922d1d

Browse files
committed
update
1 parent 5910fba commit 8922d1d

File tree

6 files changed

+9
-16
lines changed

6 files changed

+9
-16
lines changed

buzzer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Set up the circuit as shown below.
2222
1. Add a line below your creation of `button` and `lights` to add a `Buzzer` object:
2323

2424
```python
25-
buzzer = Buzzer(15)
25+
buzzer = Buzzer(17)
2626
```
2727

2828
1. In gpio zero, a `Buzzer` works exactly like an `LED`, so try adding a `buzzer.on()` and `buzzer.off()` into your loop:

hardware.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

hardware.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
- name: 1 x Tactile button
1010
img: tactile-push-button
1111
- name: 3 x LEDs
12-
img: led.png
12+
img: led
1313
- name: Ultrasonic Distance Sensor
14-
img: ultrasonic-distance-sensor.png
14+
img: ultrasonic-distance-sensor
1515
- name: Passive Infrared Motion Sensor
16-
img: pir.png
17-
- name: LDR
18-
img: ldr.png
16+
img: pir
17+
- name: Light Dependent Resistor
18+
img: ldr

ldr.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# An LDR
1+
# A Light Dependent Resistor (LDR)
22

33
## Analogue inputs
44

@@ -24,7 +24,7 @@ By putting a resistor in series with the capacitor, you can slow the speed at wh
2424

2525
If you time how long it takes the capacitor's voltage to get over 1.8V (or be *on*), you can work out the resistance of the component in series with it.
2626

27-
## Light-dependent resistors (LDRs)
27+
## Light-dependent resistors
2828

2929
An LDR (sometimes called a photocell) is a special type of resistor.
3030

trafficlights.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Traffic Lights
22

3-
![cover](images/traffic-lights.png)
4-
53
For this worksheet you'll need a breadboard, three LEDs, a button, a buzzer, and the necessary jumper cables and resistors. You can purchase these individually, or get eveything you need in [CamJam Kit 1](https://thepihut.com/products/camjam-edukit)
64

75
## Wiring

worksheet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,6 @@ There are lots of other things you can control or monitor with your Raspberry Pi
214214

215215
[Using an Active Buzzer](buzzer.md)
216216
[Making Traffic Lights](trafficlights.md)
217-
[Using an LDR](ldr.md)
217+
[Using a Light Dependent Resistor](ldr.md)
218218
[Using a PIR Sensor](pir.md)
219219
[Using an ultrasonic distance sensor](distance.md)

0 commit comments

Comments
 (0)