 Welcome to the desk lady. Hey everybody and welcome to my desk. It's me lady at my desk got some electronics going on I've been working on a bunch of revisions not as much interesting stuff But I did get some cool samples this week So I thought we would do a little bit of a mail bag because I got a raspberry pi 5 Yes New raspberry pi now you're probably wondering wait, did you get like a thousand and I can have one No, I only got like one, but if you go to the computer Real fast mr. Lady data. Thank you. We've got Sign-ups available so we don't do pre-orders Because we only ship things that we have physically in stock We don't want to take your money if we don't actually have something to ship So what you can do is you can sign up We will only notify you when they're in stock and then you can place an order and your order will ship Pretty much immediately because again, we will only sell them Oh party if we are Actually have them Okay, so but I did get like, you know one Just for me to do some testing with So let's go to the overhead because I just you know, I just picked this up on Friday So thanks to the Raspberry Pi folks to send me one. So this is the pi 4 and this is the pi 5 And then this one says circuit pi because this was originally being this one was used for my circuit Python test So a couple things you you'll notice TVs easier to show them some by side Big changes are USB ports change direction again now they're back to how they were for the Raspberry Pi 3 and before so these are the ethernet and these are the USB we still have two USB 3's and two USB 2's Which makes sense This is the main chip new main chip with a nice heat sink on here Instead of the camera and display connectors over here They've been changed over to fine pitch versions. So these are one millimeter and now they're point five millimeter vertical We actually talked about these connectors on the great search a couple weeks maybe a couple months ago If you're interested this one, you know, it's broken. It should look like this I've been I've replaced this is my board for testing cameras. So I'm like constantly removing it It wasn't meant for hundreds of insertion cycles Other interesting things the POE port moved used to be over here Which was a little annoying to me because it would bump into, you know hats and bonnets Thankfully, it's been moved out that should help reduce the Interference I mean, it's it's also of course next to the ethernet jack, right? That's the most important thing because ethernet pins come out here These are the four pins that go into the the POE chip Ready Well, I'm here. I just got moved around a little bit Parasupply chip change now. It says dialogue chips very nice. I mean, this is a very nice layout look at how beautiful that is with like all the inductors in a row and These are either diodes or past transistors. Not sure which a beautiful little chip there Still have the Wi-Fi Bluetooth excuse me remove this pardon me Wi-Fi Bluetooth chip and you know the Trace antenna New PCIe slot we talked about that. I think last week I type up here e-slot another couple extra ports. So this is the Battery for the real-time clock and I think this dialogue chip probably has built-in real-time clock support So it can like sleep wake based on a low power battery powered input Also, you know, if you don't have internet it can you know maintain time and stuff So this is really gonna be really good for low power usage and then fan and you are as well I'm just popping off the you can tell these are like so fresh They have that fresh not have the caps removed thing this little Resistor selector here lets you know which version of the RAM You have I think it's a cute little hack You just a random resistor that they are using for some pull down or pull up But they put silkscreen next to it. So, you know, they can use it in addition As an indicator to let you know how much RAM it is Otherwise, you're like you have to boot it up to determine or try to read the part number You know, the other you know, the big interesting thing is that they've replaced this was you know, it's like a VLI and some BCM Ethernet Phi and USB hub and it's been Replaced with let's see what we've got here. This is a Still a BCM Phi. I think this is I think this is the Phi for the Ethernet although I'm not 100% sure and then this is the RP1 Which is used as the GPIO and I think USB controller, which is very interesting So this was apparently the predecessor of the RP 2040 I mean, there's so many Raspberry Pi's made and each one of them needs this yet historically it was a microchip USB hub slash Ethernet Converter chip right and I remember the part number But you know microchip parts are not inexpensive and maybe they didn't have all the capabilities They want and I can I can see where the Raspberry Pi folks were like what we want to combine all of the GPIO needs An accessory needs and make one chip and yes, it'll cost us millions and millions of dollars to develop custom silicon But it's worth it because we sell millions and millions of Raspberry Pi's and it's like a dollar per Pi is totally worth it To not have dependency on chips and especially since you know in the last year or two in addition to chip shortages The prices of chips have gone up a lot. I mean, we've had some components that have tripled in price That would you know strongly affect the the ability of Raspberry Pi to maintain their price point For manufacturing some things that I thought was interesting Well, first of all, you know, the look has just been it just looks so much more organized now Not that this isn't, you know, a beautiful board But the Pi 5 you can tell really a lot of effort was spent like everything is like centered and this is like nice and Everything's like the nice angles. Like I said, this power supply is so beautiful the layout in this This area and nothing looks like it's, you know Jammed together. It looks very well thought out And then another interesting thing is the through-hole pads are no longer wave soldered So you can see here You know, there's like very heavy Solder because this was selective or wave soldered where it's it's a secondary process that Is used, you know for the through-hole component here and then Ethernet and USB these are all through-hole components and These are I don't know more the name of it is but it's like it's like through-hole in SMT or something and we use this technique actually Quite a bit for our USB for it's me show you one. So I've got this Micro USB since micro USB is a surface mount component, but it has four through-hole legs And what we do is we just have really big pads have It'd be a surface mount process It's it's placed a surface mount and then just that extra solder There's enough solder on the pads that it melts through and gives a very good mechanical connection So that saves you one process and wave soldering. It's a very messy time-consuming expensive it like a labor And repair work, you know often there's bridges and you have to fix them by hand So you can see that's why like these are like you can see this really nice her sheets kiss like large solder Blobs and here You know everything is connected But it's not as blobby. It's it's definitely there. There's the mechanical supports They'll notice they have oval Slots and like you want to make them very tight so that when the part goes through the legs go through It grabs it catches on to that pace that you deposited Another you can do is if you have a multi-step stencil, which is I've never used one But I know they exist you get stencils with different thicknesses And so what you would do is the stencil over here would be really thick Because you'd want an extra deposit of paste and then when you're here at the BGA components The paste would be thin again to avoid bridging. So I mean about a stencil even the most expensive stencil is not going to be It's definitely going to pay off for not having to do You know the the labor of putting this through the wave solder machine if you can have this go through Just pick in place. I mean like that is the easiest at least expensive. It's beautiful capacitor array Junk there, but like really really nice way out there And I think you know people see the robots these components are robotically placed as well So, you know fully automated no No manual labor required to place it. Okay. So anyways, that's my you know initial inspection of the Pi 5 so it's interesting about the Pi 5 that relates to what we do here is that now the GPIO is handled by this RP1, which is very promising because not that having GPIO and the Rousey Pi was amazing, but it was constrained because You have to have 3.3 volt logic and as you get to better and better chips, they're not going to be 3.3 volt logic Finally, they're going to be 1.8 volts or 1.3 volts. They may not even have You know the ability to set the IO voltage to 3.3 like maybe for I squared C But they're not going to have general-purpose IO that is like I can source four amps, you know or four milliamps to To an LED and they might not be protected. They might be very sensitive They're not meant to be like they're not meant to have people like poking and prodding in them so what they did is the GPIO expander goes through now the RP1 and that's used as I guess as a Southbridge It's used as an IO expander, but it's a very fast I expander. I guess probably use PCIe Not sure 100% sure, but it's a very fast communication bend with between these two chips to provide the GPIO support And you know that makes sense. This is running at a couple gigahertz Yeah, it's going to be a couple gigahertz You just need a couple hundred kilohertz for the IO speeds. Maybe SPI has like a couple megahertz And you want to have compatibility with all the old Atts and the tutorials and you never know like this I haven't you know looked too much into this chip But maybe there's analog inputs. Maybe there's more PWM outputs. Maybe it has better neopixel support That'd be really sweet because For the previous Raspberry Pi's we had to abuse the DMA PWM or SPI Preferals to fake out using neopixels and it works But it's really finicky And you have to use only a certain number of pins and you can't use like SPI or you can't use audio output So it'd be really nice to have that support Oh another fun thing is there's this now this button and then on off LED so if you if you turn it off It turns red to let you know it's off and then you can turn it back on. So let me attach reattach this IO helper friend And then you press the button to turn it on. It's nice. You don't have to unplug it We plug and then we'll just quickly go to the computer and I'll show Some of the stuff I've been Playing with on it. Hopefully this will Come up It is a live demo, but Okay, so the biggest thing that I think is going to Bump into people and I was talking to mr. Lady about this today is we're now required to run Bookworm or greater for Pi 5 support and Debbie and bookworm made a decision Great decision bad decision. I'm not making any judgment, but it's a decision that you can no longer install As we pie packages into the system with PIP. So like normally Sorry Let's say I want to use the HT 20 and It's like a temperature humidity sensor And I want to install it with you know in Blinka. I would do something like this Okay, cool pseudo PIP and install it you solve to root the reason we use pseudo is because for a lot of GPIO and your pixel Access you have to have roots. You might as well just install it system-wide So it's like la la la. Let's just like paste this here and you press return and it's like it And you can't do this so it The the bookworm look again bad good decision-made a lot of people do install or change package versions and Kind of mess up their system Python You're like xkcd make made fun of this because especially on max with brew versus like the internal Python You know Python 2 versus Python 3 Giving people the ability to change the system Python packages is like iffy We've basically gotten away with it because it's a Raspberry Pi like who cares if it gets messed up Like you just when you install or you know, you just when you work around it, but the the new method that is required by bookworm and Python and you'll notice that like the Raspberry Pi foundation is this like we did not make this decision You know if you go to this URL, they're like, you know, you can tell that they're like preparing for for this because Every single tutorial online that uses Python is like pip install pip install and you can't use pip install anymore instead You either have to use the system-wide app or you have to create a virtual environment and it's like You know they explain how to do it but basically you You would have a VN so not gonna go to the details of having environment, but you can see here. I already made an environment and When you launch the environment in ENV, you have you know binary so you can do ENV Sorry go back up to this thing instead of sudo pip3 install you do sudo ENV bin Pip3 install and then you can install it. So all these packages are installed into the The environment, although I don't know exactly where yeah, they're like in one of these folders Yeah, into like ENV lib Python 3 site packages. So this is where you know, I installed blink up. This is where it lives now It doesn't live in user bin or in Etsy or you know, wherever you would have your Python, you know installation so You know The good news is that all the you know also by the way Oops another thing that is is still We're gonna have to get working is a Nvan Python 3 Sorry I squirt C works as is because I squirt C goes to the kernel Using, you know, the two wire interface and so if you do like I to C Detect Y1 You know, you can see I have the sensor plugged in. It's on address 38 GPIO for GPIO access. We've been using our pie dot GPIO, which is like the ancient but Traditional way of doing GPIO access which has been superseded by GPIO zero, but again, everyone's been using our pie dot GPIO Because of the chip has changed and You know, you no longer I think memory I actually don't know how you do low-level GPIO but you can no longer memory map into the same location the RPI GPIO library is going to have to get updated as well because Right now it doesn't it doesn't work So, yeah, it's not a big deal. I think once the pie five comes out Hopefully the folks who work on our pie GPIO will fix it That's the second thing that doesn't work quite yet. But you know, the good news is that if I just Comment out the GPIO part and Then I run the test You know, I scored C the SPI works. Oh, sorry C and second keep typing Python 3 HT You know the temperature and humidity Sensor works fine. So, you know, the overall I scored C does works. That's like a plus You know, I don't know exactly what I'm going to do about the environment thing, they're not wrong You know that you probably should just use an environment I Really tempted to update to our tutorials and just say look When you install Blinka, it'll it'll add to your Python path and your path and then You'll create in your home directory like a Python and called like, you know, Blinka and for whatever pie and and It will in your bashed up profile It will set up the Python environment and set up your path so that you can just type in pip 3 and Python 3 because I think people are I Think that there's gonna there's there's there's like 10 years of Python tutorials that are not gonna work immediately and we're gonna have to train like 20 million Raspberry Pi users that they have to change how they do Python and I understand what decision was made. I just am like, oh, wow, that's that's a lot of tutorials Update But I've done it. I've done 460 revisions and mr. Lady ada has sent out 200,000 emails and We have updated all of our guides before so we'll probably do it again So that's the Raspberry Pi 5 update. So it's something to watch for, you know If you get your Pi 5 and you're you know in the next week or two Read up about Python environments, especially if you're doing Blinka or Python on hardware Okay, so that's my that's my update for Raspberry Pi 5. So let's go straight to the great search The great search brought to you by digikey and a fruit. Thank you digikey This is a time of the week when Lady Ada uses a part of engineering help you Yes, you find the things that you were looking for on digikey.com lady to what are you looking for this week? Okay, so on the new Raspberry Pi 5, which I just got today. There are these cool new extra connectors Can you go to the overhead little fast? I'll just point them out So this connector here is the one I'm most interested in it's called you are So traditionally if you wanted to connect to the you are the debug port of a Raspberry Pi You'd connect to like these two pins up here like power power ground RX and TX and you'd use something like This USB to console cable and you would plug these, you know into the GPIO and then you could get to the console Which is really helpful if you're running like a headless set up You don't know the SSH when it's on the network. You want to just like have root access immediately So the good news is now that there is this new rp1 chip I'm I'm assuming I'm still experimenting. I just got this like working yesterday That this is a separate connection to the hardware you are For console then the pins over here, which would be connected to the hardware serial port And the hardware serial port is how you'd connect stuff like GPSes And before you could only have one or the other you could either have a console or you could have a GPS You couldn't have both but now I'm pretty sure you can have both because the you are it is on a separate connector So I would like to make a little adapter cable that takes this from the old style pi Into this but this has actually not been Um the documentation for this connector hasn't been released that I could find So I thought I'd show how you could determine Um what the connector is now I kind of know what it is because I just use these connectors all the time But what if you don't know what if you're like, I have never seen this before a really good skill on how to reverse engineer and determine Um what connector it is. So first I'm going to turn off the pi So yeah, I love that on off button. I'm I'm you only use it like 10 times already I'm like this is my number one fan. I mean this is the fan connector over here So that's the number one fan, but this number two fan. Okay, so unplug this So let's get in here And let's zoom Okay, so what we're looking at here is a three pin connector it's vertical and It's definitely not point one inch spacing But we don't know what the spacing is and it's I got this 10 connector and you see there's these little nubs on the side So we want to we want to find the cable that connects to it But the easiest way to get the cable is actually to first find out the connector is because it's like way Easier to identify connectors by image than cables Especially because like there's often the shadowing isn't very clear whereas here It's like you can see the outline very nicely. So the first thing you want to do is find out the connector pitch Um, so what I do is first off Most connectors are in millimeter pitch Not always big ones aren't but small ones tend to be in millimeter. So what we want to do is we want to measure between the centers of the two They of the two farthest pins now you're probably wondering why don't I want to measure from like two pins Close to each other the reason is it's really hard to like you're like, oh, is it like 91? Or is it like 1.25? The difference in pitches can be like really small and you want to average that An in clarity Over a larger number because if you're like having difficulty getting to the center of the two pins At least you have a bunch of pins to divide by so Okay, so if you have error, you know the error divides out so let's see let's Let's try to get Also, no, no, this is this is definitely going to be the easiest. So I want to get kind of in the center of the two And I'm going to do this by looking above Hold on. Actually turns out you can't look at a screen while measuring connector pitch Okay, that's pretty close. Okay, so I got 1.91. Um, and you know just so you know like Connector pitches aren't going to you know, they can be like 0.95, but they're pretty much never it's always On the quarter millimeter. So it's like 1 millimeter 1.25 1.5 2 millimeters stuff like that So probably I'm just my hands aren't as steady. It's 2 millimeters between two pins. So it's a 1 millimeter pitch so let's go to Digi-key site so you can go back to the computer and let's look for connector I know you're like that's kind of vague but um, we can then look at images to see which one is the closest So we want something that's Closest to this it's it's pins and so rectangular connector So let's scroll down look at some images. Yeah, I mean like this isn't the connector But like that's the that's the idea we've got something like this right, but we want a surface mount version So let's start paring it down uh, so first up we want active And it has one row with three pins And that should cut down like a ton and the mating So I actually do, you know, I usually do the number of rows First or like the number of pins the number of rows first because then I can see like what pitch is available And like I said, if you know, I had measured 1.8 millimeters between the two pins and 0.9 was available. I'd be like, well, maybe that's a possibility 0.035 inches But given that the only options I've got are either 0.8 one or 1.2 or 1.25 It's it's definitely going to be a 1 millimeter pitch. So, um, you know, it's just very calipers. It's really hard to get Perfect, you're going to be a plus or minus like 10. So just be flexible. Don't be like, oh has to be exact Okay, and then, um All right, so that already pared down a lot. I think it went from yeah from 500,000 results to 85 So that's great. Um, okay, and then I want surface mount and you know, um upward right angle is actually across the board and Um, not right angle is pointing straight up So that's good. Let's do that apply And then let's, uh, search for, you know, normally stocking Get get rid of some of the the weird connectors And then shrouding, um, that's a that's another thing. So You know some connectors I think there's a lot here like this is unshrouded. There's no There's nothing going around it And there's also sometimes connectors that have only like partial shrouding But we have a shrouded connector. So we might as well Um, select that Okay So apply All right, great. So it's only like 20 options now. So now we can actually look and see which one is the most similar. So let's uh Let's actually look Sorry, can you uh go back to the computer over here real fast so we can just take a look at this connector All right, so it's a tan connector And it's got these little ears and it's got like these, you know, three contacts And there's these like kind of metal bits here. Um So you don't only have 20 options. It's actually not that bad. Uh, can we go back to the um computer? So Uh, there's a couple good-looking ones. So this one Uh, let's take a look at this one I like the 360 So this one It's close But it doesn't have the metal metal bits on the side Like the other one does So that's not it And let's look at this one from molex Let's look at the data sheet because there's only a one image this one Looks like it has a little notch Which this connector doesn't have a notch Um looks pretty similar. It also doesn't have the little ears It also it looks way taller than that this contact this this actually let's measure the depth It's not a bad idea. I should have done that to start. So the depth is four millimeters So, um, sorry the height of it should have been four millimeters if this is This is not this is five point one five point four. So since this is not right either I don't know if they have the height and oh insulation height they do. So let me actually Um, let me pare down by the insulation height So like four maybe I'm off, but it's about four millimeters Let's see how that does Okay, so what we've got left You know, this doesn't look too bad te Very similar, but this one is definitely the closest match So it's up to the 360 Okay, so you can see it's got those ears And it's got the metal on the side It's even got the little dots. So this is it. This is the connector. Yay Okay, we found it. So it's this the BM03 B SRSS. So now we know the connector Um, so now if you want to match with the cable Oftentimes at the bottom here You can see associated products and these are items that go with or mate with This connector sometimes they even have there's a lot of information here, but Yeah, mating sometimes they have like, you know, mating contacts Yeah, here you go mating products. So this is like if you want to build your own cables This is like the matching connector, but there are cables available. So let's uh Let's check this out So, yeah, so this cable you can get this cable cut in half and then I can splice it onto Um The cable I've got here to make A york cable for the Raspberry Pi and there it's also available. This is a new thing. Um, alternate lengths. It's kind of neat So if you don't have, you know, if happened, they didn't have in stock the 12 inch or if I don't want the 12 inch I can get the four inch version Which yeah, you can see the little ear sticking out here. Uh, and they've got 999 in stock. So this is my pick for the great search to connect to the york port on your Raspberry Pi 5 And that's a great All right, and that is our show for this evening. Thank you so much everybody We'll be seeing you throughout the week this week lots of Cool and interesting things ahead and please continue to make and share things together everyone makes something There's a lot going on on planet earth But we can come together and make things and share things and share knowledge and try to Build some bridges together. So let's do it. Okay. All right. Have a good weekend and a good week everybody