Purpose of holes in motor_driver_case?

Now that I am adding motor control to my microscope, I am modifying the motor_driver_case to provide a mounting option for a bare nano and three driver modules. I am wondering, however, about the five 6.6mm diameter holes in the bottom of the bucket. What are those for? Are they used by some other iteration of the project? The scad file says they are for “breadboard mounting”. I might be having a language issue there… To me a breadboard is a white plastic block with a rectangular array of holes that are spaced and sized to allow the insertion of integrated circuit packages. I am not aware of any of those that would fit well inside the case and use that mounting pattern. Is there maybe a specific one that is used by the project that works - and I am just not aware of it? Or does that reference refer to something other than what I am thinking of? Or is it maybe intended not to hold a board down inside the microscope, but to hold the microscope down to something else - and if so, to what? I am at a bit of a loss. Without understanding why they are there, I don’t know if I can safely remove some or all of those five holes - of if there is some clearance (either around the holes or above them) that should be maintained…

Breadboards come up in different uses. The electronic ones that you are thinking of are spaced for electronic components. I think the holes in the microscope base are for mounting the microscope to an optical breadboard - usually M6 holes on a 25mm spaced grid.

@Orgeman I have the same case that I am using a bare nano and three driver modules. The provided motor_driver_case seems too small for me:

  1. with jumper cables connected the height is to low for the nano(are you using jumper cables or soldering?)
  2. with the three motor control boards, the nano and all cables it should be wider

I was thinking about two motor control cases, one for the nano sitting on a terminal adapter and another one for the control boards…

It would be perfect if you could provide a modified version!

I’m curious how do you think about connecting the bare nano to the case.

I could modifiy the case with Blender but when it comes to exact sizes I give up :wink:


@Florian-HH - I am using bare nano, 3 driver boards, and jumpers. Based on what you wrote, I am now worried that the case will be too shallow. It is already printing though - so I will let it finish and see how it works. I was able to fit all of the electronics in the footprint, but have not yet tried to put it together with all necessary cables. Regardless of if it is too shallow, I will post some images once it finishes so you can see what I am doing.

@WilliamW - thanks for the input. Given that, I am thinking that those holes likely are only needed by some users - and that those who need them will probably know if they are needed. I set them to trigger on a true/false parameter and used that to remove them from my print.

1 Like

Good idea.

Here’s my layout for the motor control board using Arduino Nano expansion board and 3 driver boards. It’s a tight squeeze but it should work :slight_smile: Am using double sided tape to secure it.


Although it wasn’t a bad attempt, my first try didn’t work. Here is what I did:

It is hard to see it on that photo, but those four posts print with little notches in them. You can maybe see that a bit better here:

The nano clicks nicely within those posts like so:

Here is an image with all of the electronics mounted:

Where it all falls apart is I did not take into consideration just how large the connectors are that fit on the pins. As this sits right now, the connectors themselves would just fit, but then there is no room for the wires coming out of those connectors. Even if I bent them at a right angle right past the connectors, it would still go too high. I don’t see any way to fix this orientation without making the box deeper - which I guess is an option… I need to think a bit about if there is any other way to change it.


@Orgeman Hey, that looks good! Yes, perhaps a bit deeper and everything fits perfectly.

This looks beautiful - making it a little taller should just be a matter of tweaking the height parameter, though of course it would mean printing again… From your use of the triangular holes, I’m wondering if you made this in OpenSCAD - in which case I’d be delighted to pull the changes in to the main repository if I can. It would be super to have an option for this in the “official” STL download.

There’s an issue thread here:

I’d be delighted either with an OpenSCAD file, or (even better) with a Merge Request if that’s something you are familiar with (a Merge Request would mean you show up in our Git History, which I always think is a nice record of who did what).

Yeah - it is all OpenSCAD. I will see about doing a merge request - or if not, will send the file. But let me play with it a bit more first. I am tweaking it still. Below you can see a test print that gives an idea of how I am changing it.

By mounting the nano on edge, it fits within the volume of the current box. Since most of the digital pins that you need are on the top row, they should be pretty accessible. Two pins are needed on the bottom row, but those should still work. Unfortunately, the USB cable is going to stick out of that hole in the box (the one that for the pi is power and display), and then either loop back in to go out the side where the pi USB are, or it is going to go out and around the outside. I haven’t been able to come up with a way to fit everything and avoid that - and am pretty close to just accepting that that is how it has to be. I thought I could flip the nano, but then most of the pins you need are on the less accessible bottom row…


Alright - I think that is as good as I am going to get it. Here is the motor driver box:

I couldn’t do anything about the USB poking out the side hole. It isn’t super bad. You can see that more clearly here:

I shifted the one driver board from the previous attempt to make a little more room as well - so here it is with all three drivers, the nano, and the USB cable:

I still have some more cabling to go - but everything else should now fit. I will clean up the OpenSCAD file (I did some of it as a pretty crude hack just to see if it would work) and will then do a merge request. I will mention that the nano support is fragile. I haven’t had one break with initial insertion when I was careful. I have had the post on the USB side break off if I tried to insert and remove the nano a couple of times…


I apparently don’t have a clue what I am doing with gitlab… I tried to paste the updated file in and create a merge request, but it won’t let me. It tells me that I already have a merge request. I am sure that is because I already edited that same file and did a merge request for the parametric wall thickness settings. Is there something different I should do to be able to create it. Git is completely new to me.

I have ended up with some cables going through the box even with the Sangaboard - I actually don’t mind it, because usually the calbes are too long anyway, so having it go through the box takes up the slack and keeps it neat.

The Sangaboard v0.4, once we’re finally able to test and produce it, will be a Pi HAT and eliminate a bunch of annoying wiring!

thanks - I see the issue with the merge request; your previous merge request (which I will merge in once I’ve figured out if there’s anything else that needs to change as a result of the thicker walls) asks the OpenFlexure repository to pull in changes from the “master” branch of your fork. As the changes you’ve made since then to add the motor driver boards are also on that same branch, they will get pulled in by the same merge request. So it’s correct, there’s nothing more you need to do.

You could mention in the description of the MR that it now includes the separate motor board mounts as well as thicker walls if you like, but I think I can update that too so no worries either way.

@Orgeman I really like your case design and I would like to print it but I’m not sure if it fits below the microscope stand. Have you tried that? Because in my Slicer(Simplify3D) it appears that the connections above are a bit too wide. Check out my screenshot(the yellow part is your case and the orange part is the current case - the mouse pointer show the different sizes). Just to get sure before printing it :wink:

Hi @Florian-HH,

It does fit, but I use a modified version, and that is probably what you are seeing. I set the wall_thickness variable to 2.35mm because I print with ABS and for me that results in a much better print. The default is 1.50mm - which you should probably use if you are printing PLA which is much more forgiving on layer-to-layer adhesion. If you print a stand at 1.50, and the motor case at 2.35, I am pretty sure that will not work. So if you already have the stand at 1.50, try setting the motor case to match and see if that is more what you are expecting. I can confirm that it works with both at 2.35 as shown here (ugly as the mixed versions might be):

I have not printed and tested with both stand and case at 1.50. I have made stl files of them and then lined them up graphically. It looks like that should work the same as with the thicker walls that I use… I can tell from the lower edge of the power/display cutout in your image that the walls are two different sized - so almost certainly you are looking at a 1.50 vs 2.35.

1 Like

Hi @Orgeman,

I understand the setting but I don’t know how to set the wall_thickness variable in Simplify3D. Perhaps it’s a tool problem :wink:
I could set “Thin wall behavior”, perhaps I should give it a try. I could start printing the upper part only to see if it fits.

Edit: I found the setting, it’s a combination…
Wall Thickness = (Extruder tab > Printing Selected Tool > Extrusion Width) * (Layer tab > Number of perimeters)
It’s actually at 1.50 and I’ll try to print the case with the same settings.


@Florian-HH - it is actually a variable in the OpenSCAD file. Look near the beginning for wall_thickness = 2.35. Change it to 1.50, and then export a new STL. That will be much more likely to give you good results than doing it with the slicer settings.

1 Like

@Orgeman Perfect, thank you!


I didnt find any scad file of this housing, and I am very interrest for it.

@Orgeman great work and idea for that, but still If you can share or if @r.w.bowman have you plan to merge it soon ?

Best regards