 Hey everybody and welcome to my desk. It's me Lady Aida got some electronics going on here Getting ready for tricky day But before you do that, we're going to do some electronics So the first thing I want to do is last week I tried to do a live demo. That's how you know It's live because that didn't work out But I thought I'd retry to do the live demo of setting up This round tft screen using my icn 6211 board to the raspberry pi Uh five dsi port and yeah, I take totally like crash and burned But I tried it again and this time I really tested it right before so it should be working So let's go to um The overhead real fast and I'll show where we stopped. So what we had was my uh, I'm not going to move the board I'm going to move the camera icn 6211 board kind of get to um a large round four inch display 720 by 720 and then over here it's connected through a cable to a raspberry pi five and um to get it started to get things like Tested out. I have uh, I covered last week. There's the spi configuration of the screen. There's the iSquirtz configuration of the um icn 6211 and then there's the device tree overlay so if we go to the computer the first step is I write in a loop The all pixels on all pixels off command and this is on there's an at tiny on that icn board that communicates with the spi pins for the display and so I'm not sending any rgb data to the display yet I'm just configuring it over spi and so what I've done is I kind of lock it in this loop And I just turn all the pixels on and off and so I know that I've configured it because you saw it It's like bright white all black bright white all black That's good to go. So then what I do is I'm going to um Upload this is where I failed last time so like hopefully it'll work this time Um, I upload the sketch with I go move that loop We look at program this time. Yay. It's programming. Um to remove that loop and so now it's configuring the screen Um, and you know it happens that this code already has the icn configuration But then if I go to um my raspberry pi, so this is my shell for the raspi and I have uh in here a script that will use the icn 6211 library That timon wrote for us That communicates over iSquared C with the icn 6211 and you can like do stuff like set the resolution and the polarities and the the forges and The swap order very it's late Um, but what I'm going to do is I'm going to tell it. Hey, please put it in color bar mode and Color bar mode. What's nice about that is because it's done internally with the icn 6211 You don't have to worry about the you know any other it just tests like did you get the resolution and the sync correctly because um Anything else would depend on the device tree overlay. So let's now Run the script and what it does is at the end it prints out all the registers and if you go to the overhead You'll see beautiful color bars, uh, and that's because uh, this is correct now if I happen to actually wondering I'm actually kind of curious if I set the resolution to like 480 by 480. I actually don't know what's going to happen. Let me try it Yeah, see how it like doesn't look it's like all messed up now Because I didn't set the resolution correctly. I told it. Oh, you know, you have a 480 by 480 display connected not 720 by 720 and so this is getting Um, you see it gets like the first half and then the v-sync is like it's like no You're supposed to send me 720 pixels and the display gets very sad. So let's go back and edit this to now Uh, oh, you know the overhead uh computer real fast. I'll just show what I'm editing What was that? Can you go to the computer real fast? Yes, I'll show what I'm editing. So this line here Um, I'm gonna change the resolution from 4, you know, I set it to 480. I'll set it back to 720 And I'm also going to turn off the color bar mode Um, okay, so you go to the overhead and actually it still has the color bar because it turns out what I've Realized is once you set the color bars And they look this is a little this looks funky, but it's not coming through like it looks fine in person Um, you actually have to do a hard reset one thing I didn't do is connect the icn 6211 hard reset pin to the at tiny which I should have but we have b We have to see we're gonna fix it. So what I'm going to do is I'm going to just touch this to here You saw that dimmed. It's now in reset mode And then when I run it now, I turned off the color bar Uh, config and so you can see now I've got, uh um A working desktop on the Raspberry Pi and it looks great. So this is the, uh 720 by 720 display Um, you know, I think we did a demo earlier. Hold on. Let me see the only thing is it's upside down. So Let's see video VLC player And then I could do video Media open file And then We've got a stargate video that we can Oh, should we let me It's actually really hard to control this one. Let's make this smaller And then the loop and then I'm going there's a full screen mode. Is this full screen? Full screen. There you go. Okay. Looking great. So now, uh, you know, we've got stargate Which is the goal of like every project is getting started working. So All three pieces are now working. Um, which is great. I have to, you know, as I said, there's a couple of visions I have to make for the icn 61 one. Um, I have to fix the iSquared C buses because like right now I have all the iSquared C buses connected together on like this janky breadboard Um, what I want to do is put in an iSquared C switch And what's interesting is I actually have to find I was going to do for the great search But actually I haven't I haven't found the part yet and I have to find the part before I do the great search I want something that will allow me to connect and disconnect an iSquared C bus with a gpil I don't want to use Um, I don't want like a mux like a one to two mux where you write to an iSquared C address and then it kind of muxes for you I want it to be a um I want it to be uh like a gpio switchable because This 80 tiny on here over here, um is used to configure You know the the spi port on the display and then it configures the iSquared C for the icn But then what I wanted to do is actually turn from controller mode into peripheral mode Because I want the i the the raspberry pi to be able to use The at tiny to control the backlight pwm And so that chip is going to act as a iSquared C controller for like 1.5 seconds and then switch to peripheral and then it will be a peripheral for you know the rest of its You know life on the bus So I'm gonna do that so I have to revise it. So there's a little bit more to go. Um, but uh, you know I'm glad I'm glad the demo worked this time. So it's a mitzvah. Okay, so let's um, let me Pseudo shut down. Actually, you know what? I don't have to type in pseudo shut down halt now I'm gonna press the button on the back here Yay, isn't that amazing? There's a good button you press and it shuts down nicely Power off and then you can see everything disappears. Okay, so let me unplug this because I this is a little bit delicate Okay, and then I'm gonna move this Over here. Okay. So the next thing is I'm working on um this camera That uh Is raspberry pi powered and it has an led ring and sort of things I got is a bunch of different lenses Um to test out and I don't think I'm going to have How are we doing on time? You're 10 minutes. We're gonna we're gonna keep going. Uh, I'm not gonna have time to show off all the lenses I did uh show them off on um, I'll do another video maybe like a short video where I show off all these lenses But 120 160 and then what's interesting about this lens Compared to these as you see it's got this metal body. That means it's got an auto focusing motor inside of it These do not have auto focusing motors. It's like you can focus them by twisting the lens But they're also like wide lens. This one is an autofocus lens and in here you can see the metal body It's also an autofocus lens Autofocus lenses are interesting because basically you give it power over data one Because you're using only eight not 10 bits and then um What you can do is send it like the autofocus firmware over i-squared c And then you can send i-squared c commands to do autofocusing. So let's show that off real fast So this is uh the camera test firmware. I'll focus Actually, let me let me get this in here Okay, so then Okay, so then I want to do The led so what I can do first is turn on the led Lens which of course is like super bright, but you can see it's an rgb w led ring So you can really illuminate what you're looking at which is really nice And then so if I've got like a chip so like let's say, you know, I'm taking a photo of this Chip and this is like a a photo of a photo a photo Um, but maybe trust me on this and I hold down the uh shutter button. Do you see how it like flipped? um How far the focus was so then you know, this is out of focus again And I'll hold down the button and it will autofocus And then if I go close again, you'll see it's out of focus and I click Pop and it pops into focus. So this makes it good for doing um close-up photography Which uh, you can see now you can like even even as the camera through the camera through the camera You can see the logo in the part number of the chip which is pretty amazing. Um, so that's that's something you can do with the This is still maybe I'll Yeah, I don't know if you can see that The lens focusing Yeah, I think it's I think it's gonna be hold on. Maybe I'll do infinite focus And I'll do close-up focus No, I think it's confused by the by the reflection, but um, it does work Uh, so like, you know the the previous demo showing it um focusing on something Um, it does have to have good lighting. I've noticed. Um, so that's why it's really handy that we've got the uh led ring Click and you can even hear this little click Um, so this is kind of nice. Uh software is done. Um The PCB design has also done a couple little tweaks got done. I added uh Book converter on this, but otherwise it's like this nice little three-piece design Um with a shutter button and you know, it's circuit python. So you can program it Uh, we configure it and um, you know like even stuff like getting the preview mode So like it previews as a bitmap, but then you can do jpeg Uh, you know when you take photos You know, it'll take a photo and save it as a jpeg for you Um, and I've got different, uh, you know result like pretty high resolution support Snap and it saves it to the sd card. Uh, so that's coming and then Lastly, um, I'll just show a quick board design I did this morning while The baby was asleep and go to the overhead. Sorry the uh computer Um, we had someone ask for a grove um feather ring that was stackable and oh And uh And I was like, oh, yeah, I don't have I don't have any grove designs and so I decided to try designing a um A feather wing. So, you know, I haven't designed featherings in a while this plugs on top of A any of our feather boards and gives you lots and lots of grove connectors sticking up Um, and this is kind of nice because you can like put it on top Or you can use it with a doubler If you want to still have you know, if it's a tft feather and you want to have the tft display Use a doubler and then you have this side by side And you can have one two three four five six Grove ports two of them are iSquared c one of them as you are and then three are the analog digital pins Down here. So I think that's pretty good. I should probably make a um Pico bell with this too. I've I have to get back. I did a bunch of feathers I did a bunch of like metros and I want to and I did all these tfts. I'll get back to um Doing some of those pico bells and those uh Also the the bones boards. I have a couple more. I wanted to do okay So we're we're doing good on time right phil we can go to a great search The great search where to buy did you key an a to fruit? Thank you so much Did you key every single week lady either use our of engineering to help you? Yes, you find the things you need on digikey.com. This one comes from a z tweet eek post I know Oh, what is it? What is it z a tweet a post it's a request. We're gonna do it. It's a request. Okay, so this person daniel Um has a 3d printer and it looks like it says like z y next to it. So I think this is one of the motors um for the gantry of the 3d printer and You know, whatever maybe they just yanked the wrong way or got bumped Uh, but the character came off and I think two of the legs of the connector came off too And that's why they didn't just solder the connector back on they actually need a new connector And they were like, what is this? Um, and apparently the you schematics were published yet or the part wasn't published or maybe they couldn't find it And so I thought this is another great example of uh, let's try to find this part on digikey Um, I think that's like we've been we've been doing a couple of these Um, and we'll we'll try to do it live. I do I did find it so I can always backtrack, but let's go to, uh The computer and we'll uh try to locate it. Okay So we want to have this is a wire board and then oh, so can you flip back to it really fast? That um, well, I'll ask you to flip back and forth and maybe a couple times because I don't have it So it's like how do what you know, I want to prove what it is So it's a rectangular connector and you can see by the pads that it's got two mounting pads and four Um connection pads. So it's a four pin connector And the second thing you need to know is the pitch and I'll say that it's actually kind of hard to tell the pitch except one thing I do know is that to the right there was some point one pin spacing and uh like to the right of the capacitor only to the right of the capacitor There's some pads and those are point one inch and these are definitely closer So I'd say these are like two millimeter or less it might be like 1.5 millimeter but it's definitely not more than 2.5 millimeter pitch because uh, the the pads are closer together than those pins Okay, so back to the computer Okay, so um four pin connector and uh We know that the pitch is less than two. We're gonna start or 2.5. We're gonna start by just looking for rectangular which We're gonna learn how to spell rectangular connectors Um, is it is it's like literally rectangle. So the only thing to to watch out for is, you know, there's this, um A lot of these categories wouldn't they were started it was like people used headers only or like very header like devices So it was like, oh, it's a female Hetero receptacle socket and then there was like a plug pin You know mail and with that connector, it's a little bit unclear. Like, you know, is it a receptacle or male female whatever However, uh, you know We'll start with that and then we'll we'll move on. So we know that we're gonna look for Let's do this stuff. We know we know it's active It's available right now. We know it's a one row Four pins And positions loaded I'm gonna say all and the dash and four Um pitch, you know, we're not a hundred percent sure but we know it's less than 2.5 So and it's I know it's not One millimeter because that's that's like a jstsh's are tiny Um So let's apply so that takes it down from 230 000 to 700. It's a lot better. So let's look what we got here Okay, so we're actually starting to get like these are these are much more familiar to getting uh flip flip back to the um The z. Okay. So I think what I'm going to look for is first off is a vertical smt And it's got this little like Groove in the middle and these two notches Makes it look like a little bit of a happy face if you're looking at totally like a smiley face. So, uh, go get and come back to um to the computer Okay, so, uh, let's look for you know, normally stocking so that at least gets us down from 700 to 135 and then um We want its surface mount And it's confusing right angle would be pointing out. We want pointing up which is normal surface mount I'm like 99 sure So let's pick that now. We're down to 38 options And um, some things are looking really good. So these are definitely not it. We want like shrouded So like these these are shrouded connectors. So let's go up and look if there is Uh setting for shrouded I don't know if there is We might just have to ignore those I think we have to just figure out the mating pitch that one's, you know, again, it's challenging I think it's less. I think yeah, it's like 1.27 or 1.5. I don't think it's 1.25 So I'm like, let me get rid of that because that's it's very close Um, yeah, there's no shrouding. So we'll just we're gonna all the ones that look like header down here Like we're just gonna ignore these these are like receptacle Oh, these are called forked. Well, that's interesting Oh, you know what like that's that's what we want. We want forked Because you see how these are all very similar They have the little like notch in the middle and the two glue grooves. These are called forked connectors. So let's um Let's select forked. I this is like I mean I learned a new thing today fork Okay, okay, great. This will get us down to eight. Okay So these are all in the same family. So these are the click mates. So that's or minitech Um, so now I'm going to try to figure out which one it is now I'll say it's definitely not this one. It's definitely not this one. So it's like this one maybe Um, this one maybe This one or this one and the difference is so actually, you know what let's try comparing them I will say I've this is risky. I've not done this before it's not. Oh, I said it could be this one It could be that one and not that one. Let's compare these five Okay So these are different. Looks like there's a couple different families. There's clickmate 502 family clickmate 4502433 There's different the mating pitches are different This is two And then these are 1.5 and then Insulation colors are slightly different and the insulation height is slightly different Okay, so one thing I'll say is I don't think it's this minitech. Let's look at it Although this could be a compatible piece. Let's look at the data sheet real fast This looks like it's a compatible part, but it's got Yeah, it's got the little leggies It could be that but I think the more likely thing is I think it's not 2 millimeter pitch. I think it's 1.5 So I think it's one of you know, one of these four And honestly have you know having calipers would help a lot and I think these are all very some these are the two same family And this looks also very similar in the family this one Yeah, it's tough to tell the difference forked, what's the I guess it's like slightly different Connectivity oh, this is a high voltage rating. I guess these are not as high voltage So I think these two are the same. I think these are just one is um This one might be the vertical one Let's look at the 360 Okay Another thing to notice is that a lot of these connectors they have both vertical and like they have right angle and vertical style And it's the same package, but it's like they just bend the pins a little bit differently So this one it could be this You know, this looks very promising This one has a little notch Whether which one it is I actually I'll tell you what I would do if I was the you know, this person who was trying to um To to figure out which one it is I'd actually purchase two of each of these ones And then like fit test them with the cable to see which one But it's hard to like know for sure and they're about a dollar a piece So given that, you know, I don't I don't have this board. So I don't you know, I can't Fit test it I think I would get these these four pieces I would pick up, you know, two of each and try them And you know, if they if they work great if I don't I have a couple extras, but at least, you know, it's cheaper than um You know, it's getting a whole new motherboard design But if I had to pick one it was like, okay, you have to pick one because You only get one pick for the great search It would be this one because there's the most in stock And I have found that whenever you go with the item that has the most in stock You're most likely to win if you're if you're going to wall the dice Uh, that's how I will the dice. So this is my pick for the great search I believe even though it's photographed Right angle. It's a vertical connector. Um, I think this one should work for uh, we're praying that 3d printer motherboard That's a great search Alrighty, that's our shift for this week. Thank you so much everybody will be here throughout the week All regular shows leading up till thursday and friday thursday company holiday friday. We'll have a big sale Um, but some of the live shows we won't be doing but we'll probably be doing just completely this weekend coming up Thank you so much everybody. Thanks everybody