this post was submitted on 26 Jul 2023
1 points (100.0% liked)

vintech

71 readers
1 users here now

This is a place for people residing in Vietnam to discuss technology -- because sometimes the local optimum for a problem is a little bit different here.

No ads, political content, NSFW, and so on. Be helpful, kind, and patient.

founded 1 year ago
MODERATORS
 

So, we started with this:

It arrived looking like this:

And then I populated it by hand:

(on the verso is the tilt switch and the CR2032 holder)

Some lessons learned!

  1. When putting a current limiting resistor in place for an LED, put space for another in parallel. That way, if you only have one part, you can double the brightness without ordering new parts.
  2. Swapping the position of the tilt switch and the LED is possible, this would have made a slightly smaller board. I could also have made it properly 2-layers, but this is more expensive without making it much smaller -- although it does let me place the CR2032 cell more freely on the board, instead of only exactly where it is.
  3. I thought I could just solder an LED to the board and bend the leads so it fits into a hole in a case. This turns out not to be a good idea, mainly because the LED is too far from the center of the board, most LED leads are shorter than I remembered, and it can needlessly place strain on the LED leads. This makes the board require a bigger case than it otherwise would have. A better solution would have been to use a JST header and just plug the LED in -- it is worth the small extra cost. Thankfully, I made the pads a little bigger than they needed to be and can implement this by just drilling the holes off-center. The JST header will be on the verso of the board though, which is mildly suboptimal as the cable has to be passed back around the board for most lamp designs. This would still be a big improvement for most lamp designs, as the inconvenience is minor.

As much as I tried to think of these things in advance, I guess I can't think of everything! So it was really instructive to go through the experience of getting the boards professionally made, and assembling by hand.

Also wow, soldering surface mount is way easier when there's solder mask. It's way easier and cleaner than through hole stuff. It feels practically like cheating.

top 1 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 1 year ago

I tried the method with a JST header, and it worked out well. Instead of passing the cable around the board, I drilled a 3.2mm hole near the center (as well as some mounting holes). This works reliably, is sturdy, and lets me use a wider variety of enclosures. If I reprint the boards, I may add these drilled holes to the Gerber files so they can be done in the factory.