Arduino Nano-Based Wireless Motion Sensor with nRF24L01 Communication
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit is designed to interface an Arduino Nano with an ADXXL335 accelerometer and an nRF24L01 wireless communication module. The circuit is powered by a 9V battery, which is controlled by a toggle switch to turn the power supply to the Arduino on and off. The Arduino Nano serves as the central processing unit, reading data from the ADXXL335 accelerometer and communicating wirelessly via the nRF24L01 module.
Component List
9V Battery
- Description: Provides the power supply for the circuit.
- Pins:
-(negative),+(positive)
Toggle Switch
- Description: Controls the power supply to the Arduino Nano.
- Pins:
L1,COM(common),L2
Arduino Nano
- Description: 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
ADXXL335 Accelerometer
- Description: A small, thin, low power, complete 3-axis accelerometer.
- Pins:
VCC,X-OUT,Y-OUT,Z-OUT,GND
nRF24L01 Wireless Module
- Description: A 2.4GHz ISM band transceiver.
- Pins:
GND,VCC,CE,CSN,SCK,MOSI,MISO,IRQ
Wiring Details
9V Battery
-connected to nRF24L01GND+connected to Toggle SwitchCOM
Toggle Switch
COMconnected to 9V Battery+L2connected to Arduino NanoVIN
Arduino Nano
VINconnected to Toggle SwitchL2GNDconnected to ADXXL335GND5Vconnected to ADXXL335VCCA1connected to ADXXL335Y-OUTA0connected to ADXXL335X-OUT3V3connected to nRF24L01VCCD8connected to nRF24L01CED10connected to nRF24L01CSND11/MOSIconnected to nRF24L01MOSID12/MISOconnected to nRF24L01MISOD13/SCKconnected to nRF24L01SCK
ADXXL335 Accelerometer
GNDconnected to Arduino NanoGNDVCCconnected to Arduino Nano5VY-OUTconnected to Arduino NanoA1X-OUTconnected to Arduino NanoA0
nRF24L01 Wireless Module
GNDconnected to 9V Battery-VCCconnected to Arduino Nano3V3CEconnected to Arduino NanoD8CSNconnected to Arduino NanoD10MOSIconnected to Arduino NanoD11/MOSIMISOconnected to Arduino NanoD12/MISOSCKconnected to Arduino NanoD13/SCK
Documented Code
Arduino Nano 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 include specific functionality. It should be populated with the setup and loop code required to initialize the components and handle the data acquisition and wireless communication.