Uploaded February 2024 | Updated November 2026, 2 days ago
Temperature, Air Pressure, and Altitude on a GUI using Raspberry Pi Pico, Bosch BMP280, and LVGL
======================================
Article: eeweb.com/temperature-air-pressure-and-altitude-on-a-gui-using-raspberry-pi-pico-bosch-bmp280-and-lvgl
======================================
Altium Designer + Legal License (Free): altium.com/yt/myvanitar
======================================
Altium 365: altium.com/altium-365
======================================
OctoPart: octopart.com
======================================
Other Videos: bit.ly/2N9OlPa
======================================
Raspberry Pi Pico is a handy piece of hardware. It’s small, cheap, and equipped with a powerful dual-core RP2040 microcontroller that offers 2M (up to 16M) Flash and 264K SRAM memories. Such specifications make it a good choice for GUI-based (graphical user interface) hobby and industrial projects.
In this article/video, I used a variant of the Pico board (RP2040 Zero), a digital Bosch I2C BMP280 sensor, and a 3.2” SPI ILI9341 colorful TFT display to build a graphical temperature, pressure, and altitude measurement unit that can be used to monitor the home, workplace, mobile devices, vehicles … etc.
The most challenging part of this project is the RP2040 code. I used the Pico C/C++ SDK library and invested significant time in designing the GUI and debugging the code to avoid memory leaks. I engaged both cores of the MCU to run the time-constraint tasks simultaneously.
To design the schematic and PCB, I used Altium Designer 24 and the Octopart website to quickly gather the necessary component information and generate the BOM. You can power the unit using a USB Type-C cable of a mobile charger or your 5V-regulated power source.
Temperature, Air Pressure, and Altitude on a GUI using Raspberry Pi Pico, Bosch BMP280, and LVGL
======================================
Article: eeweb.com/temperature-air-pressure-and-altitude-on-a-gui-using-raspberry-pi-pico-bosch-bmp280-and-lvgl
======================================
Altium Designer + Legal License (Free): altium.com/yt/myvanitar
======================================
Altium 365: altium.com/altium-365
======================================
OctoPart: octopart.com
======================================
Other Videos: bit.ly/2N9OlPa
======================================
Raspberry Pi Pico is a handy piece of hardware. It’s small, cheap, and equipped with a powerful dual-core RP2040 microcontroller that offers 2M (up to 16M) Flash and 264K SRAM memories. Such specifications make it a good choice for GUI-based (graphical user interface) hobby and industrial projects.
In this article/video, I used a variant of the Pico board (RP2040 Zero), a digital Bosch I2C BMP280 sensor, and a 3.2” SPI ILI9341 colorful TFT display to build a graphical temperature, pressure, and altitude measurement unit that can be used to monitor the home, workplace, mobile devices, vehicles … etc.
The most challenging part of this project is the RP2040 code. I used the Pico C/C++ SDK library and invested significant time in designing the GUI and debugging the code to avoid memory leaks. I engaged both cores of the MCU to run the time-constraint tasks simultaneously.
To design the schematic and PCB, I used Altium Designer 24 and the Octopart website to quickly gather the necessary component information and generate the BOM. You can power the unit using a USB Type-C cable of a mobile charger or your 5V-regulated power source.
![30A AC Soft Starter (Inrush Current Limiter) Circuit with Fail-Safe
30A AC Soft Starter Inrush Current Limiter Circuit
Altium Designer + License (Free): https://www.altium.com/yt/myvanitar
OctoPart: https://octopart.com
Article: https://www.pcbway.com/blog/technology/30A_AC_Soft_Starter_Inrush_Current_Limiter_6a29aea8.html
Gerber/PCB: https://www.pcbway.com/project/shareproject/30A_AC_Soft_Starter_Inrush_Current_Limiter_b3a43854.html
Other Videos: http://bit.ly/2N9OlPa
Are you tired of dealing with the damaging effects of inrush currents on your industrial devices? Look no further than an AC inrush current limiter (soft starter). Inrush current, also known as surge current, is the large amount of current that flows into a load at start-up. This can cause damage to equipment, reduce its lifespan, and lead to costly downtime. But with an AC inrush current limiter, you can eliminate these problems. Simply, a soft starter works by limiting the initial current flow, ensuring a smooth and efficient start-up, while protecting your equipment from damage.
So I decided to design this AC soft starter that is equipped with a fail-safe mechanism. During start-up, the inrush current passes through a power resistor, and after a delay (adjustable between 1ms to 1s), a 30A power Relay shorts the resistor and applies the full power to the load. If this Relay fails for whatever reason, the power resistor won’t melt everything; the logic circuit activates the fail-safe Relay that turns OFF the load to prevent any damage. 3 LEDs indicate the Supply, Normal, and Fault conditions. I selected the cheap ATTiny13 MCU as a controller.
To design the schematic and PCB, I used Altium Designer 23. The fast component search engine (Octopart) allowed me to quickly consider components’ information and also generate the BOM. To get high-quality fabricated boards, I sent the Gerber files to PCBWay. I used the Arduino IDE to write the MCU code, so it is pretty easy to follow and understand.
Let’s get started :-)
I start explaining the schematic from the top. AC-IN is the connector for the AC Mains input. R2 is the 10D5651K [2] varistor to eliminate voltage spikes at the input. U1 is the HLK-PM12 [3] AC to DC module that handles 12V at the output. This voltage is suitable to drive the Relays. R1 is a 5K potentiometer to adjust the delay. You can adjust the delay to something between 1ms and 1s. ISP is a male pin header for the AVR ISP programmer. IC1A and IC1B are parts of the ATTiny13 microcontroller. R3 is a pullup resistor for the RESET pin. C2 and C3 are decoupling capacitors for the VCC pin.
R4 and C4 build an RC filter at the input of the REG1. REG1 is the 78L05 SOT-89 5V regulator [4] to build a stable 5V power for the microcontroller. D1 is a 3mm yellow through-hole LED to indicate a proper supply voltage and R5 limits the current to D1. C5 and C6 are output capacitors to stabilize the regulator output voltage and reduce the noise. NTC is a 2 Pins XH connector to wire a 10K NTC to the board. R6 and NTC build a voltage divider, where voltage variations indicate changes in the temperature. If the temperature increases at the NTC side, the output voltage increases, and vice versa. C6 is a decoupling capacitor to reduce noise.
There are two Relay circuits here, both are identical. I explain one of them. Q1 is a Si2302 Mosfet [5] to drive the K1 Relay. R10 is a pulldown resistor for the Gate pin of Q1 to prevent unwanted triggering of the Mosfet. D2 is a 1N4007 diode [6] to protect the Mosfet against reverse currents of the Relay’s coil. D4 is a 3mm Red LED to indicate the fault condition. C8 damps the voltage spikes of Relay activation/deactivation. R9 is a 27R-20W power resistor to limit the inrush current, you can use other values depending on your application. 30A AC Soft Starter (Inrush Current Limiter) Circuit with Fail-Safe](https://i.ytimg.com/vi/_QyYtV-IEO8/mqdefault.jpg)









