Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino and Raspberry Pi Controlled Relay System with Current Sensing and Laser Emitter

View and Edit Project In Cirkit DesignerImage of Arduino and Raspberry Pi Controlled Relay System with Current Sensing and Laser Emitter

Circuit Documentation

Summary

This circuit integrates a variety of components including an Arduino UNO, multiple relay modules, current sensors, a Raspberry Pi 4B, a KY-008 Laser Emitter, a 12V battery, and DC motors. The Arduino UNO serves as the primary microcontroller, interfacing with relay modules to control the DC motors and reading data from current sensors. The Raspberry Pi 4B is also included in the circuit, potentially for higher-level control or communication. The KY-008 Laser Emitter is controlled via GPIO pins from both the Arduino and Raspberry Pi. The 12V battery provides power to the relay modules and the DC motors through the relay contacts.

Component List

Wiring Details

Arduino UNO

Relay Module 1 Channel

Current Sensor 5A

12V Battery

DC Motor

Raspberry Pi 4B

KY-008 Laser Emitter

Documented Code

Arduino UNO 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 for the Arduino UNO is a template with empty setup and loop functions. The actual implementation should include initialization of the I/O pins and the logic for controlling the relay modules, reading from the current sensors, and communicating with the KY-008 Laser Emitter.

Raspberry Pi 4B Code

No code was provided for the Raspberry Pi 4B. It is assumed that the user will develop the code as per the requirements of the project.

Additional Documentation (documentation.txt)

No additional documentation was provided.