Arduino Mega 2560 Based Motion-Activated Thermal Camera with Bluetooth Connectivity
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit integrates various components including a resistor, an LED, a PIR (Passive Infrared) motion sensor, a Bluetooth HC-06 module, an Adafruit MLX90640 thermal camera, and an Arduino Mega 2560 microcontroller. The circuit is designed to detect motion and temperature variations, communicate via Bluetooth, and control an LED indicator. The Arduino Mega 2560 serves as the central processing unit, interfacing with the PIR sensor for motion detection, the thermal camera for temperature imaging, and the Bluetooth module for wireless communication.
Component List
Resistor
- Description: A resistor with a resistance value of 200 Ohms.
- Purpose: Limits the current flowing through the LED to prevent damage.
LED: Two Pin (red)
- Description: A red-colored LED with two pins: anode and cathode.
- Purpose: Acts as an indicator light in the circuit.
PIR/Motion Sensor
- Description: A sensor that detects motion based on infrared radiation.
- Purpose: Triggers an event when motion is detected in the environment.
Bluetooth HC-06
- Description: A Bluetooth module that allows for wireless communication.
- Purpose: Enables the circuit to communicate with other Bluetooth-enabled devices.
Adafruit MLX90640 Thermal Camera
- Description: A thermal camera module that captures temperature variations.
- Purpose: Provides thermal imaging capabilities to the circuit.
Arduino Mega 2560
- Description: A microcontroller board based on the ATmega2560.
- Purpose: Serves as the main controller for processing and interfacing with other components.
Wiring Details
Resistor
- Connections:
- One end connected to the anode of the LED.
- The other end connected to the 5V supply from the Arduino Mega 2560.
LED: Two Pin (red)
- Connections:
- Anode connected to the 5V supply through the resistor.
- Cathode connected to the ground (GND) of the Arduino Mega 2560.
PIR/Motion Sensor
- Connections:
- VCC connected to the 5V supply from the Arduino Mega 2560.
- GND connected to the ground (GND) of the Arduino Mega 2560.
- OUTPUT connected to the D7 PWM pin of the Arduino Mega 2560.
Bluetooth HC-06
- Connections:
- VCC connected to the 5V supply from the Arduino Mega 2560.
- GND connected to the ground (GND) of the Arduino Mega 2560.
- TXD connected to the D1 TX0 pin of the Arduino Mega 2560.
- RXD connected to the D0 RX0 pin of the Arduino Mega 2560.
Adafruit MLX90640 Thermal Camera
- Connections:
- VCC connected to the 5V supply from the Arduino Mega 2560.
- GND connected to the ground (GND) of the Arduino Mega 2560.
- SDA connected to the D20/SDA pin of the Arduino Mega 2560.
- SCL connected to the D21/SCL pin of the Arduino Mega 2560.
Arduino Mega 2560
- Connections:
- Provides 5V and GND to all components requiring power.
- Interfaces with the PIR sensor, Bluetooth module, and thermal camera through various digital and analog pins as detailed above.
Documented Code
Arduino Mega 2560 Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Note: The provided code is a template and does not contain any functional implementation. It needs to be populated with the logic for interacting with the components based on the circuit's requirements.