git404hub

what is esp32-ecosystem-sim fr?

ootake0914-dotcom/esp32-ecosystem-sim — explained in plain English

Analysis updated 2026-05-18

22C++Audience · vibe coderComplexity · 4/5Setup · hard

tl;dr

A self-running artificial life simulation of plants, herbivores, predators, and disease that runs on an ESP32 microcontroller with a small color screen.

vibe map

mindmap
  root((esp32-ecosystem-sim))
    What it does
      Runs an autonomous ecosystem
      Displays on ESP32 plus TFT screen
      No user interaction needed
    Entities
      Plants and herbivores
      Carnivores and apex predators
      Spores and decomposers
    Traits
      Altruism gene
      Immunity gene
      Speed gene
    Tools
      Arduino IDE flashing
      Python simulator with matplotlib
      Two-core ESP32 workload split

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

what do people make with this?

VIBE 1

Flash an ESP32 with a small TFT screen to build a self-running desk toy that simulates a living ecosystem.

VIBE 2

Run the included Python script to preview and tune how the plant, herbivore, and predator populations balance before flashing real hardware.

VIBE 3

Fork the project to add new creature types, weather effects, or genetic traits to the simulation.

what's the stack?

C++ArduinoESP32Pythonmatplotlib

how it stacks up fr

ootake0914-dotcom/esp32-ecosystem-simtherezor/cardputer-aizunhaisu/oscar-kv-quant
Stars222222
LanguageC++C++C++
Setup difficultyhardmoderatehard
Complexity4/54/55/5
Audiencevibe coderdeveloperresearcher

Figures from each repo's GitHub metadata at analysis time.

how do i run it?

Difficulty · hard time til it works · 1h+

Requires an ESP32 board and a wired 1.9 inch ST7789 TFT display, plus the TFT_eSPI Arduino library.

in plain english

This project is a small artificial life simulation built to run on an ESP32 microcontroller connected to a 1.9 inch color screen. Once flashed onto the hardware, it draws a tiny self running ecosystem on the display, with no buttons or interaction needed. You just plug it in and watch plants, animals, and predators live out their lives on screen. The simulation models seven kinds of entities that form a food chain: plants that grow over time, herbivores that eat plants, carnivores that hunt herbivores, apex predators that hunt carnivores, spores that infect and eventually kill animals, corpses left behind by dead creatures, and decomposers that clean up corpses and spores and eventually turn them back into new plants. Each creature has simple physics and steering behavior, similar to flocking simulations, giving them a sense of movement and awareness of their surroundings. Entities also carry simple inherited traits. An altruism trait makes some herbivores share energy with weaker relatives and isolate themselves when infected. An immunity trait can block infections but costs more energy to maintain, which creates trade offs between individuals that survive disease outbreaks and individuals that breed more efficiently in calm times. A speed trait affects how fast a creature moves, trading escape ability against how easily it starves. As creatures survive and age, their on screen color shifts to show they are veterans. On the hardware side, the code uses the ESP32's two processor cores separately: one core runs the physics, collision checks, and creature behavior, while the other core is dedicated to drawing pixels to the screen over SPI. The project lists the exact display model and wiring pins needed, and explains how to install the required display library and flash the code using the Arduino IDE. A separate Python script is also included so you can test how the ecosystem behaves without needing the physical hardware. Running it simulates thousands of steps and produces a population graph using matplotlib, which is useful for checking whether the balance between plants, herbivores, and predators looks stable before flashing real hardware.

prompts (copy fr)

prompt 1
Walk me through wiring an ESP32 to a 1.9 inch ST7789 TFT display so I can run esp32-ecosystem-sim.
prompt 2
Explain how the altruism, immunity, and speed genes in esp32-ecosystem-sim affect which creatures survive.
prompt 3
Help me run the sim.py Python simulator from esp32-ecosystem-sim and read the resulting population graph.
prompt 4
Show me how to add a new creature type to the esp32-ecosystem-sim food chain.

Frequently asked questions

what is esp32-ecosystem-sim fr?

A self-running artificial life simulation of plants, herbivores, predators, and disease that runs on an ESP32 microcontroller with a small color screen.

What language is esp32-ecosystem-sim written in?

Mainly C++. The stack also includes C++, Arduino, ESP32.

How hard is esp32-ecosystem-sim to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is esp32-ecosystem-sim for?

Mainly vibe coder.

peek the repo → explain another one

This repo across BitVibe Labs

double-check against the repo, no cap.