This project simulates various types of Braitenberg Vehicles using Python and Pygame, exploring how simple sensor-to-motor connections can create complex, lifelike behavior.
๐ฌ Inspired by Valentino Braitenberg's thought experiments on synthetic psychology.
Braitenberg vehicles are simple autonomous agents that display intelligent-like behavior by wiring sensors directly to motors. Despite their simplicity, they can mimic:
- Fear
- Aggression
- Curiosity
- Attraction to light, heat, or sound
This simulation brings these ideas to life visually using Pygame.
- ๐ Python 3.x
- ๐ฎ Pygame (2.x)
- ๐ง Vector-based physics
- ๐ป Custom-built logic for multiple vehicle types
- โ Real-time simulation of Braitenberg vehicles
- โ Directional light sensors
- โ Distance-based speed modulation
- โ Min/Max speed tracking
- โ Modular vehicle types (Type 1a, 2b, etc.)
- โ Expandable architecture for AI logic
braitenberg-vehicles/
โ
โโโ vehicle_type1a.py # Simple forward-speed logic
โโโ vehicle_type2b.py # Left-right steering logic (coming soon)
โ
โโโ requirements.txt # Python dependencies
โโโ README.md # You're here!
git clone https://github.com/fuzailpolin/Braitenberg-Vehikel.git
cd Braitenberg-Vehikelpip install ...python3 filename.py- Type 1a: Direct sensor-to-speed mapping
- Type 2b: Dual sensors with cross-wired logic
- Avoidance behavior
- Real-time visualization of sensor rays
- GUI for selecting behavior types
- Export data for ML training (CSV/logging)
Abu Fuzail Polin
๐จโ๐ MSc Artificial Intelligence, BTU Cottbus
๐ผ Passionate about Machine Learning, and autonomous behavior
๐ฌ [fuzail.polin@gmail.com]
This project is licensed under the MIT License.
Feel free to fork, improve, and contribute.
Pull requests are welcome! If you want to add a new vehicle type, improve the architecture, or enhance visualsโfeel free to get in touch.