Designing Hardware, Journey from Novice to Not Bad
This is a modal window.
The media could not be loaded, either because the server or network failed or because the format is not supported.
Formal Metadata
Title |
| |
Subtitle |
| |
Title of Series | ||
Number of Parts | 490 | |
Author | ||
License | CC Attribution 2.0 Belgium: You are free to use, adapt and copy, distribute and transmit the work or content in adapted or unchanged form for any legal purpose as long as the work is attributed to the author in the manner specified by the author or licensor. | |
Identifiers | 10.5446/46917 (DOI) | |
Publisher | ||
Release Date | ||
Language |
Content Metadata
Subject Area | ||
Genre | ||
Abstract |
|
FOSDEM 2020138 / 490
4
7
9
10
14
15
16
25
26
29
31
33
34
35
37
40
41
42
43
45
46
47
50
51
52
53
54
58
60
64
65
66
67
70
71
72
74
75
76
77
78
82
83
84
86
89
90
93
94
95
96
98
100
101
105
106
109
110
116
118
123
124
130
135
137
141
142
144
146
151
154
157
159
164
166
167
169
172
174
178
182
184
185
186
187
189
190
191
192
193
194
195
200
202
203
204
205
206
207
208
211
212
214
218
222
225
228
230
232
233
235
236
240
242
244
249
250
251
253
254
258
261
262
266
267
268
271
273
274
275
278
280
281
282
283
284
285
286
288
289
290
291
293
295
296
297
298
301
302
303
305
306
307
310
311
315
317
318
319
328
333
350
353
354
356
359
360
361
370
372
373
374
375
379
380
381
383
385
386
387
388
391
393
394
395
397
398
399
401
409
410
411
414
420
421
422
423
424
425
427
429
430
434
438
439
444
449
450
454
457
458
459
460
461
464
465
466
468
469
470
471
472
480
484
486
487
489
490
00:00
Open setComputer hardwareComputerOpen setComputer hardwarePresentation of a groupSoftware developerLevel (video gaming)Repository (publishing)TrailComputer animation
00:34
Open setWhiteboardOpen setComputerSystem administratorSurfaceWhiteboardProcess (computing)BitService (economics)Meeting/InterviewComputer animation
01:32
Revision controlWhiteboardSoftware testingError messagePoint (geometry)BitSoftware testingPointer (computer programming)QuadrilateralRight angleIntegrated development environmentComputer animation
02:30
Electric currentProcess (computing)PrototypeHacker (term)Computer hardwareFirmwareVapor barrierWhiteboardIntegrated development environmentWhiteboardPower (physics)QuicksortComputer-assisted translationFilm editingComputer animation
03:28
Computer-aided designWhiteboardConnectivity (graph theory)Multiplication sign
03:56
Combinational logicMultiplication signConnectivity (graph theory)
04:24
Integrated development environmentComputer-aided designBuildingTerm (mathematics)Software developerDifferent (Kate Ryan album)Library (computing)Prototype
04:55
Computer programmingBitShape (magazine)CollaborationismSurfaceSoftware developerVideoconferencingCellular automatonTable (information)Ferry CorstenComputer animation
05:33
SurfaceSweep line algorithmYouTubeConvex hullYouTubeVideoconferencingNoise (electronics)WhiteboardSurface2 (number)Service (economics)Graphics tabletConnectivity (graph theory)Computer animation
05:54
SurfaceConnectivity (graph theory)SurfaceComputer animation
06:08
SurfaceComponent-based software engineeringConnectivity (graph theory)Computer animation
06:25
CASE <Informatik>Real numberThermal conductivityComputer animation
06:49
SurfaceWhiteboardConnectivity (graph theory)Right angleConnected spaceWärmeleitungGraphics tabletMereologyDigital photographyComputer animation
07:19
SurfaceProcess (computing)MereologyComputer animation
07:39
Order (biology)Graphics tabletComputer animation
07:58
Connectivity (graph theory)Green's functionFilm editingComputer animation
08:16
Film editingHooking
08:30
Hardware-in-the-loop simulationMultiplication signError messageBitDissipationMoment (mathematics)Computer animation
08:52
Error messagePower (physics)Hacker (term)Nuclear spaceMetreBitVideo gameLevel (video gaming)BuildingSubsetReal numberLikelihood functionElectronic mailing listFormal grammarMoment (mathematics)Multiplication signCalculationApproximationSoftware testingComputer animation
09:51
SubsetComputer-generated imageryMultiplication signVideo gameSpeichermodellFunctional (mathematics)Likelihood functionField (computer science)Flow separationIntegrated development environmentEvent horizonInternetworkingConnected spaceComputer animation
10:21
Event horizonConnectivity (graph theory)InternetworkingOcean currentVoltmeterMaxima and minimaContext awarenessSurgeryLine (geometry)Network socketEvent horizon10 (number)Functional (mathematics)Water vaporFlow separationProcess (computing)Ocean currentVoltmeterConnected spaceForceDigital electronicsLikelihood functionMultiplication signInternetworkingTerm (mathematics)Beat (acoustics)Radio-frequency identificationVideo gameComputer animation
12:14
Web pagePower (physics)LaptopPower (physics)Rule of inferenceSurfaceWhiteboardCASE <Informatik>ThumbnailStandard deviationMereologyDistanceGoodness of fitMetreComputer animation
12:54
Standard deviationElectric currentOcean currentEuclidean vectorMessage passingHacker (term)Computer hardwareVideoconferencingHill differential equationCASE <Informatik>Computing platformAreaConnected spaceDecimalAnalogyOpen sourceData conversionStandard deviationArmOcean currentThermal conductivityNumberRevision controlWhiteboardMultiplication signComputerInternetworkingComputer hardwareHydraulic jumpHacker (term)Greatest elementWellenwiderstand <Strömungsmechanik>Computer animation
16:18
Web pagePower (physics)LaptopComputerForcing (mathematics)CASE <Informatik>VoltmeterSingle-precision floating-point formatWordWhiteboardOperator (mathematics)DistanceMereologyPower (physics)Normal (geometry)Moment (mathematics)MetreSelf-organizationElectronic program guideConnectivity (graph theory)Computer animation
18:16
Open sourcePoint cloudFacebookComputer animation
Transcript: English(auto-generated)
00:05
A triple threat here from the Open Electronics Lab. Three presenters and they're going to give us an overview of their development of open hardware and kind of transitioning from getting into that into some really awesome hardware that they are
00:21
and that they have developed and that are available for people to look at for and use. So please give a warm welcome to the Open Electronics Lab. Thank you. So I'm Eric. With me is Kendrick Shaw and Ace Medlock. We're the repository admins
00:42
of the Open Electronics Lab and when we got started in 2011 we were a lot more novice than we are today. Perhaps like some of you back in 2011 I had never done SMD solder work ever, never done any surface mount. I looked at the multilayer boards and I
01:02
felt really pretty like that end of stuff was outside of the realm of hobbyists. I do a little bit of through-hole soldering. That's kind of it. But then there was this really interesting chip that came out. It was only available in an SMD package and we thought well okay maybe we can build a breakout board for it so a single
01:23
thing we can do for that. And sure enough we were able to do that. I only screwed up one board in the process so it wasn't too bad. And from there we went all in on the surface mount and we built something that we weren't just getting EEG signals on but we were able to get ocular signal and EKG and muscular
01:42
things and we were even able to control a mouse pointer using our mind. It was pretty neat. And people started asking hey can I get one of those? But these things were big. They were difficult to build. We didn't know enough about putting test points on to modularize your design to make it easy to debug. And so we said no we don't want to be
02:02
in the business of testing this stuff. So we designed something that was a little bit more accessible. So something that you can build yourself or you can have somebody fab it for you. It's pretty straightforward. It's not super expensive. It sits right on top of an Arduino
02:22
and you can play with driving your quadcopter or whatever. And that got people interested. And one day Robin from Hamenten joined our session and he gave us the insight that in the low resource environments in poor countries in Africa and such
02:42
what's killing their devices is not what I expected. I expected humidity and dust and things like that. He said it was bad power. And so we started thinking well maybe we could build a device suitable for that environment. So how do you get from where Novice is to we're going to build a piece of medical equipment. Well there's a lot
03:02
of FOSS tools out there to support you from the Novice through your growth and your experience. And I think the Arduino boards are a great place to start and there's all sorts of tools to get you going. KiCad is what we started with and as we've grown everything we've even won
03:21
throughout KiCad it's handled for us. We do some fairly complex schematic design obviously and then here's like a six layer board. And by the way if you're doing any board design today I really recommend using four layer boards because anytime I'm trying to go diagonal across the board I don't want to try to sneak around
03:41
all the components. I want one layer that's just horizontal one layer that's just vertical. I via down, go over and up, pop out and then I'm there. Really saves time on my layouts. So and then also I recommend doing some yourself, hand do some yourself
04:02
but it's not that much expensive to get them pre-populated and you can get them with combinations of through-hole and SMD two-sided. This thing is everything except one component and that way that yeah okay I have to do the room chip ourselves but that's not
04:22
a huge time investment. The Arduino build environment, no matter how novice you are you say I'm not a C-coder, I don't do embedded dev. This is a great place to start. If you've done any development whatsoever they've really made it fairly easy. Now as you get more experience you may move away from this tool, you may use more
04:41
like your different libraries and such but in terms of early prototyping to this day we still reach to this first when we're playing with something new because it's so quick and easy to get up and running and get something going. And then another tool that we really have enjoyed using is OpenSCAD.
05:02
I'm not an artist, I'm not going to draw beautiful things in in the whatever the art programs are. But I am a developer so I want to be able to programmatically describe this is the shape of the thing and have it render and then have one of our other collaborators print it out for us.
05:22
So that's a little bit about how the tools are and I'll hand the mic over to Ace and she can talk about soldering. As Eric mentioned when we started out we were really pretty intimidated by doing surface mount soldering and so we designed a board that had only one chip on it that had
05:41
needed surface mount soldering and we got on YouTube and we took a look at some videos and saw how other people were doing it and that actually made us pretty bold. It worked as Eric said, second try which is not too bad. And so our next board we decided we wanted to reduce the noise which meant that using old surface mount components. Now surface mount components are pretty tiny
06:00
so the way we decided to approach it is by using solder paste. So solder paste is kind of sticky stuff, you put it on the pads, you stick your component down to the pad, you heat it up with a hot air gun and then the component soldered on. So that all seems pretty straightforward but when we tried it we discovered we had a lot of bad solder joints. It didn't actually work that well for us. Now my background
06:20
is in medicine and when I have to diagnose a problem I like to get a good look at it. So I stuck it under the microscope and what I found was this. So when you look at solder paste under the scope it's made of these tiny little beads. So these are little solder beads stuck together by the paste and when you heat it up you get something like this. But you can also see it melt but still get something that looks like this.
06:40
Now does this conduct electricity? I don't know. But in some cases it appears it doesn't. And so for us, for me, that didn't work real well. So the way I do it nowadays is I do it under the microscope. I do it under a dissecting scope. So I just put the board under the scope, heat up the soldering iron and when you do that it looks about like this. Now the trick is to get a little bead
07:00
of solder on the end of your iron because the iron itself is too big to make a good connection between the pad and the component. But the little solder bead, solder is a great conductor of heat so you can stick that right on there, heat it up, get your solder then you just pull the iron away and do the other side and then you're all done. Now you do get some pretty ugly
07:20
looking solder joints sometimes but that's okay because the job of a solder joint is to conduct electricity, not to look beautiful. So you'll make some modern art and that's alright. You can do some really tiny parts this way. This is a 0201 capacitor that's hand soldered. This is the same magnification as the solder paste that we saw earlier. And the nice
07:40
thing about that is that you learn to be bold about being able to fix your mistakes. So this looks great. It looks beautiful. I didn't solder it. But the problem is that the pads are in the order of GGS and the feet are in the order of GSD. So that's not so great but that's no problem. You just heat it up with your hot air gun, pick it up, turn it around, stick
08:00
it back down and it works just fine. And so what about if you forget a component? You're designing so you forget to put something on. Well that's not a problem either. You can just do some green wire fixes and those through-hook components make for great green wire fixes. What if you accidentally put a trace somewhere where it doesn't belong? Well you can fix that too. You get out your X-Acto
08:23
knife and cut through it. You can even, if you have both problems, you can even lift up one of these little feet and hook a green wire onto the little foot but sometimes you're going to break off your little foot when you do that. And if that happens you can just dremel into the chip and stick on a green wire. So you don't really have to worry about that either. You'll make mistakes, you will, but you can fix them. But it's also good
08:43
to anticipate errors and that's what Kendrick's going to talk to you about. So much like testing, a little time spent thinking about safety can save you and others a lot of pain in the future. So we're going to talk a little bit about that. So the first step when you're thinking about safety is basically just take a moment to think about what could possibly
09:03
go wrong. And if you have any real imagination you'll come up with a very long list of things that could go wrong. From there, next ask yourself for each of them how serious are they? A lot of them might be pretty minor, some of them might be life threatening, especially if you're building medical electronics. Then finally ask yourself, or sorry, next ask yourself how likely it is. And again this can
09:23
vary dramatically. You don't have to solve every problem that's out there if it's unlikely to happen. Your device dropped from an airplane might seriously injure or kill someone. You might not need to spend a lot of time worrying about it. So then once you have that amount of harm and likelihood of harm, then from there you can calculate out a risk or approximate a risk. There are formal design methodologies
09:44
you can go through with this, but the main idea is to just combine the two and come up with in your mind, is this an acceptable level of risk? And what's acceptable can vary quite a bit. Somebody going out there free climbing is taking on a lot of risk and they know they're taking on a lot of risk and they're doing it because it's fun. You can do the same thing in your hardware design as long as you're aware of what the risk is and you've chosen to assume it.
10:05
And same thing in a medical environment, for example a defibrillator is a device designed to stop someone's heart at the press of a button. This is an inherently dangerous device because if you do that at the wrong time it can be life threatening, but it's worth the risk because if you do it at the right time it can save someone's life.
10:22
If the risk isn't acceptable, then you start thinking about mitigations. Basically you can reduce the likelihood of the event or reduce the severity of the event. For example, if you have a pacemaker that you worried about someone hacking into, you could always remove the internet connectivity from the pacemaker if you don't really need it and make it a lot safer.
10:40
Taking away functionality in the process. Or you can decrease the severity. For example, if you have a life-saving device and it can fail in a catastrophic way, making it fail loudly rather than quietly is something that's more likely to attract attention and bring people in to fix it. So for a lot of our devices and typically for medical devices, one of the common things we worry about is electrical shock.
11:03
You may think, oh you're dealing with 5 volts, no big deal, we touch 5 volt circuits all the time don't feel anything. Important thing there is that's with dry skin. Here we're attaching electrodes and it turns out that it's current that matters more than voltage for the risk of these things. So for example, pacemaker typically runs at about 1 to 2 volts for triggering heartbeats.
11:23
So these aren't very high voltages. And they're relatively low current where it's kind of tens of milliamps to the skin, tens to low hundreds and literally tens of microamps to the heart. And if you have an IV in or things like that, then you can end up with very low resistance. These can show up
11:43
in the obvious way as far as flowing in one electrode in your device through the heart and back out through the other electrode. But it can also be something a little less obvious like maybe through an electrode in your device, through your heart to something like a water faucet that you're touching. Or even less obvious than that maybe you're hooked up to another device that's malfunctioning and if your device will connect
12:02
through you to ground, your device can contribute to a shock. And although your next of kin might blame that malfunctioning device you'd rather be around to blame the device yourself. There are a lot of things you can do to mitigate this, so you can simply and you'll notice those last two cases you're connected through the ground which means both devices
12:22
are plugged into the wall. You can unplug from the wall, run your device off a battery or use isolators. Nowadays you can cheaply buy isolation that will power isolators and data isolators as far as optic couplers. If you do that you want to make sure there's gaps which we talk about as clearance between the isolated parts and gaps across
12:42
the surface board and off the surfaces because surfaces can get moist or dirty and so that distance is usually larger. There are a lot of standards but 8mm is usually a pretty good rule of thumb and it's on the safer side. We'll skim over this because we're running out of time but the important thing is there are standards for how much current your device can run through
13:01
a person. They are very low numbers and you have to think about not only what can it run through when it's working properly but what happens when things start breaking. Which is another area to think about. So if your amplifier the chip that you have as your amplifier shorts out and that high impedance connection to the patient now suddenly connects the patient to voltage and ground, what do you have protecting the patient?
13:22
And for an example like that, typically you can just put in some resistors in the leads leading off to the patient to make sure that total current flowing through in that failure case will be less than the safe amount of current. So with that, I just wanted to close. Basically spend a little time thinking about safety. It's not hard and can go a long way. You have a lot of
13:42
great tools for getting into electronics and open source hardware. Don't be intimidated. Just get your feet wet. Jump in and you'll get better as you go. And happy hacking. And we have a number of references up here for you.
14:48
We typically work on Saturdays. Not a great day.
15:05
Sure. So the question is where do you get a dissecting scope? And the answer is of course the internet. So this is not really a special dissecting scope. This is actually just the cheapest one that had an arm because a lot of the scopes have a platform where you're supposed to set your specimen and you will burn
15:21
that platform. So don't get that one. Get the one with an arm that comes out and you can set your board on something that's heat resistant. How much did you pay for that? It was about 300 Euros I think. 250, 300.
15:44
So Kendrick actually uses one of those. I prefer the analog version. So that's actually the... So he's showing us a version of our board which is great to see.
16:03
And the fact I believe you're pointing to the two DC to DC converters on the bottom for our galvanic... Yes. That's an excellent question. This gets down to the idea
16:24
that especially if you're doing an ECG someone may attach a defibrillator to the patient and put 5,000 volts or more through the patient you don't want that getting to the person at the computer or other operators. So you want to have good isolation between the patient side and the side that the computers are on. So that gap there is making sure
16:44
that we have that 8 millimeters of distance between any metal part on the board on the isolated and non-isolated side. And there's two of them which reinforces. Yes. So we want to make sure that any component can fail. The data isolation, we have a single one because it's rated for reinforced isolation. So it's rated to be
17:03
as reliable as two pieces of equipment normally. Then we have two, on the other side we have two power isolators such that if one of them fails the other one is still providing that 5,000 volts of isolation.
17:20
Okay. Follow up question? Yes. Are you pacing nowadays? We are not pacing at the moment. We may add that to our list. We've talked about it. Lots of more follow up questions online. Okay, great. Another question. Did the chip survive the operation?
17:42
Yes. The question was did the Dremel chip survive the operation? And yes, the Dremel chip did survive the operation. And just to be clear this is where the wire would go into the plastic case before it goes down to where it's wire bonded to the chip. So it's not soldering directly to the chip but it's soldering to the lead going inside the plastic case.