Friday, November 6, 2026
HomeIoTThis Charging Station Powers a Cellphone and Shows Climate in Actual-Time

This Charging Station Powers a Cellphone and Shows Climate in Actual-Time

[ad_1]

An outline

Sensible residence units are nice for rapidly choosing up very important data that can be utilized all through the remainder of the day. This might embrace the present stage of visitors, any upcoming occasions/appointments, and maybe most vital of all, the climate. So although Reddit consumer ‘mfr220‘ was nonetheless a novice at creating Arduino-compatible units, he nonetheless needed a chic method to cost his telephone whereas additionally studying about what’s awaiting him exterior.

Gathering and assembling the {hardware}

With the intention to present the present climate data, a big 320x240px TFT show was chosen because it has comparatively good pixel density, would not devour an excessive amount of energy, and helps coloration graphics/touch-enabled interfaces. As for really retrieving the info and sending it to the display screen, a Wemos D1 Mini was chosen because it accommodates 4MB of flash and has WiFi connectivity. Lastly, mfr220 designed a customized PCB that permits the Wemos D1 Mini to mount onto the again of the LCD whereas additionally offering headers for energy connections.

The way to get climate information

With the {hardware} now discovered, mfr220 moved onto the subsequent step of making a program that would fetch present climate data for his location over WiFi. To perform this, this system he discovered (written by Daniel Eichhorn) connects to an area entry level and sends a GET request over HTTP to OpenWeatherMap’s climate API service. After the server has responded with a payload of serialized JSON information, the Wemos D1 Mini parses it into an object that may then be accessed throughout the program.

Exhibiting data

Whereas the system is not in sleep mode, the display screen is about to replace every time the loop perform makes one iteration. It first checks if the display screen has been touched, data the coordinate and advances the present display screen quantity if it has, after which attracts the brand new figured on the show by updating its inside RAM buffer through SPI. Some screens embrace the present time/climate/astronomy information, the upcoming forecast, and even an ‘about’ web page with detailed data.

Constructing the gadget

Merely having three PCBs sandwiched collectively wouldn’t have been the sleekest look, so mfr220 determined to rigorously lower out a number of items of wooden with a laser cutter and assemble them right into a case after staining them. The correct aspect homes the electronics and button whereas the left accommodates a charging station and stand for plugging in a telephone.

To learn extra about this undertaking, you may try mfr220’s publish on Reddit right here.

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments