IOTHUB SOFTWARE
Practical IoT Development Environment
Installing tools is not the goal. The goal is a working chain: the board appears on USB, code uploads, logs are visible, libraries compile, Python runs, and phone alerts can be tested.
Setup Order
To follow the Home IoT HUB series, you need a few pieces of software. They only need to be installed once, so spend ten minutes and get it over with. It is not difficult. Install them once and move on.
Required Programs
| Program | Why it is needed | Difficulty | Time |
|---|---|---|---|
| Arduino IDE | Uploads code to ESP32 boards | ★☆☆ | 5 min |
| ESP32 board setup | Makes Arduino IDE recognize ESP32 boards | ★☆☆ | 2 min |
| Required libraries | Code bundles for OLED, TFT, and sensors | ★☆☆ | 2 min |
| Python | Runs the AI broker server | ★☆☆ | 5 min |
| Telegram and bot setup | Receives home status alerts on your phone | ★★☆ | 5 min |
Arduino IDE
This is the program that puts code onto an ESP32 board. It is free.
- Download: arduino.cc/en/software
- Official guide: docs.arduino.cc/software/ide-v2
Windows, Mac, and Linux are all supported. If the installer asks about drivers, choose yes.
ESP32 Board Setup
Arduino IDE knows Arduino boards by default. ESP32 must be added once.
- Open Arduino IDE →
File→Preferences(on Mac:Arduino IDE→Settings) - Paste this into
Additional boards manager URLs:
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.jsonOK→Boards Managericon → searchesp32→Install- If
Tools→Board→ESP32 Dev Moduleappears, it worked.
ESP32 setup and troubleshooting →
Required Libraries
Each part needs different libraries, but these are used often. Install them from Tools → Manage Libraries in Arduino IDE.
| Library | Search keyword | Used for |
|---|---|---|
| TFT_eSPI | TFT_eSPI | TFT LCD control (Parts 21-22) |
| Adafruit SSD1306 | Adafruit SSD1306 | OLED control (Parts 2-20) |
| Adafruit GFX | Adafruit GFX | Basic graphics |
TFT_eSPI needs User_Setup.h editing after installation. Detailed setup →
Python
Python runs the small middle server that connects ESP32 with AI.
- Download: python.org/downloads
- Official guide: docs.python.org
On Windows, always check Add Python to PATH during installation. If you miss this, the python command may not work later.
Python install and terminal basics →
Telegram and Bot Setup
To let the AI helper send messages to your phone, you need a Telegram bot.
- Install
Telegramfrom the app store. - Search
@BotFather, send/newbot, then copy the token. - Search
@userinfobot, send/start, then copy theId:number.
Telegram and bot setup details →
Setup order matters
A practical IoT environment is a chain. Arduino IDE, board support, USB drivers, libraries, Python, and Telegram alerts all need to work together. If one link fails, the wiring guide or sensor code later will look broken even when the real problem is the development environment.
- Upload a blank sketch before adding sensors.
- Open Serial Monitor and confirm readable logs.
- Compile display and network library examples.
- Run Python inside a virtual environment.
- Send one Telegram test message before relying on alerts.
The environment is ready only when you can reproduce the same setup on another computer.