Project Overview
The AI Smart Interactive Robot Teacher for Kids is an advanced IoT educational robot. It uses ESP32, Artificial Intelligence, n8n automation, Telegram voice alerts, Google Sheets and ThingSpeak cloud monitoring.
- AI Teaching Assistant
- Voice Interaction
- IoT Cloud Monitoring
- Parent Notification System
- Learning Analytics
System Architecture
Child | Voice Command | AI Robot Teacher | ESP32 Controller | WiFi | n8n Automation | ------------------------- | | | Telegram Google ThingSpeak Bot Sheets Cloud
Components List
| Component | Purpose |
|---|---|
| ESP32 | Main Controller |
| ESP32 CAM | AI Vision |
| INMP441 Mic | Voice Input |
| Speaker | Voice Output |
| OLED Display | Information Display |
| Ultrasonic Sensor | Obstacle Detection |
| Servo Motor | Robot Movement |
Circuit Connections
ESP32 GPIO4 -> OLED SDA GPIO5 -> OLED SCL GPIO18 -> Servo Motor GPIO25 -> Speaker GPIO34 -> Microphone GPIO26 -> Ultrasonic Trigger GPIO27 -> Ultrasonic Echo GPIO32 -> Temperature Sensor
Working Flow
START | Power ON | Connect WiFi | Initialize Sensors | Wait For Child Voice | AI Processing | Generate Answer | Speaker Output | Send Data To Cloud | n8n Automation | Telegram Alert END
n8n Automation Workflow
ESP32 | Webhook Trigger | Function Node | Google Sheets Storage | Telegram Voice Alert | ThingSpeak Update
Telegram Bot Setup
1. Open Telegram
2. Search BotFather
3. Create New Bot
4. Copy API Token
5. Add Token in n8n Telegram Node
Google Sheets Database
| Date | Topic | Question | Score | Battery |
|---|---|---|---|---|
| 25-06-2026 | Math | Addition | 10/10 | 85% |
ThingSpeak Dashboard
Channel Fields: Field 1 - Learning Activity Field 2 - Battery Level Field 3 - Temperature Field 4 - Robot Usage
ESP32 Source Code Example
#include WiFi.h
#include HTTPClient.h
void setup()
{
Serial.begin(115200);
WiFi.begin(
"YOUR_WIFI",
"PASSWORD"
);
}
void loop()
{
String data =
"{topic:Math,battery:80}";
HTTPClient http;
http.begin(
"https://n8n-server/webhook/robot"
);
http.POST(data);
http.end();
delay(10000);
}
AI Power Prediction Logic
Power = Voltage x Current Energy = Power x Time AI predicts: Battery Remaining Time based on: Battery Level Motor Usage Learning Duration
Future Enhancements
- Face Recognition
- Emotion Detection
- AI Vision Camera
- Multi Language Teaching
- Cloud AI Model
- Smart Classroom Mode
Deployment Steps
- Assemble robot hardware
- Connect ESP32
- Upload firmware
- Create n8n workflow
- Configure Telegram Bot
- Create Google Sheet
- Connect ThingSpeak
- Test AI interaction












