|
ARD-NANO30 |
x 1 | |
|
SSD1306 OLED I2C |
x 1 | |
|
TCA9548A multiplexer module |
x 1 | |
|
BME280 sensor module |
x 1 |
![]() |
arduino IDEArduino
|
|
![]() |
Soldering Iron Kit |
Classic Style Arduino Weather Station with three Oled Displays
So far I have made several weather stations that display local values as well as internet data, which you can view on my playlist.
This time I will present you a way of making a very interesting desktop weather station that displays the values of the three basic weather parameters, Atmospheric Pressure, Air Humidity, and Temperature on three separate Oled Displays. The idea is to resemble a classic retro weather station that has three separate instruments, one for each parameter.
Due to the small size and readability of the displays, this station would represent an ideal useful gadget on any desk.
As for the way of making, this device is extremely simple and suitable for beginners.
The device consists of several components:
- On the back there is a power input connector, a switch as well as a BME280 sensor module
- Arduino Nano Microcontroller
- Three SSD1306 OLED displays with I2C communication
- and TCA9548a multiplexer modu
If you want to make a PCB for this project, or for any other electronic project, PCBway is a great choice for you. PCBway is one of the most experienced PCB manufacturing company in China in field of PCB prototype and fabrication. They provide completed PCB assembly service with worldwide free shipping , and ISO9001 quality control system. Also, on their site there is an online gerber viewer where you can upload your gerber and drill files to render your board.
In fact, by making this device I wanted to show the function of such a multiplexer. Namely, the Arduino Nano has only one I2C input (A4 and A5), and when it comes to connecting an I2C display to the Arduino, we are limited to only one screen. In special cases, when the display itself has the option to select one of two different I2C addresses, we can connect a maximum of two displays. In a case like this, when there is a need for more displays, then it is most practical to use this multiplexer module, which can connect up to 8 I2C devices to one microcontroller.
Writing the code is quite simple, and it is necessary to indicate the number of the I2C output of the multiplexer and the content that should be displayed on the screen connected to that output.
And now let's see how this device works in real conditions.
Immediately after turning on the device, in the first few seconds, the parameter that will be displayed appears on each screen in large letters. After that, the values for the current temperature, pressure and air humidity are displayed with two decimals. And again, on the yellow bar, but this time in small letters, it shows the parameter and the unit whose value is shown on the corresponding display.
If we want to display the Relative value of Atmospheric Pressure specifically for the area in which we live, we should in the part of the code
pressure = bme.seaLevelForAltitude(700.0, bme.readPressure())/100.0;
to put the appropriate altitude (in my case it is 700m). I also made a version of the code where the values are displayed in larger digits, but without decimals.
And finally, a short conclusion. This is a very simple visually effective, but also very useful device that accurately displays the three basic meteorological parameters using only one inexpensive sensor. It is installed in a suitable plastic housing made of PVC material, and coated with colored self-adhesive wallpaper.
#include <Wire.h> #include <Adafruit_Sensor.h> #include <Adafruit_BME280.h> #include <Adafruit_SSD1306.h> Adafruit_SSD1306 display(128, 64, &Wire, 4); Adafruit_BME280 bme; float temp, hum, pressure; void TCA9548A(uint8_t bus) { Wire.beginTransmission(0x70); Wire.write(1 << bus); Wire.endTransmission(); } void setup() { TCA9548A(1); bme.begin(0x76, &Wire); TCA9548A(2); display.begin(SSD1306_SWITCHCAPVCC, 0x3C); display.clearDisplay(); display.setTextSize(4); display.setTextColor(WHITE); display.setCursor(18,20); display.println("HUM.");// Print text display.display(); TCA9548A(3); display.begin(SSD1306_SWITCHCAPVCC, 0x3C); display.clearDisplay(); display.setTextSize(4); display.setTextColor(WHITE); display.setCursor(10,20); display.println("PRES");// Print text display.display(); TCA9548A(4); display.begin(SSD1306_SWITCHCAPVCC, 0x3C); display.clearDisplay(); display.setTextSize(4); display.setTextColor(WHITE); display.setCursor(10,20); display.println("TEMP.");// Print text display.display(); delay(5000); } void loop() { TCA9548A(1); temp = bme.readTemperature(); hum = bme.readHumidity(); pressure = bme.seaLevelForAltitude(700.0, bme.readPressure())/100.0; TCA9548A(2); display.setTextColor(WHITE); display.clearDisplay(); display.setTextSize(2); display.setCursor(0,0); display.print("Humidity %"); display.setTextSize(3); display.setCursor(20,30); display.print(hum); display.display(); TCA9548A(3); display.setTextColor(WHITE); display.clearDisplay(); display.setTextSize(2); display.setCursor(5,0); display.print("Press. hPa"); display.setTextSize(3); display.setCursor(0,30); display.print(pressure); display.display(); TCA9548A(4); display.setTextColor(WHITE); display.clearDisplay(); display.setTextSize(2); display.setCursor(30,0); display.print("Temp C"); display.setTextSize(3); display.setCursor(20,30); display.print(temp); display.display(); delay(1000); }
#include <Wire.h> #include <Adafruit_Sensor.h> #include <Adafruit_BME280.h> #include <Adafruit_SSD1306.h> Adafruit_SSD1306 display(128, 64, &Wire, 4); Adafruit_BME280 bme; int temp, hum, pressure; void TCA9548A(uint8_t bus) { Wire.beginTransmission(0x70); Wire.write(1 << bus); Wire.endTransmission(); } void setup() { TCA9548A(1); bme.begin(0x76, &Wire); TCA9548A(2); display.begin(SSD1306_SWITCHCAPVCC, 0x3C); display.clearDisplay(); display.setTextSize(4); display.setTextColor(WHITE); display.setCursor(18,20); display.println("HUM.");// Print text display.display(); TCA9548A(3); display.begin(SSD1306_SWITCHCAPVCC, 0x3C); display.clearDisplay(); display.setTextSize(4); display.setTextColor(WHITE); display.setCursor(10,20); display.println("PRES");// Print text display.display(); TCA9548A(4); display.begin(SSD1306_SWITCHCAPVCC, 0x3C); display.clearDisplay(); display.setTextSize(4); display.setTextColor(WHITE); display.setCursor(10,20); display.println("TEMP.");// Print text display.display(); delay(5000); } void loop() { TCA9548A(1); temp = bme.readTemperature(); hum = bme.readHumidity(); pressure = bme.seaLevelForAltitude(700.0, bme.readPressure())/100.0; TCA9548A(2); display.setTextColor(WHITE); display.clearDisplay(); display.setTextSize(2); display.setCursor(0,0); display.print("Humidity %"); display.setTextSize(4); display.setCursor(45,30); display.print(hum); display.display(); TCA9548A(3); display.setTextColor(WHITE); display.clearDisplay(); display.setTextSize(2); display.setCursor(5,0); display.print("Press. hPa"); display.setTextSize(4); display.setCursor(15,30); display.print(pressure); display.display(); TCA9548A(4); display.setTextColor(WHITE); display.clearDisplay(); display.setTextSize(2); display.setCursor(30,0); display.print("Temp C"); display.setTextSize(4); display.setCursor(45,30); display.print(temp); display.display(); delay(1000); }

Classic Style Arduino Weather Station with three Oled Displays

Raspberry Pi 5 7 Inch Touch Screen IPS 1024x600 HD LCD HDMI-compatible Display for RPI 4B 3B+ OPI 5 AIDA64 PC Secondary Screen(Without Speaker)
BUY NOW
ESP32-S3 4.3inch Capacitive Touch Display Development Board, 800×480, 5-point Touch, 32-bit LX7 Dual-core Processor
BUY NOW
Raspberry Pi 5 7 Inch Touch Screen IPS 1024x600 HD LCD HDMI-compatible Display for RPI 4B 3B+ OPI 5 AIDA64 PC Secondary Screen(Without Speaker)
BUY NOW- Comments(0)
- Likes(0)

- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by Mirko Pavleski
-
How to make simple Arduino RGB Led strip VU Meter VU meter or volume unit meter is a device intended for visual presentation of the audio signal. It ...
-
DIY Simple Antistress and Relaxation PEMF Device based on Schumannn resonance frequency 7.83 Hz Schumann resonances are global electromagnetic resonances, generated by lightning discharges in the...
-
DIY Si4825 A10 multiband Radio (MW,SW,FM) Thanks to the production of specialized radio chips, nowadays it is possible to make a quality mult...
-
DIY simple HUNTER Led Game with Arduino Some time ago I presented you a simple to make, but interesting game, a 1D version simulation of "P...
-
XHDATA D-109WB Radio Short Review with complete disassembly Recently I received a shipment of a radio from the brand XHDATA model: D-109WB, so I immediately de...
-
Arduino Rotary encoder combination lock (Arduino door lock system with Rotary Encoder) Rotary dial safes typically use a mechanical combination lock. They are valued for their simplicity...
-
Arduino 3D Printed self Balancing Cube Self-balancing devices are electronic devices that use sensors and motors to keep themselves balanc...
-
Arduino two weel self Balancing Robot Self Balancing Robot is device that can balance itself from falling to the ground. Its function is ...
-
ELECROW CrowPanel ESP32 4.2” E-paper Wi-Fi Info-Dispaly Project An e-paper display (also known as an electronic paper display or E Ink display) is a type of screen...
-
ESP32 Fluid simulation on 16x16 Led Matrix Fluid simulation is a way of replicating the movement and behavior of liquids and gases in differen...
-
Simple GU50 VTTC Tesla Coil with MOT (25+cm Spark) Vacuum Tube Tesla Coils are a common choice for homebuilders for several practical reasons. At Soli...
-
Hourglass ESP8266 Code A hourglass, also known as an sand clock, is a device used to measure the passage of time. It consi...
-
Tug of War Arduino Game on WS2812 Led strip A Tug of War is a classic team-based game where two opposing teams compete to pull a rope in opposi...
-
DIY ESP32 Bioresonance Rife Machine with ZAPPER function Rife machine therapy is an alternative treatment developed by Dr. Royal Raymond Rife in the 1930s. H...
-
Arduino VFO Project with a Large LCD Display A Variable Frequency Oscillator (VFO) is an electronic oscillator whose output frequency can be adj...
-
Exploring the Tesla Coil Driver Board, Full Review & Test Results Some time ago I presented you a video in which I analyzed a super cheap Tesla Coil driver that cost...
-
Arduino Eatrthquake alarm and protection system with D7S seismic Sensor Earthquakes are extremely common events around the world. On average, there are fifty earthquakes a...
-
Review and Comparison of Three Inexpensive Metal Detector Kits A metal detector is a device used to detect the presence of metal objects in the ground or other ma...
-
How to make simple Arduino RGB Led strip VU Meter VU meter or volume unit meter is a device intended for visual presentation of the audio signal. It ...
-
DIY Simple Antistress and Relaxation PEMF Device based on Schumannn resonance frequency 7.83 Hz Schumann resonances are global electromagnetic resonances, generated by lightning discharges in the...
-
DIY Si4825 A10 multiband Radio (MW,SW,FM) Thanks to the production of specialized radio chips, nowadays it is possible to make a quality mult...
-
DIY simple HUNTER Led Game with Arduino Some time ago I presented you a simple to make, but interesting game, a 1D version simulation of "P...
-
XHDATA D-109WB Radio Short Review with complete disassembly Recently I received a shipment of a radio from the brand XHDATA model: D-109WB, so I immediately de...
-
Arduino Rotary encoder combination lock (Arduino door lock system with Rotary Encoder) Rotary dial safes typically use a mechanical combination lock. They are valued for their simplicity...
-
Arduino 3D Printed self Balancing Cube Self-balancing devices are electronic devices that use sensors and motors to keep themselves balanc...
-
Arduino two weel self Balancing Robot Self Balancing Robot is device that can balance itself from falling to the ground. Its function is ...
-
ELECROW CrowPanel ESP32 4.2” E-paper Wi-Fi Info-Dispaly Project An e-paper display (also known as an electronic paper display or E Ink display) is a type of screen...
-
ESP32 Fluid simulation on 16x16 Led Matrix Fluid simulation is a way of replicating the movement and behavior of liquids and gases in differen...
-
Simple GU50 VTTC Tesla Coil with MOT (25+cm Spark) Vacuum Tube Tesla Coils are a common choice for homebuilders for several practical reasons. At Soli...
-
Hourglass ESP8266 Code A hourglass, also known as an sand clock, is a device used to measure the passage of time. It consi...
-
-
Nintendo 64DD Replacement Shell
101 0 1 -
V2 Commodore AMIGA USB-C Power Sink Delivery High Efficiency Supply Triple Output 5V ±12V OLED display ATARI compatible shark 100W
180 4 1 -
How to measure weight with Load Cell and HX711
346 0 3 -
-
Instrumentation Input, high impedance with 16 bit 1MSPS ADC for SPI
482 0 0 -
RGB LED Matrix input module for the Framework Laptop 16
754 0 2