scottbez1 / splitflap

DIY split-flap display
https://scottbez1.github.io/splitflap
Other
3.09k stars 257 forks source link

Hall Effect Sensor Spacing and Jig #101

Closed dmadison closed 3 years ago

dmadison commented 3 years ago

This PR dynamically adjusts the hall effect sensor's height off of the PCB in the model based on its distance from the spool. The sensor will maintain the same relative distance from the spool as the model is changed and throw an error if its distance from the PCB exceeds the max length of the sensor's leads (per the datasheet). I also created a small lasercut jig that fits between the PCB and the sensor to aid in soldering.

Using your v0.5 sensor assembly video as reference, I set the spool offset to 0.7 mm which corresponds to a distance of 5.8 mm from the PCB. Note that this PR has a conflict with #100 that will need to be resolved, as the new jig is cut out of the motor window area.

Here are some demonstration gifs, using a change in material thickness (3.2 -> 1.0) to show the dynamic position.

Before:

sf-sensor-position-master

After:

sf-sensor-position-pr

And here's the change to the lasercut design (before / after).

The spacing jig can be viewed in-place in the 3D design by changing render_sensor_jig to 'true'.

dmadison commented 3 years ago

I was thinking a little more about this and the thickness issue (#93). If your original design was manufactured at 3 mm thick with the CAD thickness set to 3.2, should the spool offset be lowered down to 0.5? That would make the current design offset by 6 mm, which would go down to the accurate 5.8 mm when the thickness is lowered to 3.0.

scottbez1 commented 3 years ago

I was thinking a little more about this and the thickness issue (#93). If your original design was manufactured at 3 mm thick with the CAD thickness set to 3.2, should the spool offset be lowered down to 0.5? That would make the current design offset by 6 mm, which would go down to the accurate 5.8 mm when the thickness is lowered to 3.0.

I don't know that it matters enough to be worth preserving that "accurate" 5.8mm value. IIRC the 5.8mm was determined empirically/by eye, and was really specified with more significant figures than relevant, especially considering the leads are being hand-bent and there's typically more than 0.2mm worth of axial slop in the output shaft of the 28byj-48 motors...

dmadison commented 3 years ago

That's fair. In that case I'll leave the value as-is. Plus it's probably better to keep the sensor farther away from the spinning spool if possible.

dmadison commented 3 years ago

(Closing / reopening to re-trigger the Travis CI build, which apparently failed on the electronics section)