Arduino Nano-Based Environmental Monitoring System with Nextion Touch LCD and CAN BUS Communication
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit designed to interface various components with an Arduino Nano microcontroller. The circuit includes communication interfaces, solid-state relays (SSRs) for controlling power loads, a gas sensor, a Hall effect sensor for current measurement, a CAN bus interface for automotive communication, and a Nextion touch LCD for user interaction. The circuit is powered by an AC-to-DC converter module and a step-down voltage regulator. The Arduino Nano serves as the central processing unit, managing input/output operations and communication protocols.
Component List
Microcontroller
- Arduino Nano: A compact microcontroller board based on the ATmega328P, featuring digital and analog I/O pins.
Sensors and Modules
- Adafruit MCP9600: A high accuracy thermocouple amplifier with I2C interface.
- MQ-5 Gas Sensor: A sensor for detecting LPG, natural gas, and coal gas.
- Hall Sensor: A sensor for detecting magnetic fields, often used for current sensing.
- SCT013: A non-invasive AC current sensor.
Communication Interfaces
- Nextion Touch LCD 2.4": An intelligent touchscreen display for user interfaces.
- CAN BUS Module: A module for interfacing with CAN bus systems, commonly used in automotive applications.
Power Control
- SSR-10A: Solid-state relays for switching AC loads without mechanical contacts.
- 12V Single Channel Relay: An electromechanical relay for controlling higher power devices.
- LM2596 Step Down Module: A voltage regulator module for stepping down input voltage to a lower level.
Power Supply
- actodc: An AC-to-DC power supply module for converting mains voltage to 12V DC.
Miscellaneous
- Terminal PCB 2 Pin: Connectors for making easy and secure connections to the board.
- 74HC405L: A component listed without pin details, possibly a placeholder or a mislabeled component.
Resistors
- Multiple resistors with various resistance values for current limiting and voltage division.
Wiring Details
Arduino Nano
- Digital I/O:
D0/RXconnected to Nextion LCD RX.D1/TXconnected to Nextion LCD TX.D2-D7connected to SSR-10A relays for control signals.D8-D13used for interfacing with 74HC405L and CAN BUS module.
- Analog Inputs:
A0-A3connected to various sensors and modules.A4 (SDA)andA5 (SCL)used for I2C communication with Adafruit MCP9600.A6connected to MQ-5 Gas Sensor analog output.
- Power Pins:
5VandGNDused for powering components and establishing common ground.
Adafruit MCP9600
SDAandSCLconnected to Arduino Nano for I2C communication.VINconnected to 5V supply.GNDconnected to common ground.+and-pins likely used for thermocouple connections.
MQ-5 Gas Sensor
VCCconnected to 5V supply.GNDconnected to common ground.Analog outconnected to Arduino Nano A6.
Hall Sensor
+connected to 5V supply.-connected to common ground.Sconnected to Arduino Nano A2.
Nextion Touch LCD 2.4"
TXconnected to Arduino Nano D1/TX.RXconnected to Arduino Nano D0/RX.VCCconnected to 5V supply.GNDconnected to common ground.
SSR-10A
+control pins connected to Arduino Nano D2-D5.-control pins connected to common ground.
12V Single Channel Relay
INconnected to Arduino Nano D7.VCCconnected to 5V supply.GNDconnected to common ground.
LM2596 Step Down Module
IN+andIN-connected to actodc 12V output and ground.OUT+andOUT-providing regulated voltage to components.
CAN BUS Module
CS,SI,SO,SCKconnected to Arduino Nano for SPI communication.VCCconnected to 5V supply.GNDconnected to common ground.HandLconnected to CAN bus network.
Documented Code
sketch.ino
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
documentation.txt
No additional documentation provided in the code file.
Note: The provided information is based on the input data. Some components, such as the 74HC405L, were listed without pin details, and their connections could not be documented. The actual circuit functionality and additional code details are not provided and would be necessary for a complete understanding of the circuit's operation.