JJaLvgjq

Portable air pump ESP32 CS1237 Nokia_5110

 
Overview

Said in the previous
introduction copy by: CS1237 inflatable air pump ESP32 control board [verified] - Jiali Chuang EDA open source hardware platform (oshwhub.com)
I didn't find which sensor model, find a similar one, the sensor model in the code is wrong.
Please confirm before continuing
1. The open source circuits, programs, and models are not perfect, and I don't want to update them. I need to improve them myself, so you need a certain level of hands-on ability to copy the project. If you don't know how to modify the software, you may need to tinker with it~
2. Circuit problem: There are 3 pull-down resistors missing, namely Powerkey pull-up resistor, 10K, connected to the io port and 3.3V; motor drive mos, 10k, connected to the gate and ground; LED drive MOS, 10K, connected to the gate and ground. (I don't know why I didn't pull down at the time.) The button package is different from the actual use. At first, I wanted to use a metal patch button, but I didn't have it at home. The plastic one I used saved the button cap, cut off the pins, and soldered the patch.
3. Software problem: There is a bug in the reading of CS1237. If the last bit is 0, there is no interrupt to get Ready, which leads to a reading error when the chip is busy. Currently, it is a hard delay, and the reading is wrong 2 seconds before booting. I randomly found an io port to weld the switch button of the LED. You can use io0 and modify the definition.
4. Shell problem: There is a problem with the fixing of the LED switch button. It cannot be installed. I removed some of the buttons and glued them. The USB port and all the button windows are small, and they may need to be polished larger. The two screw holes for fixing the motor are a bit short.
5. The defect of the air pump itself: I suspect that this air pump has flowed into the garbage market without being assembled. The sensor is too close to the pump outlet, and the temperature of the newly compressed high-temperature gas can easily enter the measurement cavity, causing the sensor temperature to rise and the measurement to have errors. I put some silicone tubes in the channel entering the cavity to reduce the cross-sectional area of ​​the channel and reduce temperature conduction. I don't know if it works.
Required
hardware:
air pump, ESP32 (I used SOLO, which was disassembled from electronic waste), LED light bar, 2 18650 batteries, 2S lithium battery protection board (high current), 2S lithium battery charging board, 2 18650 battery box, PD decoy board (9V, depending on the charging board), Nika5110 display (I regret using this, that painful conductive strip, if you have the ability, change to another 128*64 screen), M2.5 self-tapping screws, silicone tube (rubber sheet is also OK, for shock absorption), other electronic parts. The shell is 3D printed, I used PETG dark green. USB to serial port ttl, download the program. Software
VScode+esp-idf, Jiali Chuang EDA professional version, solidwork.
Schematic design instructions
MOS does not have to be the model of the schematic diagram (designed at the beginning of last year, forgot to select the right one), both must be MOS above 15A.
Physical display instructions
The LED switch button uses the large one in the picture below. The wires are soldered to the circuit board.
There are two parts in 3D printing, the inner part and the outer shell. When printing, the inner part does not need support, but the outer shell screen needs support. I use tree-shaped support, thin trees.
I use atmospheric pressure to calibrate the pressure. The mobile phone and watch know the current pressure. I read it once a day. The weather changed a lot on the two days when I wrote the code. The first day was 102KPa, the second day was 104kPa, and the third day was 106kPa. They are all approximate values. There is a good APP called Mobile Physics Workshop, which is very useful. For example, you can know the frequency of PWM by the roaring sound of the motor at low speed. I used my own bicycle to inflate to 50PSI and measured it with a pump with a pressure gauge. It is quite accurate. If there is another calibration method, it would be better. No temperature and pressure compensation is done. The temperature is CS1237, which is also calibrated by the thermometer at home, which may not be accurate. If you want to see the log, change log to info in menuconfig.
Operation instructions:
Long press the M key to turn on, and long press the M key to turn off.
Single-click the M key to start/stop. Single-click the LED switch to turn on and off the light.
In the unstarted state, +- single click to switch presets. ★ is user-defined, save settings (including units) when exiting set mode, and remember when shutting down. Others are not saved.
Double-click the M key to enter set mode, and adjust the set value through +-. Double-click again to exit.
Triple-click the M key to switch units, kPa, PSI, Bar cycle.
Automatically enter set mode after starting mode.
Automatically stop when setting is reached.
Assembly details
code
electric_pump: electric_pump witg esp32 on esp-idf (gitee.com)
cost
ESP32 10 yuan + components 5 yuan + wire 5 yuan, printing cost 10 yuan~15 yuan, not calculated in detail, the others are below. In fact, it is not low.
Shell
accessories
参考设计图片
×
Design Files
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-24 17:28:37

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号