Sarit's Blog
Sunday, March 10, 2024
How to download photos from an Amazon Photos Album
Saturday, November 19, 2022
Getting my old Logitech Quickcam Pro 4000 to work on Octoprint
The library that Octoprint uses to connect to a webcam and stream images to the octoprint window is called mjpg-streamer. It works for many webcams, but of course not my trusty Logitech Quickcam Pro 4000. Upon further investigation it turns out my camera only supports the Y12 format but that library can support just the YUV version of that format (there's even a pull request to add support for it). Luckily someone has made their own service called PICS which can read that format and it works pretty well. I forked the project and added some helpful code to allow you to automatically run PICS at boot. Clone the repo, follow the steps to build and run in the Readme, then scroll to the end and follow the steps to "Creating a service to start PICS on boot". This creates a stream that can be viewed at http://octopi.local:8080/dev/video0 which is the URL you can use in the Octoprint WebCam config.
Monday, October 31, 2022
Connecting the Raspberry Pi to the Robin Nano via GPIO pins
Since the Robin Nano board is mounted such that the USB port is only accessible outside the printer, I had to snake the USB cable out through one of the holes and around the printer to reach the port. For a clean installation, I need a way to let the Raspberry Pi connect to the nano using the GPIO pins.
USB port can only be reached from the outside |
Currently, however, most of the easily accessible pins are already taken on my board as part of enabling SPI communication on the TMC2209 drivers.
Most easy to access pins are used |
Establishing Common Grounds
Klipper/RPi Configuration
- saved the config
- ran "make" to build the image
- used the mks script to convert the image to one compatible with robin nano
- used Filezilla to get the file onto my computer
- copied image to sd card
- booted robin nano with sd card (the image file will get renamed with a *.CUR extension)