Showing posts with label Electronics. Show all posts
Showing posts with label Electronics. Show all posts

Sunday, 13 August 2017

I Made A Blinky! — Version 2

So, finally pulled together the pocket cash, and sent off my orders for the necessary bits and bobs.
The second revision of the board (which I introduced here) cost about $8.50 (US$6.50 + a crappy AU$ exchange rate), with some minor layout improvements, space for a push button (because taking the battery out all the time was getting to be a pain), I removed the positive copper fill on the battery side because I considered that a bad idea when the negative terminal of the battery is scraping over the solder mask on every insertion and removal, and a little piece of test art (the profile graphic I use here on this blog).

Removing the positive fill on the battery side I think was good, I had considered moving the negative fill to the back instead, since the negative terminal of the battery gets pressed against the board, but during insertion of the battery it's likely the positive terminal that does the scraping (since it wraps over and around the battery), so although it should be clear once inserted, there could potentially be an issue in the meantime.  Just not having a copper fill on that side at all is, I think, the better choice.  One big slip-up however, was my misreading of the shop description on the on/off switch I chose; I thought "on/off switch" meant press to turn on, press to turn off.  No.  It means (it appears) that the internals of the switch have a clicky mechanism that makes a nice solid on state when pressed, and a nice solid off when released, rather than the wishy-washy you get with carbonised rubber on PCB style buttons.  Lesson learnt.  It's also the minimum of what I need for this project, since that "switch" is simply sitting between the battery and the rest of the circuit — press it, the circuit has power, release it, it doesn't — so being a toggle (what I'd wanted), or a momentary action (what I got), at least the on/off part is right, plus the added bonus that the extra buttons will come in handy for other projects anyhow.  Again, if this were a real project where it really mattered, acquiring some samples would have been on the cards, or finding someone who already knew, etc. — but this is pure learning experience ground, it was the first component footprint I've drawn up by hand, and it fit first go, so I still consider it a win.

Components for the board, namely the push buttons and SMT LED's (which I totally forgot to put in the order first time around, so the first board has a big ol' through-hole LED attached sideways), came to about $10 — mostly the push buttons, which were minimum 10 quantity, so I have plenty of spares!

But talking about those LED's, they're the most hideous things to solder!  (Even worse than the capacitor.)  One fell apart on me, the second one just would not sit straight while I soldered it, and then there's the whole issue of installing it in the right direction — just trying to figure out which end was the cathode was a nightmare in itself; a quick search on the web yielded several marking options, with the caveat that some manufacturers do it the other way around, so mostly useless anyhow.  But even then, none of the markings I saw described were on the ones I'd bought, instead they just had a bevelled top edge on one end (and the notch that was suggested as a common marking, well, they had a notch kind of thing at both ends!).  I'd tested the board by tacking down a regular LED again, so I knew the board worked, and figured if I could just hold the SMT LED to the pads, I should be able to determine it's orientation.  But, that didn't work.  Not entirely sure why, whether it just wasn't making contact, or whether my metallic tweezers I have were bridging the terminals, or what, but I couldn't get an indication that way.  In the end, I just took a punt, and soldered it down.  And after fighting to get that thing soldered down reasonably, it didn't work.  Neither, did holding a regular LED over the ends, which seemed rather disturbing (had I accidentally damaged something else on the board?).  So all I could do was take it off, and try again with a new LED, hoping that bevelled edge was, at least, the cathode.  And it was, and it worked!  I now had a working Blinky v2!!!  New and (ever so slightly) improved (assuming you don't mind holding down the button)!

That wasn't the end of my purchases, though.  Along with those $10 parts, was another $60 in extras, most notably a much needed flux pen, and one of those nifty "helping hands" gizmo's with the little gripper claws and an attached magnifying glass.  Awful lot better than taping the board to the tabletop with double-sided tape, as I did the first time around — although next time I might still tape down the helping hands gizmo itself.  There's also a lot of other very basic gear I still have to get, like cutters, non-metallic tweezers, a decent soldering iron… but I'll pluck that stuff off my wishlist with each successive purchasing round as I go along.  The important part, is that progress was made!

Saturday, 27 May 2017

I Made A Blinky!

Okay, so, getting back to Electronics.  I decided, last year, to try and dig my way back from the nothingness that's plagued me for over a decade.

A couple months ago I came across the free tutorial Getting To Blinky from Contextual Electronics.  Now, I can't afford the fee's he's wanting for the classes, but he has been nice enough to release a few freebies here and there, and I've been wanting to learn KiCad for a while now, so this was perfect.

Following along with the tutorial, I drew up the circuit (making my own version of the 7555 schematic design along the way), flipped that over into the PCB designer (and making another footprint), had the boards made up by OSH Park (who doesn't love purple PCB's!!!), and watched the tutorial episode where Chris realised he goofed up and had to get medieval on the 7555.  Thanks Chris.  Anyhow…  Ordered the components while I waited for the boards (and forgot the LED's), and then left it all sitting here in my desk for several months.  Yeah, life, it happens, what can you do.

Then this morning I woke up absolutely determined to put the thing together.  Pulled out my crappy cheap soldering iron, perched myself in front of the corner of our TV entertainment unit by the window, with the bits and pieces laid out in front of me; components, tweezers, scissors, solder, de-soldering braid, and my phone, with it's 4x camera zoom in place of a magnifying glass.  No flux, no clamp for the board (used double-sided tape to hold it down instead), but it was enough.  The solder joints look horrible, and I'm sure there's at least one or two on the IC that are only barely holding on, but after I was done, and I'd cleaned up the bits of packaging and put most of the stuff away, I pulled out a spare coin cell battery and threw it into the holder, and it blinked!  To my utter astonishment, the darned thing actually worked!  There it was merrily blinking away at me…  I Made A Blinky!

So now I have a fully functioning Blinky.  After over a decade of feeling like I need to get back into it but never quite getting there, I can't say that enough — as simple and small a start as it is, with so far yet to go to relearn what I've not used in so long, I'm happy.  I've learnt to use KiCad (including making custom schematic components, and footprints), order the board through OSH Park, find and purchase the parts required, and managed to assemble it successfully with barely adequate gear (and SMT to boot).  Most importantly, I've proven to myself that I can — and that little spark of confidence regained, is what Blinky was all about.

Where to now…  Well, first, I'd fixed up the little mistake from the tutorial in the design files, right after having ordered the boards.  So I think I'll order up a new set rather than persist with the nasty clipped IC leg hack I had to do with this one.  That, and purchase some flux, decent tweezers, a 10x magnifying loupe to check the joints and read part numbers, a clamp to hold the board rather than the horrid double-sided tape, and a hands-free magnifying lens so I can actually see what I'm doing.

Beyond that, I think, it's back to my desk clock with better display driving, an RTC module, and some updates to the firmware I've been planning.  Get that going on an Arduino prototyping shield, then off to OSH Park again (what can I say, I like purple!) for a single-board version.