Before you get this wired up, you'll need a few components!
Mainly you'll want a Light Dependent Resistor (almost any LDR should be fine, but here we use a Cadmium Sulphur [CDs] LDR), a resistor (to provide the other half of a voltage divider circuit), and a couple of wires (or Jumper Cables).
Have a look at the shopping list below, then check your existing components for any matching resistors / LDRs, or pickup a few from the store.
Parts
For this example, we are using an Adafruit ESP32-S2 TFT Feather.
This board is perfect for IoT projects as it includes all the features of a Feather main board: the comforting warmth of an ESP32-S2 WiFi microcontroller, and the crispness of a 240x135 pixel color TFT display. This feather comes with native USB and 4 MB flash + 2 MB of PSRAM, so it is perfect for use with CircuitPython, WipperSnapper, or Arduino with low-cost WiFi. Native USB means it can act like a keyboard or a disk drive. WiFi means it's awesome for IoT projects. And Feather means it works with the large community of Feather Wings for expandability.
However, you can use any WipperSnapper-compatible hardware with this tutorial. You will need to modify the pin location as a result since it won't match the Adafruit ESP32-S2 TFT Feather.
You will also need the following additional parts:
1 x Light Dependent Resistor
1 x 10K Ohm Resistor
You'll only want one resistor, but if you need them then here's a whole pack of 25:
3 x Male to Male Jumper Wires
Here's a nice bundle of 75 Male to Male jumper wires if you need some for your supplies...
1 x Prototyping Breadboard
Half size or above for the Feather footprint to still leave some prototyping space, maybe you want one with mounting holes, otherwise we have lots to choose from.
You will need to connect the following pins to the LDR and resistor:
- Feather GND to one leg of the 10k ohm resistor
- The second leg of the 10k ohm resistor to one leg of the photocell (LDR)
- Feather A5 to the same leg of the photocell as the 10k ohm resistor.
- Feather 3V to the second leg of the photocell
Note: Resistors are not polarized, so the 10K ohm resistor can be connected to the circuit in either direction.
Page last edited
Text editor powered by tinymce.