Circuit Documentation
Summary of the Circuit
This circuit integrates a Raspberry Pi Zero with two infrared sensors: a TCRT 5000 IR Sensor and a generic IR sensor. The Raspberry Pi Zero serves as the central processing unit, controlling and monitoring the IR sensors. The TCRT 5000 IR Sensor provides both digital and analog outputs, while the generic IR sensor provides a digital output. The circuit is designed to detect infrared light, which could be used in applications such as line tracking, obstacle avoidance, or proximity detection.
Component List
Raspberry Pi Zero
- Description: A low-cost, compact version of the Raspberry Pi featuring a Broadcom BCM2835 SoC, with a 1GHz ARM11 core and on-board wireless LAN and Bluetooth.
- Pins: 5V, 3.3V, multiple GPIOs, GND, HDMI, USB, and SD card interface.
- Purpose: Acts as the main controller for the circuit, processing inputs from the IR sensors and executing the embedded code.
TCRT 5000 IR Sensor
- Description: An infrared sensor module that includes an IR emitter and phototransistor in a leaded package which blocks visible light.
- Pins: VCC, GND, DO (Digital Output), AO (Analog Output).
- Purpose: Detects the presence of an object based on reflected infrared light, providing both digital and analog signals.
Generic IR Sensor
- Description: A simple infrared sensor with a digital output.
- Pins: VCC, GND, OUT.
- Purpose: Detects the presence of an object using infrared light and provides a digital output signal.
Wiring Details
Raspberry Pi Zero
- 5V connected to VCC of TCRT 5000 IR Sensor and VCC of the generic IR sensor.
- GND connected to GND of TCRT 5000 IR Sensor and GND of the generic IR sensor.
- GPIO14 connected to DO (Digital Output) of TCRT 5000 IR Sensor.
- GPIO15 connected to OUT of the generic IR sensor.
TCRT 5000 IR Sensor
- VCC connected to 5V of Raspberry Pi Zero.
- GND connected to GND of Raspberry Pi Zero.
- DO connected to GPIO14 of Raspberry Pi Zero.
- AO not connected in this circuit.
Generic IR Sensor
- VCC connected to 5V of Raspberry Pi Zero.
- GND connected to GND of Raspberry Pi Zero.
- OUT connected to GPIO15 of Raspberry Pi Zero.
Documented Code
There is no embedded code provided for the microcontrollers in this circuit. The Raspberry Pi Zero would typically run a Linux-based operating system with code written in Python, C++, or another suitable language to interface with the GPIO pins and process the signals from the IR sensors. The code would initialize the GPIO pins, read the digital inputs, and perform actions based on the sensor readings. Since no specific code is provided, this section cannot be documented further.