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

Arduino UNO R4 WiFi Controlled Dual DC Motor with Endstops and Relay-Activated LED Indicator

View and Edit Project In Cirkit DesignerImage of Arduino UNO R4 WiFi Controlled Dual DC Motor with Endstops and Relay-Activated LED Indicator

Circuit Documentation

Summary

This document provides a detailed overview of a circuit designed to control two DC motors using an Arduino UNO R4 WiFi microcontroller and an L298N DC motor driver. The circuit also includes endstops for position sensing, a relay module for controlling a 12V blue LED, and a battery for power supply.

Component List

Microcontroller

Motor Driver

Endstops

Motors

Power Supply

Indicator

Relay Module

Wiring Details

Arduino UNO R4 WiFi

L298N DC Motor Driver

Endstops

DC Motors

Battery

12V Blue LED

Relay Module 5V-30V

Documented Code

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

The provided code is a template with empty setup() and loop() functions. The setup() function is intended for initialization code that runs once when the microcontroller is powered on or reset. The loop() function contains the main logic of the program, which runs repeatedly as long as the microcontroller is powered. Specific functionality must be implemented within these functions to control the motors, read the endstops, and manage the relay module based on the requirements of the application.