Monitoring Temp_AC ARDUINO
by jcherreradev in Circuits > Microcontrollers
213 Views, 3 Favorites, 0 Comments
Monitoring Temp_AC ARDUINO

Temperature and AC Current Monitor - ARDUINO
This project is a portable system that allows to monitor the DS18B20 ambient temperature, the temperature using a MAX6675 thermocouple, and the SCT-50A AC current using sensors, displaying all the information on a 16x2 LCD screen through I2C. It also includes a function to check the remaining battery level.
Functions
- Ambient temperature: Measured using a DS18B20 sensor.
- Temperature with thermocouple: Using a MAX6675 module.
- Electrical current: RMS calculation with an SCT-50A sensor.
- Battery level: Percentage indicator and remaining voltage.
- Interface: Toggle between each function by pressing a button.
- Mode 0: Remaining battery level (percentage and voltage).
- Mode 1: Ambient temperature with 2 DS18B20 sensors with TO-92 encapsulated models and waterproof probe.
- Mode 2: Temperature with thermocouple (MAX6675).
- Mode 3: Electrical current (SCT-50A).
❗The SCT-50A sensor should be calibrated using an alternating current (AC) consumption device with a known or previously measured consumption, which will allow the calibration value to be adjusted to obtain accurate readings.
⚠️ Charging modules, such as the TP4056 or most, should not be used to charge the battery and power the device simultaneously. Performing both functions at the same time may result in problems with the battery, jeopardizing the circuitry as well as the safety of the battery.
Supplies


Components
- x1 Board: Arduino Nano or UNO R3.
- x1 LCD Display I2C: LCD 16x2.
- x1 Embedded DS18B20 Sensor: To measure ambient temperature.
- x1 Sensor DS18B20 Probe: To measure liquid temperature.
- x1 Resistance: 4.7Kohm.
- x1 MAX6675 Module and Thermocouple: For thermocouple, to measure high temperatures.
- x1 Momentary pushbutton: To switch between different metrics.
- x1 Resistance: 220ohm for push button.
- Current sensor: Measure AC up to 50A.
- x1 Sensor SCT-50A: To measure electric current.
- x2 Resistors: 10kohm.
- x1 Capacitor: 10uF.
- x1 Integrated circuit LM358.
- x1 3.5mm. female jack connector compatible for the SCT.
- Battery Niver:
- x1 Battery 18650
- x2 Resistors: 100kohm for the voltage divider.
Environment Configuration
Libraries:
- LiquidCrystal_I2C v1.1.2
- MAX6675 v0.3.2
- DallasTemperature v3.9.0
Download the libraries from the library manager of the arduino IDE.
Note
- The battery monitoring is only a function to check the remaining charge of the device.
- Calibrate the sensor values according to your needs:
- calibAmp for current.
- calibBat for battery voltage.
- Make sure the MAX6675 module and DS18B20 sensor are connected correctly to avoid reading errors.