Electronics Unit Flashcards
DHT
Digital Humitidy and Temperature Sensor.
- Measure readings via electric signals
- Contain two metals that generate electric voltage or resistance when a temperature change occurs.
P (Pin) 1: VCC
P2: Data
P3: Not connected – doesn’t need to be connected at all.
P4: Ground
1-4 go from left to right.
Libraries:
- Needs DHT library
- Needs Adafruit Unified Sensor
Ultrasonic Distance Sensor
Ultrasound is high-pitched sound waves with frequencies higher than the audible limit of human hearing.
- Can report the range of objects from up to 13 feet away.
HOW IT WORKS:
- Emits high frequency sound, which finds an object, and bounces back to the module.
- The receiver (echo pin) receives this.
- The time between the transmission and the reception of the signal allows us to calculate the distance of an object.
Library:
- Needs HCSR04
PINS:
P1: VCC
P2: Trig
P3: Echo
P4: Ground
OLED VS. LED
- Offers rich colors, rich contrast, deep blacks, wide viewing angle, and low power and a fast response time.
- Older LED based screens use backlighting to illuminate their pixels, while OLED’s pixels actually produce their own light.
- OLEDs are emissive
- LEDs are transmissive
OLED pins:
- Ground
- VCC
- SCL (serial clock)
synchronizing communication
- SDA (serial data)
LIBRARY:
- SSD1306Ascii
Arduino shiels
Boards that can be plugged on top of the Arduino to extend it’s capabilities.
Other terms
- 5x8 RGB matrix