Рет қаралды 1,755
_ How to make a 1-channel temperature data logger with ESP32-CAM and built-in SD card.:Save as Excel
_ How to make a 1-channel temperature recorder with ESP32-CAM and built-in SD card.:Save as Excel
_ How to make a 1-channel temperature data logger with ESP32-CAM and built-in SD card.
Material :
ESP32-CAM, MAX6675 Module, SSD128x64 i2c OLED Module, K-TYPE thermocouple, Micro SD Card
00;00 Hello ~~ Today is
00;08 Let's make a 1-channel temperature recorder using ESP32-CAM and the built-in SD card.
00;55 ESP32 CAM prepared. No camera required.
01;05 However, an FFC cable is required.
01;12 A 24-pin film cable is required to use the GPIO pin assigned to the camera.
01;22 I only had a 40 pin cable.
01;32 So, although this is my first attempt, I will cut 40 pins into 24 pins and use them.
02;57 I will replace the original pin header connector with one with longer legs.
05;07 Configure the power input and selection button circuits on the Perfboard.
06;12 Let's construct a pull-down resistor circuit.
07;28 We will replace the original pin header connector of the MAX6675 module.
08;04 Using short pins allows pin header connectors to be soldered vertically.
09;04 It's perfect
09;58 I will tear the film cable and make a circuit pattern.
13;31 Now that the sub-parts are complete, let’s assemble them.
14;13 Now that the hardware is complete, let's take a quick look at the code.
14;25 Let's select the board to use in the Arduino IDE and use the library.
14;33 If the ESP32 type board is not available in Arduino IDE, download and install it.
14;42 I built the code based on the examples included in the three libraries.
15;26 If you don't have the library, download and install it too.
15;58 Let’s check some important things in the source code
16;14 Enter your Wi-Fi ID and password.
16;32 Enter the standard time for your location.
16;54 Enter ""/sdcard", false " to use in 4-bit mode.
_ Important things the code does;
_ Each time the button is pressed, data (temperature and time) is recorded on the SD card, and the stop operation is repeated.
_ Displays the current time and temperature on the serial monitor and OLED regardless of whether it is recorded or not.
_ If the SD card is not inserted, an alarm message is displayed.
_ When rebooted, a new save file is created and recorded.
17;38 Format the SD card as FAT32.
17;57 Since ESP32-CAM does not have a downloader, you must go through a separate process with FTDI.
18;32 Let's compile and download the program.
19;01 Now let's reassemble and test.
19;23 If you want to know more about K-TYPE thermocouple, please click the link above.
20;12 An error occurred when a finger touched the pin. I think I need a case or insulation.
20;58 We will immediately fix the camera flash blinking and the OLED shaking.
21;14 Let's test whether a new file is created when the power is turned on again.
22;51 It is confirmed that a CSV file has been created on the SD card.
22;59 Let's open it with Google Sheets and check whether the data has been recorded.
23;56 It worked fine.
24;06 It was also recorded that the temperature rose after burning with a lighter.
24;24 Lastly, we will finish after making some upgrades.
24;36 We will fix the display so that it does not shake, and prevent the camera flash from working.
24;55 I disconnected the drain of the MOSFET to block the current.
25;08 We will replace the terminal block of MAX6675.
25;32 All upgrades and assembly are complete.
25;45 This video ends here.