Home

Awesome

Temperature and Humidity with MicroPython and LVGL

Content:

Hardware

image

Project Description

In this project, I'll explain how I built a temperature and humidity display using MicroPython and LVGL.

Schematics

image

and here is the fritzing file: schematics.fzz

Here's the detailed schematic description in English, considering the specified pin connections for the ESP32-S2 Mini, ILI9341 display, and DHT11 sensor:

Connections between ESP32-S2 Mini and ILI9341 Display:

Connections between ESP32-S2 Mini and DHT11 Sensor:

Connection to Neopixel (LED):

Code

The project uses asyncio for asynchronous programming. It includes:

CAD Case

Here is a photo of the full assempled project in CAD:

temp_humidity_micropython_lvgl

This photos shows only the case:

case

I provide CAD files in the following formats: .par, .asm, and .stl.

For 3D printing, I have included built-in support structures. You can slice it without additional support. The support structures are in the .asm (assembly) file.

case_with_support

Here are the direct download links:

Instructions for 3D Printing

  1. Download the Files: Use the provided links to download the necessary files in your preferred format.
  2. Review the Files: Open the .par or .asm files in your CAD software to review the design. Make any necessary modifications as needed.
  3. Slicing the Model: Import the .stl file into your slicing software. If you are using the file with built-in supports (case_with_support.stl), ensure that you disable additional support generation in your slicer settings.
  4. Print Settings: Adjust your printer settings according to the material you are using. Common settings include layer height, infill density, and print speed. Refer to your 3D printer's manual for optimal settings.
  5. Print the Case: Start the print job and monitor the process to ensure the print adheres well to the build platform and prints correctly.
  6. Assembly: Once printed, remove the support structures carefully if using the support-included model. Assemble the ESP32-S2 Mini, ILI9341 display, and DHT11 sensor into the printed case.

Customization and Support

These files should provide you with everything needed to review, modify, and print the case. If you have any questions or require further customization, please feel free to reach out!

To Do