RealRobotics / pi-rugby-ball

6 RPi Zero 2 Ws mounted on a rugby ball shaped device for exploring shafts. Contains setup notes and scripts to run the code.
MIT License
0 stars 0 forks source link

Get ball working using Python scripts #8

Open AndyBlightLeeds opened 11 months ago

AndyBlightLeeds commented 11 months ago

Use Raspberry Pi OS Lite (latest) as a base.

AndyBlightLeeds commented 11 months ago

Started yesterday. Ran example code for camera, IMU and flow sensor. 2h00 Wrote up some of the setup instructions.
Added test programs for IMU and flow sensors. Working OK. Tested camera examples. Most don't start due to error. 2h00 4h00

AndyBlightLeeds commented 11 months ago

Disable the GUI like this: https://forums.raspberrypi.com/viewtopic.php?t=11005 sudo chmod 644 /etc/init.d/slim

AndyBlightLeeds commented 11 months ago

Error when running picamera2 examples: libcamera_config.transform: object has no attribute 'transform'

AndyBlightLeeds commented 11 months ago

Trying again with Raspberry Pi OS Lite as desktop is very, very slow. 1h00 5h00

AndyBlightLeeds commented 11 months ago

Main problem found was that it would not do sudo install python3-pip or any other package for that matter. Something wrong with apt? 1h30 6h30

AndyBlightLeeds commented 11 months ago

Packages installing now that I'm using my home network. There must be something different with my phone hotspot that was making it not work. 0h15 6h45

AndyBlightLeeds commented 11 months ago

Installed everything needed and tested camera using stills. Frames per second is at best a guess on the Pi Zero, roughly about 40% of what you ask it to do. 3h30 10h15

AndyBlightLeeds commented 11 months ago

Fixed video (pretty easy once you know enough about picamera2). 0h45 11h00

AndyBlightLeeds commented 11 months ago

Glue code works but is not very customisable. 4h00 15h00