First, we will set up the circuit, as follows:
Now, we will make the following connections:
Source pin |
Component pin |
Raspberry Pi pin 1 - 3.3V |
Breadboard + railing |
Raspberry Pi pin 6 - Ground |
Breadboard - railing |
Raspberry Pi pin 3 - GPIO 2 |
Temperature sensor signal pin |
Raspberry Pi pin 12 - GPIO 18 |
LED anode pin |
LED cathode pin |
Breadboard - railing |
Temperature sensor + pin |
Breadboard + railing |
Temperature sensor - pin |
Breadboard - railing |
Once this ...