📄️ Functions and Scope
Functions are reusable blocks of code which are fundamental for making your sketches more maintainable and readable. Essentially, a function is a block of code which performs a specific task.
📄️ Using Potentiometers
A potentiometer is essentially a variable resistor, which means turning the knob changes its resistance, allowing us to control the output voltage. Potentiometers have 3 pins: two power supply pins (5V and GND), and one pin that connects an analog input pin on your Arduino board.
📄️ Buzzers
Buzzers are an easy and effective way to bring in sound into your Arduino projects. We must understand that there are 2 different types of buzzers: active buzzers and passive buzzers.
📄️ The LDR
The LDR, or photoresistor, is a light-sensitive resistor which can be used to measure light intensity and therefore build projects which detect light.
📄️ Project: Theremin
Projects are intended to consolidate the knowledge you have absorbed in previous lessons. This one will help you apply what you've learned about LDRs and buzzers.