top of page

Beta Firmware - IMX519 (16mpx autofocus) + DSLR (finally!!)

Updated: Jul 14, 2022

I am finally able to release a beta version of the OpenScan firmware supporting both the new IMX519 Arducam camera module and DSLR cameras (via USB).


There are still quite a few things that need improvement, but at least this is a good starting point for testing. So feel free to download the pre-compiled Raspbian Image from Google Drive (1.5GB). Please read the setup instructions and limitations below! Note, that the native pi cameras (1.3, 2.1 and HQ) are currently not supported yet.

- raw scan of a 28mm figurine using the IMX519 + OpenScanCloud -


Stupidity at work (a little self-roast)

When you touch a camera module for the first time and read the setup manual carefully, you will come across the following line:


"Please make sure to insert the ribbon cable in the right orientation"


To make it short: Yesterday, I have lost almost half a day trying to fix "software" issues, because I thought, I could skip the above-mentioned quote when repeatedly swapping the camera between different Raspberry Pi versions to test the firmware ...


Why does it all take so long?

Besides the above-mentioned reason, there are some external factors too.

The Raspberry Pi foundation announced its move to implement the libcamera framework almost two years ago and released the first operating system including libcamera in November 2021 (Bullseye).


The move and intention are great, but so far the implementation of libcamera is not fully done by the Foundation/Community. Once completed, it should be much easier to run third-party cameras like the Arducam IMX519 (and others). To be clear, Arducam is doing a great job providing the right drivers and very good technical support! The issue is, that the general libcamera implementation in Raspbian Bullseye is still quite buggy and needs further improvement.


For this reason, I had to find several workarounds and currently, the native pi cameras (v1.3, v.2.1 and HQ) are not supported in this OpenScan firmware release, yet.


BUT the IMX519 with 16mpx and DSLR triggering via USB finally work!


Since I rewrote most of the code, I would be very happy if you could join the testing and help me find and fix those little bugs...


Setup

The setup is pretty straight-forward. The Raspbian image is pre-configured for the OpenScan Mini using a Raspberry Pi 3B+ and an Arducam IMX519.


Just download the image from Google Drive, flash it to an SD card, insert the card and start the device (connected to your router by Ethernet, or alternatively modify the wpa_supplicant.conf to use Wifi).


Once started, you can reach the user interface at:


http://openscan


And the node-red editor at


http://openscan/editor


If you are using the OpenScan Classic (or any other version), you can simply change the mode in the settings menu.


When using a Raspberry Pi 4, you will have to re-install the camera drivers (god/buddha knows why), simply by running the following two commands in the console (via ssh, user: pi, password: raspberry) :


wget -O install_pivariety_pkgs.sh https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/install_pivariety_pkgs.sh && chmod +x install_pivariety_pkgs.sh


./install_pivariety_pkgs.sh -p imx519_kernel_driver


Many DSLR cameras are now natively supported. You can simply select DSLR (gphoto) in the settings menu, connect the camera and reboot the device.


I have created a new github repository to get rid of all my prior misdoings (and in order to create a better overall structure): Github


Final notes

This release definitely contains some bugs, so please help to find (and fix) those :)

By now, I have been working two months straight on this release. And finally, I get the feeling that we are getting closer to completion :)


And as always, if you like the project, feel free to support it by either joining the beta-test, sharing the good news or buying me a coffee (or two ;)


Thank you and best regards,


Thomas

2,934 views7 comments

Recent Posts

See All

Is OpenScan an Open Source project?

The short answer is absolutely yes, the longer answer gets a bit more nuanced and we will have to dig into some details. So if you are concerned or just interested, stick around and feel free to share

7 Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating

Downloaded the software so I could try it out before I 3d print anything. It works well on a Pi2B with the Arducam 519, but you need to run the 2 commands above first. Pictures are nice and clear with the default settings once the drivers are reinstalled. I now need the longer cables so that I can build the 'openscan-mini'.

Thanks for a nice 3 scanning solution.

Like

Trevor Agnitti
Trevor Agnitti
Mar 20, 2022

I put together an openscan mini using the IMX519 cam on raspberry pi 4. I'm running the latest beta version which seems to recognize the IMX519 cam, but it doesn't seem to ever take a picture. I ran those 2 lines "./install_pivariety_pkgs.sh -p imx519_kernel_driver" and the other one and it installed those components. I check the ribbon cable at both ends and it seems pretty good. I'm still waiting for my openscanCloud token, but I think I should be able to at least see a preview scan. Why can't I see any preview image?




Shouldn't a preview scan be visible from the scan menu picture above?

And what does it mean when the "?" appears on the buttons on the…

Like
Trevor Agnitti
Trevor Agnitti
Mar 25, 2022
Replying to

If anyone else has this issue, this was my fix: https://tutorial.cytron.io/2022/03/04/arducam-high-resolution-autofocus-camera-16mp-imx519-for-raspberry-pi-buster-os/

Like

Habe eine Lösung gefunden.

Like

Hallo hat jemand einen Tipp für mich wie ich die IMX519 Arducam Kamera befestigen kann beim Openscan Mini ? Die kleinen Plastik Schrauben sind nun zu kurz … Danke!

Like
Replying to



Like
bottom of page