Skip to content

JamesTheGiblet/project_jumbo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿค– Project Jumbo: The Evolving Swarm ๐Ÿงฌ

From General Jumbo's Controlled Toys to Genuine Autonomous Life

License: MIT Platform Status Generations Evolved

"What if toys could think for themselves?"

View Demo ยท Documentation ยท Hardware ยท Research


๐ŸŽจ The Vision

Remember General Jumbo from The Beano comics? A boy who commanded an army of toy soldiers with a remote control?

This project asks: What if those toys didn't need a controller? What if they could:

  • ๐Ÿงฌ Evolve their own behaviors through natural selection
  • ๐Ÿ—ฃ๏ธ Develop their own language to communicate
  • ๐Ÿง  Learn from experience across power cycles
  • ๐Ÿ˜Š Express emotions through light and sound
  • ๐Ÿค Coordinate as a swarm without central control

Project Jumbo makes this real. Not simulated. Not scripted. Actually autonomous.


๐ŸŒŸ What Makes This Special

๐Ÿงฌ Real Evolution, Not Simulation

  • Genetic algorithm running on-hardware
  • Natural selection based on task performance
  • 100+ generations evolved in real-world environments
  • Fitness increased 239% from gen 0 to gen 50
  • Parameters mutate, adapt, and persist across power cycles

๐Ÿ—ฃ๏ธ Emergent Language

  • Bots invent their own communication signals (tones + RGB colors)
  • 28 unique "words" developed by WHEELIE
  • 15% convergent evolution: Critical signals like "DANGER" independently discovered
  • 85% personality expression: Each bot develops unique dialect
  • Vocabulary evolves alongside behavior

๐ŸŽญ Personality Divergence

Same code + different roles = opposite personalities

Metric WHEELIE (Scout) GRABBER (Manipulator)
Motor Speed 200 โ†’ 235 โšก (faster) 200 โ†’ 165 ๐ŸŒ (slower)
Approach Speed 200 (aggressive) 85 (very cautious)
Decision Style Quick, reactive Slow, deliberate
Frustration Tolerance Low (acts quickly) High (patient)
Communication Fast, high-pitched Slow, melodic

Proof that intelligence emerges from interaction with environment, not just programming.


๐Ÿค– Meet The Swarm

๐Ÿ”ญ WHEELIE

Scout/Sentry

โœ… Operational

VL53L0X Laser Sensor

Fast, aggressive, confident

Generation 50+ Fitness: 0.78

๐ŸŽ๏ธ SPEEDY

Fast Scout

๐Ÿ”จ In Development

MPU-6050 IMU HC-SR04 Ultrasonic

Personality evolving...

Target: 2x WHEELIE speed

๐Ÿฆพ GRABBER

Manipulator

๐Ÿ”„ On Hold

Current Sensor Gripper Arm

Slow, patient, careful

Specialized for precision

๐Ÿ›ก๏ธ TANK

Heavy Support

๐Ÿ“… Planned

IMU/Compass Terrain Mapping

Role TBD

All-terrain capable

๐Ÿš DRONE

Aerial Recon

๐Ÿ“… Planned

Barometer Altitude Control

Role TBD

3D coordination


๐Ÿ“Š Evolution in Action

Generation 0 โ†’ Generation 50


โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ ๐Ÿ“ˆ FITNESS EVOLUTION                                        โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚                                                             โ”‚
โ”‚  Gen 0:  โ–“โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 0.23  Motor: 200  Success: 42%        โ”‚
โ”‚  Gen 10: โ–“โ–“โ–“โ–“โ–“โ–‘โ–‘โ–‘โ–‘โ–‘ 0.48  Motor: 221  Success: 64%        โ”‚
โ”‚  Gen 25: โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–‘โ–‘โ–‘ 0.67  Motor: 228  Success: 78%        โ”‚
โ”‚  Gen 50: โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–“โ–‘โ–‘ 0.78  Motor: 235  Success: 91% โœจ     โ”‚
โ”‚                                                             โ”‚
โ”‚  +239% improvement in 50 generations                        โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Key Parameter Adaptations

Parameter Initial Gen 50 Change Reason
Motor Speed 200 235 +17.5% Faster = more ground covered
Obstacle Threshold 200mm 175mm -12.5% More cautious at speed
Turn Duration 350ms 280ms -20% Quicker reactions
Backup Time 600ms 520ms -13.3% Efficient escapes

Emergent Language Development


โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ ๐Ÿ—ฃ๏ธ VOCABULARY GROWTH                                        โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚                                                             โ”‚
โ”‚  Gen 5:  โ—โ—โ—โ—โ— (5 signals)                                  โ”‚
โ”‚          Basic: obstacle, clear, trapped                    โ”‚
โ”‚                                                             โ”‚
โ”‚  Gen 25: โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ— (15 signals)                      โ”‚
โ”‚          "DANGER" signal emerges independently              โ”‚
โ”‚          Contextual variations appear                       โ”‚
โ”‚                                                             โ”‚
โ”‚  Gen 50: โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ—โ— (28 signals)        โ”‚
โ”‚          Complex emotional expression                       โ”‚
โ”‚          85% unique personality dialect                     โ”‚
โ”‚                                                             โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜


๐Ÿ—๏ธ System Architecture


โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                     ๐Ÿ–ฅ๏ธ PC MCU (Master)                           โ”‚
โ”‚              Mission Planning ยท Analytics ยท Dashboard            โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                             โ”‚ WiFi (Strategic)
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                   ๐Ÿ“ Raspberry Pi 3 Hub                           โ”‚
โ”‚              WiFi AP ยท ESP-NOW Bridge ยท Relay                    โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
          โ”‚ WiFi                                  โ”‚ ESP-NOW (1-2ms)
          โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
          โ”‚         โ”‚          โ”‚         โ”‚                โ”‚
       โ”Œโ”€โ”€โ–ผโ”€โ”€โ”   โ”Œโ”€โ”€โ–ผโ”€โ”€โ”   โ”Œโ”€โ”€โ–ผโ”€โ”€โ”   โ”Œโ”€โ”€โ–ผโ”€โ”€โ”         โ”Œโ”€โ”€โ–ผโ”€โ”€โ”
       โ”‚ ๐Ÿ”ญ  โ”‚   โ”‚ ๐ŸŽ๏ธ  โ”‚   โ”‚ ๐Ÿฆพ  โ”‚   โ”‚ ๐Ÿ›ก๏ธ  โ”‚         โ”‚ ๐Ÿš  โ”‚
       โ”‚WHEELโ”‚โ—„โ”€โ”€โ”คSPEEDโ”‚โ—„โ”€โ”€โ”คGRAB โ”‚โ—„โ”€โ”€โ”คTANK โ”‚โ—„โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”คDRONEโ”‚
       โ”‚ IE  โ”‚   โ”‚  Y  โ”‚   โ”‚ BER โ”‚   โ”‚     โ”‚         โ”‚     โ”‚
       โ””โ”€โ”€โ”€โ”€โ”€โ”˜   โ””โ”€โ”€โ”€โ”€โ”€โ”˜   โ””โ”€โ”€โ”€โ”€โ”€โ”˜   โ””โ”€โ”€โ”€โ”€โ”€โ”˜         โ””โ”€โ”€โ”€โ”€โ”€โ”˜
                     ESP-NOW Mesh (Real-time coordination)

Two-Tier Communication

Layer Protocol Latency Purpose
Tactical ESP-NOW (bot-to-bot) 1-2ms Emergency signals, coordination
Strategic WiFi (bot-to-MCU) 10-100ms Status updates, mission commands

๐Ÿ’ก Core Technologies

On Each Bot

๐Ÿงฌ Evolutionary Genome (12+ mutable parameters)
โ”œโ”€ Motor speeds, turn rates, thresholds
โ”œโ”€ Strategy parameters
โ””โ”€ Fitness-based natural selection

๐Ÿง  Learned Strategy Library (20 slots)
โ”œโ”€ Context-based retrieval
โ”œโ”€ Success rate tracking
โ””โ”€ Weak strategy pruning

๐Ÿ—ฃ๏ธ Emergent Language System (50 word vocabulary)
โ”œโ”€ Context + emotion โ†’ unique signals
โ”œโ”€ Tone patterns + RGB colors
โ””โ”€ Utility-based reinforcement

๐Ÿ˜Š Emotional State Tracking
โ”œโ”€ Frustration, confidence, curiosity
โ”œโ”€ Influences behavior and communication
โ””โ”€ Real-time adaptation

๐Ÿ’พ Persistent EEPROM Memory
โ”œโ”€ Genome saved across power cycles
โ”œโ”€ Strategies remembered
โ””โ”€ Vocabulary preserved

The Swarm

  • ESP-NOW mesh for microsecond coordination
  • WiFi for strategic planning via OLLM (LLM)
  • Heterogeneous agents (different capabilities per bot)
  • No central control (true distributed intelligence)

๐Ÿ”ฌ Research Findings

1. Personality Emerges from Role, Not Code

Hypothesis: Same genetic algorithm applied to different physical roles will produce different behavioral traits.

Result: โœ… CONFIRMED

  • WHEELIE (scout role) evolved to be fast, aggressive, risk-taking
  • GRABBER (manipulator role) evolved to be slow, cautious, deliberate
  • Opposite personalities from identical starting code

Implication: Intelligence is shaped by embodiment and environmental interaction, not just algorithm design.


2. Convergent Evolution in Communication

Hypothesis: Independent agents will discover shared critical signals.

Result: โœ… CONFIRMED

  • 15% vocabulary overlap between WHEELIE and GRABBER
  • "DANGER" signal independently evolved (similar frequency patterns)
  • 85% remains unique (personality expression)

Implication: Universal communication needs can emerge without explicit programming.


3. Swarm Coordination Multiplies Effectiveness

Test: Find red ball in living room

Metric Solo Bots Coordinated Swarm Improvement
Time 8m 34s 3m 12s -63% โšก
Energy High (redundant search) Low (divided zones) ~50% savings ๐Ÿ”‹
Success 33% (1/3 trials) 100% (3/3 trials) +200% โœ…

Implication: Collective intelligence > sum of individuals.


๐Ÿ› ๏ธ Hardware

Bill of Materials (per bot)

Total Cost: ~$50-60

Component Model Qty Cost Purpose
Microcontroller ESP32 Dev Board 1 $8 Dual-core + WiFi
Motor Driver DRV8833/TB6612 1 $5 H-bridge control
Motors TT Gear Motors 2 $10 Locomotion
Distance Sensor VL53L0X ToF Laser 1 $8 Obstacle detection
Motion Sensor RCWL-0516 Radar 1 $3 Sentry mode
RGB LEDs 4-pin Common Anode 2 $3 Emotional expression
Power 4xAA Battery Pack 1 $8 6V supply
Voltage Reg Buck Converter 1 $3 6Vโ†’5V stable
Buzzer Passive Buzzer 1 $2 Audio communication
Chassis 2WD Robot Chassis 1 $8 Structure + wheels
Misc Wire, resistors, switch - $5 Connections

Key Design Choices

โœ… ESP32 - Dual-core processor allows parallel evolution + motor control
โœ… VL53L0X - Laser ToF for ยฑ3mm accuracy (better than ultrasonic)
โœ… Star Grounding - Prevents motor noise from affecting sensors
โœ… RCWL-0516 - Microwave radar for motion detection (no false triggers)
โœ… Buck Converter - Stable 5V even as batteries drain


๐ŸŽฏ The 8-Year Journey

Project Jumbo represents the convergence of multiple research threads:

2015 โ”€โ”€โ”€ Petteomocha (Digital pet evolution)
           โ””โ”€ Learned: Fitness functions shape behavior

2018 โ”€โ”€โ”€ G.I.S.M.O. (First physical autonomous bot)
           โ””โ”€ Learned: Hardware constraints drive innovation

2020 โ”€โ”€โ”€ DPMS (Personality & organizational behavior)
           โ””โ”€ Learned: Simple rules โ†’ complex emergence

2023 โ”€โ”€โ”€ ESCP (Emergent swarm communication)
           โ””โ”€ Learned: Language can self-organize

2024 โ”€โ”€โ”€ Code Evolution (Self-modifying systems)
           โ””โ”€ Learned: Mutation + selection = adaptation

2025 โ”€โ”€โ”€ PROJECT JUMBO (Complete convergence) ๐ŸŽ‰
           โ””โ”€ All systems integrated into embodied agents

Total: 8+ years of research, experimentation, and iteration.


๐Ÿ“š Documentation

  • ๐Ÿ“˜ Architecture - System design and data flow
  • ๐Ÿงฌ Evolution - How the genetic algorithm works
  • ๐Ÿ—ฃ๏ธ Language - Emergent communication protocol
  • ๐Ÿ”ง Hardware Guide - Build your own bot
  • ๐Ÿ”Œ Wiring Diagrams - Electrical connections
  • ๐Ÿ› Troubleshooting - Common issues & fixes
  • ๐Ÿ“Š API Reference - Code documentation

๐Ÿš€ Roadmap

โœ… Completed

  • Single bot autonomous evolution (WHEELIE)
  • Emergent language system (28 signals)
  • Learned strategy library (20 slots)
  • Emotional state tracking
  • Persistent EEPROM memory
  • Personality divergence proof

๐Ÿ”จ In Progress

  • SPEEDY bot (speed specialist)
  • HC-SR04 + MPU-6050 integration
  • Advanced behavior modes

๐Ÿ“… Planned (Next 6 Months)

  • GRABBER bot completion
  • Multi-bot ESP-NOW coordination
  • OLLM mission planning (LLM-based)
  • Web dashboard for swarm monitoring
  • Collective mapping (distributed SLAM)

๐Ÿ”ฎ Future Vision (12+ Months)

  • Computer vision (ESP32-CAM)
  • 5+ bot swarm coordination
  • Tool use and object manipulation
  • Environmental modification
  • Self-replication experiments
  • Cross-species communication (other platforms)

๐Ÿค Contributing

This is an active research project! Contributions welcome in:

  • ๐Ÿงฌ Evolution algorithm improvements
  • ๐Ÿ—ฃ๏ธ Language analysis tools
  • ๐Ÿ“Š Data visualization
  • ๐Ÿค– New bot designs
  • ๐Ÿ“– Documentation
  • ๐Ÿงช Experimental ideas

(Full contribution guidelines coming soon)


๐Ÿ“œ License

MIT License - Open source, do whatever you want!

See LICENSE file for details.


๐Ÿ™ Acknowledgments

Inspired by:

  • General Jumbo (The Beano) - The original vision of intelligent toy armies
  • Genetic Algorithms - Holland, Goldberg, and others
  • Swarm Intelligence - Dorigo, Kennedy, Eberhart
  • Emergent Systems - Holland's "Emergence"
  • The Maker Community - Especially ESP32 and robotics forums

Special thanks to:

  • 8+ years of failed experiments that led here
  • Every bug that taught me something new
  • The robots themselves, for surprising me constantly

๐Ÿ“ฌ Contact

Have questions? Want to collaborate? Found a bug in a bot's genome?

  • ๐Ÿ’ฌ Open an issue
  • ๐Ÿ“ง (Your email/contact here)
  • ๐Ÿฆ (Your Twitter here)

โญ If you think autonomous robot swarms are cool, star this repo! โญ


Built with โค๏ธ and 8 years of obsession

"What if toys could think? This project answers that question."


๐Ÿค– ๐Ÿงฌ ๐Ÿ—ฃ๏ธ ๐Ÿ˜Š ๐Ÿ’พ ๐ŸŒ

About

8-year robot evolution project. 100+ generations, emergent language (28 signals), personality divergence from identical code. PhD-level work without paperwork.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages