I am building a low-cost version of the OFM, and using the electronics workaround with an Arduino nano.
I used the Arduino sketch linked from step 2 of the instructions here:
However, when testing the system, OpenFlexure Connect complains about the firmware:
The Raspberry Pi currently uses the latest OpenFlexure OS (v3.0.0-Beta), would using the stable v2.11.0 resolve this issue? Or do I need to update the firmware to v1? If so, the instructions found here are pretty opaque:
This link is also not available from the main instructions for the electronics workaround.
I am familiar with using Arduino IDE but the alternative option is a bit unclear. Do I need to clone that repo and flash the firmware using Python?
Thanks in advance.
Nothing is soldered and no illumination yet, still testing using a breadboard.
We are in the middle of trying to update this part of the instrctions. Perfect us becoming the enemy of done.
To load the v1.0.4 Sangaboard firmware the simplest method (on windows) is now to use AVRdudess. There is a Gitlab Issue or Merge Request for how to do that. Draft: Add instructions for Nano firmware upload. (!553) · Merge requests · OpenFlexure / openflexure-microscope · GitLab there are some comments at the bottom of the discussion there that you might need.
The firmware to load is available, but not currently in an obvious place. I shall post the link when I am on a better connevtion to find it. Edit:
Pipeline #2052089147 · OpenFlexure / Sangaboard / sangaboard-firmware · GitLab there is a download button (a down arrow icon) in the zip file you want nano.exe
The firmware that you have got will work with the server v2.11. (Install the Software - The OpenFlexure Project)
The current sketch should work with server v2.11 per William, so trying that first is a quick way to see whether OpenFlexure Connect still complains. If you do need v1.0.4, you do not need to clone the PlatformIO repo or flash via Python for the Nano: AVRdudess is a GUI front-end for avrdude and can flash the prebuilt firmware. Use the merge-request comments for the upload settings until the main instructions are updated.
Following instructions, I installed AVRDUDESS and specified the parameters to match those in the merge request comments. This looks pretty promising, I will test the system with the new Arduino firmware tomorrow.
For the revised instructions, it would be good to specify all the details required by AVRDUDESS. For example, what MCU (-p) option to use was not obvious. I deduced that “ATmega328P” would match @WilliamW “-p m328p” command line equivalent in the merge request comments.
Thanks for the timely reply.
Sorry, I was in a bit of a rush and forgot to say that in the Merge Request for the revised instructions with AVRdudess, you can see all of the properly built instructions including the changes. There is a view app button below the row of green ticks in the merged results pipeline towards the top of the page.
That takes you to a full version of the instructions, and if you go to the workaround wiring instructions as before, you should be able to find Assembly Instructions.
That tells you how to configure the upload - there is a preset for the Arduino Nano. This works for boards with what is known as the ‘old bootloader’, used by many clone boards. New Arduino brand Nano boards have a new bootloader, which seems to need the same settings, but with the baud rate for upload set to 115200 as in my comnents on the MR.
Thanks again for all the assistance, I tested the system this afternoon and it all works fine! I still need to install the illumination, but the motor controls all work as expected.
I wired the illumination and ran a slide scan, I am very impressed with the resulting composite image. Time to neatly wire everything now.