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

Arduino Nano and L298N Motor Driver Controlled DC Motors with NRF24L01 Wireless Communication

View and Edit Project In Cirkit DesignerImage of Arduino Nano and L298N Motor Driver Controlled DC Motors with NRF24L01 Wireless Communication

Circuit Documentation

Summary

This circuit is designed to control multiple DC motors using an L298N motor driver, an Arduino Nano microcontroller, and an NRF24L01 wireless module. The power is supplied by a 18650 Li-Ion battery. The Arduino Nano is programmed to control the motor driver and communicate wirelessly via the NRF24L01 module.

Component List

  1. DC Motor

    • Description: A standard DC motor used for various applications.
    • Pins: pin 1, pin 2
  2. L298N DC Motor Driver

    • Description: A dual H-Bridge motor driver that allows control of the speed and direction of two DC motors.
    • Pins: OUT1, OUT2, 12V, GND, 5V, OUT3, OUT4, 5V-ENA-JMP-I, 5V-ENA-JMP-O, +5V-J1, +5V-J2, ENA, IN1, IN2, IN3, IN4, ENB
  3. Arduino Nano

    • Description: A small, complete, and breadboard-friendly microcontroller board based on the ATmega328P.
    • Pins: D1/TX, D0/RX, RESET, GND, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11/MOSI, D12/MISO, VIN, 5V, A7, A6, A5, A4, A3, A2, A1, A0, AREF, 3V3, D13/SCK
  4. 18650 Li-Ion Battery

    • Description: A rechargeable lithium-ion battery commonly used in portable electronics.
    • Pins: Positive, Negative
  5. NRF24L01

    • Description: A wireless transceiver module for short-range communication.
    • Pins: IRQ (not used), MOSI, CSN, VCC (3V), GND, CE, SCK, MISO

Wiring Details

DC Motor

L298N DC Motor Driver

Arduino Nano

18650 Li-Ion Battery

NRF24L01

Code Documentation

Arduino Nano Code

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

}

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

}

This code is a basic template for the Arduino Nano. The setup function is where you initialize your settings, and the loop function is where the main code runs repeatedly. You can add motor control and wireless communication code as needed.