Skip to content

fuzailpolin/Braitenberg-Vehikel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง  Braitenberg Vehicle Simulation using Python & Pygame

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.


๐Ÿš— What Are Braitenberg Vehicles?

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.


๐Ÿ”ง Tech Stack

  • ๐Ÿ Python 3.x
  • ๐ŸŽฎ Pygame (2.x)
  • ๐Ÿง  Vector-based physics
  • ๐Ÿ’ป Custom-built logic for multiple vehicle types

๐Ÿงญ Features

  • โœ… 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

๐Ÿ“‚ Folder Structure

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!

๐Ÿš€ Getting Started

1. Clone the Repository

git clone https://github.com/fuzailpolin/Braitenberg-Vehikel.git
cd Braitenberg-Vehikel

2. Install Dependencies

pip install ...

3. Run the Simulation

python3 filename.py

๐Ÿ“ธ Screenshots


๐Ÿ“ˆ Roadmap

  • 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)

๐Ÿง‘โ€๐Ÿ’ป Author

Abu Fuzail Polin
๐Ÿ‘จโ€๐ŸŽ“ MSc Artificial Intelligence, BTU Cottbus
๐Ÿ’ผ Passionate about Machine Learning, and autonomous behavior
๐Ÿ“ฌ [fuzail.polin@gmail.com]


๐Ÿ“„ License

This project is licensed under the MIT License.
Feel free to fork, improve, and contribute.


๐ŸŒŸ Contributions

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.

About

Implementation for the University course Braitenberg Vehikel using Python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages