Bonsai on Raspberry Pi #1508
Replies: 2 comments 8 replies
-
@roaldarbol Thank you for your feedback, it will be great to compare notes. I was able to install and run the new Bonsai 2.8 on my RPi 4 Model B just before publishing this release and it ran fine on the latest RPi OS 32-bit. I downloaded the latest Imager and flashed a clean SSD just to be sure. I did have to run the bootstrapper using I was able to get so far as to get OpenGL and OpenCV running loading images, and I believe I was also able to start a USB camera last time, but I need to try and rebuild everything again so we can compare notes. I will reply here with notes on progress and I can also publish some |
Beta Was this translation helpful? Give feedback.
-
This would be absolutely a game-changer for bonsai. Any further updates on this? |
Beta Was this translation helpful? Give feedback.
-
Why run Bonsai on Raspberry?
Raspberry Pi's are becoming increasingly popular in research labs (e.g. autopilot). Here are a few advantages to them:
I've started testing the new Bonsai 2.8 on my Raspberry Pi 4 8GB, and thought I'd share my experiences here (and maybe get some useful feedback). Since the RPi can run both the Raspberry Pi OS and Ubuntu, I tried with both different OS's - here are my take-aways.
I'll update continuously.
Testing
I'm trying to be consistent with the installation steps across OS to get a good idea about what works and what needs more work... to work... For clarity, I've written the steps taken along with potential error messages. Let's dive in!
Steps
Preparation
sudo apt update & sudo apt upgrade
ls /dev/video*
to see if CSI camera is picked up (or simplylibcamera-hello
on the RPi OS's)Installation (for Linux)
sudo apt install mono-complete -y
VideoCaptureDevice
Raspberry Pi OS (32-bit)
Can't open Bonsai (also tried
Bonsai32.exe
with the same outcome):Error message
Raspberry Pi OS (32-bit) on SSD
Unable to install Mono. Will try again on a fresh installation.
Error messages
Raspberry Pi OS (64-bit)
libjasaper
VideoCaptureDevice
Mostly works! However, the CSI camera is not being picked up by Bonsai, possibly because OpenCV isn't install (@glopesdev does
VideoCaptureDevice
depend on OpenCV?).Ubuntu Desktop 23.04 (64-bit)
libjasaper
VideoCaptureDevice
Mostly works! However, I am trying to record video with a RPi HQ camera (actually an Arducam IR HQ camera), and Bonsai doesn't pick it up. I'll try with another CSI camera and see if that works.
Final comments
OpenCV installation
OpenCV
from source, you also need to install CMAKE (sudo apt install cmake
).cd ~/opencv
tocd opencv
.Beta Was this translation helpful? Give feedback.
All reactions