SpiBerry banner

SpiBerry

6 devlogs
14h 5m 19s

Updated Project: Putting LEGO Spike on steroids

This project uses AI

Copilot for code completion, debugging and writing examples
Gemini Nano banana for logo generation
ChatGPT for research on picamera2 library

Repository

Loading README...

Efe

TL;DR

Added remote drive capabilities: now you can control the robot from the desktop app or via a game controller, and also get a record of the actions the robot took.

Remote Drive

  • Refactored the main code to object oriented style so it could also be used in the remote drive module.
  • Added RemoteDriveController which can run in two modes: socket (desktop app) or controller.
  • Introduced device code that enables robot control and records the actions to be run later.
  • Created a simple desktop app with tkinter that is used for the socket-based control.

WIP: Still need to compile the received “code” into actual code
Devlog note: First time video editing, apologies for the quality.

0
Efe

This devlogs mostly consists of two 11.59 PM sleep deprived coding sessions. So I don’t remember much other than fixing some issues with the vision module. This is an AI review of the last changes:

  • Added a retry mechanism that automatically extends HSV color ranges if no objects are detected.
  • Refactored color range extension logic to correctly handle multi-part ranges (e.g., red hue wrapping).
  • Enhanced detect_contours to support specific color filtering and more robust area-based filtering.
  • Added explicit error handling for unsupported picture-taking methods in the camera module.
  • Updated fallback vision configurations and improved type safety for detection filters.
Attachment
0
Efe
  • Added interactive pin configuration
  • There were a few issues with installation paths and virtual environment checks. Fixed those. It was much harder than it sounds exhausted
  • Some enhancements to the vision module
Attachment
0
Efe
  • Created a setup interface that will enable user to select which libraries they want to install. Currently it only has the libraries that are used in the vision module but many integration will come.
  • Optimized merge_close_contours function with the help of Claude
  • Added configuration options for Camera module compatible with both rpicam-apps and picamera2
  • Added examples for vision and camera modules
  • Modified the readme to include new camera capabilities
  • Made some bug fixes and improvements in ContourDetectorclass
Attachment
Attachment
Attachment
0
Efe

Vision Module

I started working on the vision module. Added,

  • Object detection
  • Contour detection (to find a single colored continuous area)
    Also fixed a few bugs (I don’t remember exactly what) and handled the installation of vision libraries
Attachment
Attachment
0
Efe

I started working on this project again. I am planning to add object detection and maybe some other cv capabilities.

Current change

Since the day I started this project I am trying to make it portable and easy to setup. I changed the project structure a bit and now I will be producing a .pyz file that will be the only thing necessary for running this project! yay

Attachment
0