Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes a variety of components such as sensors, a microcontroller, a MOSFET, resistors, and a power source. The circuit is designed to interface with an Arduino UNO microcontroller and a NodeMCU V3 ESP8266, which are used to control and monitor the connected sensors and other components. The circuit includes a temperature sensor (LM35), a current sensor (ACS712), and a polymer lithium-ion battery, among other components. The document will outline the purpose and connection details of each component, followed by the embedded code for the microcontrollers.
Component List
nMOS Transistor (MOSFET)
- Description: A three-terminal device used for switching electronic signals.
- Pins: gate, drain, source
Resistor (100 kOhms)
- Description: A passive two-terminal electrical component that implements electrical resistance as a circuit element.
- Resistance: 100 kOhms
Resistor (3.75 Ohms)
- Description: A passive two-terminal electrical component that implements electrical resistance as a circuit element.
- Resistance: 3.75 Ohms
Resistor (10 kOhms)
- Description: A passive two-terminal electrical component that implements electrical resistance as a circuit element.
- Resistance: 10 kOhms
Resistor (20 kOhms)
- Description: A passive two-terminal electrical component that implements electrical resistance as a circuit element.
- Resistance: 20 kOhms
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0-A5, SCL, SDA, AREF, D0-D13
ACS712 Current Sensor 5A 20A 30A
- Description: A fully integrated, hall effect-based linear current sensor with 2.1 kVRMS voltage isolation.
- Pins: 1, 2, GND, OUT, VCC
NodeMCU V3 ESP8266
- Description: An open-source firmware and development kit that helps you to prototype your IoT product.
- Pins: A0, GND, VU, S3-S0, SK, 3V3, EN, RST, Vin, D0-D8, RX, TX
Polymer Lithium Ion Battery - Generic
- Description: A rechargeable battery of lithium-ion technology in a soft package or pouch format.
- Pins: GND, VCC
Temperature Sensor (LM35)
- Description: A precision integrated-circuit temperature sensor with an output voltage linearly proportional to the Centigrade temperature.
- Pins: +Vs, Vout, GND
Wiring Details
nMOS Transistor (MOSFET)
- Gate connected to Arduino UNO (D7)
- Drain connected to Resistor (3.75 Ohms) pin 2
- Source connected to Polymer Lithium Ion Battery - Generic (GND), Resistor (100 kOhms) pin 1, and Arduino UNO (GND)
Resistor (100 kOhms)
- Pin 1 connected to nMOS Transistor (MOSFET) source and Resistor (10 kOhms) pin 2
- Pin 2 connected to Arduino UNO (A0)
Resistor (3.75 Ohms)
- Pin 1 connected to Polymer Lithium Ion Battery - Generic (VCC)
- Pin 2 connected to nMOS Transistor (MOSFET) drain
Resistor (10 kOhms)
- Pin 1 connected to Polymer Lithium Ion Battery - Generic (VCC)
- Pin 2 connected to Resistor (100 kOhms) pin 1
Resistor (20 kOhms)
- Pin 1 connected to NodeMCU V3 ESP8266 (GND) and Arduino UNO (GND)
- Pin 2 connected to Resistor (10 kOhms) pin 1 and NodeMCU V3 ESP8266 (D6)
Arduino UNO
- 5V connected to Temperature Sensor (LM35) +Vs and ACS712 Current Sensor VCC
- GND connected to Temperature Sensor (LM35) GND, ACS712 Current Sensor GND, nMOS Transistor (MOSFET) source, and NodeMCU V3 ESP8266 GND
- A0 connected to Resistor (100 kOhms) pin 2
- A1 connected to ACS712 Current Sensor OUT
- A2 connected to Temperature Sensor (LM35) Vout
- D7 connected to nMOS Transistor (MOSFET) gate
- D1 connected to NodeMCU V3 ESP8266 (D5)
- D0 connected to Resistor (10 kOhms) pin 2
ACS712 Current Sensor 5A 20A 30A
- 1 connected to Polymer Lithium Ion Battery - Generic (VCC)
- 2 connected to Resistor (3.75 Ohms) pin 1
- GND connected to Arduino UNO (GND)
- OUT connected to Arduino UNO (A1)
- VCC connected to Temperature Sensor (LM35) +Vs and Arduino UNO (5V)
NodeMCU V3 ESP8266
- GND connected to Resistor (20 kOhms) pin 1 and Arduino UNO (GND)
- D5 connected to Arduino UNO (D1)
- D6 connected to Resistor (20 kOhms) pin 2
Polymer Lithium Ion Battery - Generic
- GND connected to nMOS Transistor (MOSFET) source, Resistor (100 kOhms) pin 1, and Arduino UNO (GND)
- VCC connected to ACS712 Current Sensor pin 1 and Resistor (3.75 Ohms) pin 1
Temperature Sensor (LM35)
- +Vs connected to ACS712 Current Sensor VCC and Arduino UNO (5V)
- Vout connected to Arduino UNO (A2)
- GND connected to ACS712 Current Sensor GND and Arduino UNO (GND)
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
}
void loop() {
}
NodeMCU V3 ESP8266 Code
No code provided for NodeMCU V3 ESP8266 in the input.