ESP32 Constellation Finder (with a Web App)
by arhamsameel3 in Circuits > Gadgets
259 Views, 2 Favorites, 0 Comments
ESP32 Constellation Finder (with a Web App)
Do you love looking at the night sky but can’t find constellations easily? With this project, you can build your own Constellation Finder using an ESP32 microcontroller and a small OLED screen.
This gadget will:
- Show you which constellations are up right now.
- Tell you the direction (north, south, east, west) and height in the sky.
- Give a rise and set time for each constellation.
- Provide “Steer Me” hints like “turn left 12°, look up 8°”.
- Show a webpage on your phone so you can control it remotely.
- Use LEDs to quickly show whether the constellation is visible.
Firstly educational use of this project :
For children: Fun way to learn astronomy and directions.
For schools: Combines electronics, programming, and science.
For telescope users: No more guessing — always know when and where to look.
For hobbyists: Expand it with new features like planets or motor control.
So It’s fun for kids, students, hobbyists, and telescope users. Let’s get started!
Supplies
You’ll need:
1 × ESP32 dev board (NodeMCU ESP32, WROOM, etc.)
1 × 0.96" OLED Display (SSD1306, I²C version)
2 × Push buttons
2 × LEDs (red + green)
2 × Resistors (220Ω each)
1 × Optional buzzer
Breadboard or perfboard + jumper wires
USB cable for programming and power
Power bank (for portable use)
---- You can later make a small box/case to carry it like a gadget.
Wiring the Circuit
OLED VCC-----> 3.3V or 5v (for some boards)
OLED GND --------> GND
OLED SDA --------> GPIO 21
OLED SCL --------> GPIO 22
NEXT Button --------> GPIO 32
AUTO Button --------> GPIO 33
Green LED --------> GPIO 25
Red LED. --------> GPIO 26
Buzzer + --------> GPIO 27
Buzzer – ------> GND
The OLED shows constellation info.
Buttons let you change constellation or toggle auto mode.
LEDs show green if visible, red if below horizon.
Code
download code from here:
Downloads
Install the Software
1) Install Arduino IDE from arduino.cc.
2) Add ESP32 support:
- File → Preferences → Additional Board URLs → paste:
"https://dl.espressif.com/dl/package_esp32_index.json"
- Then go to Tools → Board Manager → search for ESP32 → install.
3) Install these libraries:
- Adafruit SSD1306
- Adafruit GFX
- Preferences (already included)
- WiFi (already included)
--> And go to tools and select board and select (esp32) your board type like mine was esp32 dev module
Edit the Code (that I Given)
Open the provided code in Arduino IDE.
Look for this part and add your Wi-Fi name and password:
const char* ssid = "YOUR_WIFI_NAME";
const char* password = "YOUR_WIFI_PASSWORD";
do it like
const char* ssid = "HomeWiFi";
const char* password = "12345678";
you can use your mobile hotspot also ----------
--->. 1 thing to remember that you can only open the site in the mobile or laptop that connected with same wifi given in code
Connect Via Webpage
- Open the Serial Monitor in Arduino IDE.
- It will show the ESP32’s IP address. (like : 172.xx.xx.xx)
- Type that IP into your phone browser.
You’ll see a webpage with constellation info and buttons to: (as shown in my pics i shared)
- Next constellation
- Toggle auto mode
- Enter your heading (for steer-me hints)
How to Use the Device
Turn it on at night.
OLED shows:
- Constellation name
- Azimuth (direction like 274° W)
- Elevation (height in sky)
- Visible / Below Horizon
- Set time countdown
- “Steer Me” hints
Press NEXT to change constellation.
Press AUTO to let it cycle every 10 seconds.
Use LEDs:
- Green = visible
- Red = below horizon
Use web UI on your phone for easy control.
Make It Portable
Mount parts in a 3D-printed or acrylic box.
Power with a USB power bank.
Take it outside like a real gadget.
Optionally, mount on a telescope to help point to constellations.
Upgrades You Can Try
- Add a laser pointer that points at the constellation.
- Link with a motorized telescope mount.
- Add a light sensor so it only says “VISIBLE” at night.
- Display planets and deep-sky objects.
So at Last
You’ve built a DIY Constellation Finder that combines astronomy, coding, and electronics. Unlike a phone app, this is your own hardware, customizable, portable, and fun.
It’s a learning tool for kids, a helper for stargazers, and a proud maker project that you can show off in contests!