 Welcome to the desk lady Ada everybody and welcome to desk of Lady Ada. It's me Lady Ada with me Mr. Lady Ada on camera control behind the camera behind the mic We got a triple Decker fee tonight because I'm gonna get you the ion MPI on top of hacker stacker hacker stack and desk lady Ada Great search and I'm API doubling the RAM with RAM doubler and stacker tonight Yeah, we have a lot. We have the great search We've got ion MPI and then we've got all the other stuff that we normally do on desk of Lady Ada So let's kick it. Okay, so This weekend I put together the cutie pie gamer board that I showed off like a week ago the PCBs came in and They were ordered like a week and a half ago and I put them together and actually pretty much worked There's a couple little bugs. I want to fix but one of the things I wanted to do is port A Nintendo emulator the little game player and so I actually looked around and for the ESP 32 The the Odroid go originally had you know had a bunch of emulators on it So I knew this was possible and then there's even though the retro Sorry, even though the Odroid go has been discontinued and like the official firmware is no longer developed There's a third-party firmware called retro go That has been maintained by some other parties who then also use it for other ESP 32 hardware And so I was like, oh, I'm gonna take a look at porting that and This code was in the ESP IDF and this was like my first time using the IDF and I actually really liked it It was extremely fast Ninja and CMake are like I mean, it's like nearly instantaneous Compilation and uploading is very fast and like the monitor tool built in it's a really really nice experience even from the command line Which is great. It's like I was writing my code in like Xemax as normal, but then using the command line shell just to like, you know make monitor flash and You know my mistake was actually I've had the wrong size capacitor on my ESP 32 board So resetting, you know, I should have like set down figured out Why was it resetting properly but said I would like manually reset every time So, you know lost a bit of time there, but I did get retro go running pretty well So I thought let's go to the overhead and I can show off What I have done so Let's hit real close because we're gonna super small So this is the magnify This is the ESP 32 Pico, so it's got the wires on it because I was doing a low-battery deep-sleep check on it and Get to lock. Okay. I was doing the deep Lock it, okay, I was doing the deep-sleep check on it to make sure that The CP 2104 and the new pixel were properly shutting off and When in deep-sleep this goes down to about 70 microamps, which is as good as you're gonna get with the ESP 32 It draws about 50 ish microamps and then the regulator draws like 10. I could change over to The RT 9080 which was an even lower Quiescent like a two micro amp quiescent regulator It's available now for a while. I couldn't get any but it looks like did you key hasn't back in stock? And that was a really nice regulator because that's like 600 milliamp output But again an ultra low quiescent about two micro amps doesn't get any lower than that And though we covered that part of a great search like a few months ago So pretty much everything's going to redo this look screen including fixing this backwards text This is all working also rotated the antenna I tried just doing it like manually and actually did give slightly better RF performance so all the other QT pies like I'm gonna compare and contrast to see how The antenna fair is when it's rotated to be parallel to the edge of the Board I'm pretty sure the radial pattern comes out like this way So this is good because it probably won't have that much Radiated energy into the stomach you take connector, which is what I was a little bit worried about But I think it'll be okay. So it's I'm gonna I'm gonna try it out This is the board as assembled We got that headphone Amplifier chip that we covered the maximum chip. It's actually quite nice the headphone jack for a portable sort of like Android headset Micro SD on the high-speed TFT and the TFT and the high-speed SPI lines Although I did notice which logo does not drive the TFT faster than 40 megahertz. So it's kind of like You know it turns out in the end. It was not that wasn't useful But they just didn't seem to Care as much about going through the IOMUX or not. Although I might think I might be able to fix that I think the reason they don't drive it faster is because They send the commands at 80 megahertz and the trick with these TFT displays like the ST7789 and the ILI 9341 is their specced from like 1012 megahertz And like believe me, they're very happy at 1012 you can drive them at 80 megahertz But you have to send the initialization commands and the window command at 1 megahertz or like 10 megahertz You have to you can't send the instructions at high speed But you can blip the buffer out at high speed and we do that on the Raspberry Pi with the buffer Yes, that's that's what it's called. You blip the buffer It's just blitting. Yeah got the on-off switch here Battery charging I'm still got to figure out what the battery connector. I want to use is but this battery You know fits quite nicely on the back and it will you know even clear the the standoffs so I'll figure maybe I'll go with a Molex picot picoblade and then the AW 9523 GPI expander, which is what I'm using to control like the TFT reset the headphone enable the car detect on the SD the 10 GPIO pins and The backlight control because again with the QT Pi We just don't we don't have that many pins So if I can you know use as many of them if a lot of them can be slow and go through the expander That's even better. So it wasn't too bad. I just had to like port I squared C code for controlling the expander Into ESP IDF, but you know, there was a lot of example code out there and pretty much got it working the only bug I have in the design is the DAC was on the DAC was on a3 and It's it should have been on a zero and I revised on the next version So I have a little jump bar because a3 isn't being used. I just jump over it over to a zero and then If you turn this on You know, I got it playing Dr. Mario and it's got the the audio coming out if you hear that or not and It's kind of nice There's actually a lot of controls so you probably can't read this but it's like you can change the The scaling and the filtering and the speed and over scan and and you know a bunch of you know the backlight I haven't done the adjustable black light yet, but that's available volume control Again, I don't just don't know how much volume control you're gonna get out of an 8-bit DAC But you know, I guess you could like have it be a little bit quieter and then You know, you can save state With the game that'll save the the SRAM Into a file and so you can like quit a game whenever you want and get back and you don't have to like save the game You can just like reload it from that location. So what you'll go is a really nice emulator Is there an enclosure? So I want to know what the enclosure is for when you dock the board The enclosure, I don't know what they mean. Yeah, this is gonna be like You know, there's gonna be another PCB on the back And that'll just be the enclosure with like standoffs in between Yeah, it's not meant to be like believe if you want like the the real thing go get a rich, you know Yeah, what is the QT pipe plugged into? Oh, that's a it's an accessory for the QT. Yeah This is an accessory. We're calling them nuggets or BFFs. We don't know. Yeah Yeah, so this has the USB and the power supply. This is you know This is the brains of the board and this is a little shield basically, but the shield has We call it pinky and we don't know yet. Yeah And this is the Nintendo emulator. So it's nice is you know 240 by 240 actually Nintendo The native emulation for Nintendo is 256 by 240 But you know, you can either cut off the sides or you can just scale it a little bit. It looks great You know, it's all like pixel perfect I've seen you know, there was like This sprites TM made a little emulator But the screen was only like I think 96 by 64 pixels. And so it's like when you're scaling something down to 90 I mean was like 120 by 96 if you're scaling it that much It's actually quite hard to play games. Whereas this it's like each pixel is is a pixel So you can read the text and you can very readable. It's very readable. I don't know if you can I don't know if it's readable on the Head There's also a new boy, which is a You know game boy, you can there's a little bit of color here, but it's um It was kind of washed out. So actually looks like the original game boy, which was black and white so you can play a game boy games like Pokemon and Think there's like a final fantasy game Don't remember like I played a couple games. I mean obviously the Tetris and stuff some classic games and then There's also Sonic the Hedgehog for Sega Master Systems and that's That works great, too. Although I was never I've never entered Sonic. So I'm not good at playing it And then one of the cool things is that this there's also Coleco vision You just load ROMs on the micro SD card and you slot it in and it just like shows up It's like it's a really like very very polished emulator There's also doom so PR boom, which is a very minimal version of doom Was ported to the ESP 32 and it was really neat about how retro go is Structured is like there was a little bit of a hump to get it like Running but once we got it running All the emulators worked like once you get one emulator working the rest the emulators work because the input and the graphics and the sound all Go like all that is shared In one file. No, it's a hundred percent. Oh, which is another thing that's kind of neat is um It doesn't pause nicely, but you can see the speed It can run this is running at a hundred and six percent. So it can it can emulate Nintendo Sega Master System Gameboy gamebook color and doom at a hundred percent and it's using one We know one core is using the input and maybe even graphics output and the other one is doing the emulation So it does really it's really nice when you have an ESP 32, which the the pico is underneath Dual core 250 240 megahertz Even though it's got PS RAM, which is a little bit slower I thought a lot of RAM internally it has like 500k internal SRAM And we're not using Wi-Fi here. So of course, it's you get to use all of that and then You know a ton of flash and that's how you can have all these emulators loaded in so Yeah, that's that's it. So I got this working. So this is my first prototype There's a little bit more that I want to do first up. I wasn't sure that the screen would look good enough I was a little worried. Just why you see there's a large outline here I was thinking of going with a 1.69 inch screen, which is 240 by 280 in case It didn't look good, but this looks great. So I think I'm gonna actually stick with the small little screen It's I think it's the smallest Like near pixel perfect or pixel perfect emulator again You can make you can make it smaller, but it's not going to be playable. Whereas it's actually You know, you can actually Play the games and read the text and You know, I'm not good at and I'll say I'm not gonna do and I'm definitely not gonna do while looking at a screen That's looking at a screen But you know, you can you can play it and you know as people add more to retro go Which is kind of like the nicest emulator out there Also, it could be interesting to see if the s3 gets ported over to When we're true go it doesn't have the DAX But you know I to s probably would be just as fast that could be kind of nice because then you don't even need the CP 2104 you can make it even smaller doom player Okay, let's do a question and then we'll get to the great search and then we'll do IMPI How's the tft wired up on the board parallel with slow GPO? Handled by the GPO expander. No the the tft even though it has a bit TFT support. We're not using it. We're using SPI because honestly First off, you know, it has to the pins are only brought out here. You only get like 11 GPO pins And it's shared with the SD card, but honestly most every emulator board uses SPI you can DMA you can DMA to SPI a lot to these screens to SPI a lot easier than 8 bit because With 8 bit you put the 8 bits on and you have to like toggle the right latch and That usually is a knot is easy to DMA is just pulsing pixels out on SPI right because the SPI data is just You're just pushing it all the pixels 240 by 240 or so times 2 per pixel You know, whatever the 115k all out at once There's a frame buffer inside and it just like shoves out the pixels and one DMA Transfer if you try to do a DMA transfer there are some boards that have DMA support for 8 bit 6,800 or 8080 But it's there where it's it's usually a weird thing if you like a waveform generation And it's like freaky because you not don't just have to push out the pixels in parallel You also have to toggle that right latch And so for that reason The benefits that you get are usually not worth it You can you know, if you if you can DMA out the pixels It doesn't matter how long it takes because you write out the buffer and then you calculate your next buffer While that's pulsing out So especially if you have enough RAM which this chip does to have two buffers one's written one's being calculated Then you know, you're good to go and I think on the I think on the The friend dough when I ported the same D51 I didn't have double buffering it worked fine Even then it takes less time than you think to push out The pixels and then you can do all your computations While that's happening. Okay Let's jump right into the great search. Okay. Okay, great The great search for RG by did you key and get fruit every single week lady Ada uses her powers of engineering to help you find things on digikey.com lady What is a great search of the week this week? Okay, this week or we're gonna build on last week's NPI which was that headphone amp this week. I'm gonna get the headphone connector Because I realized a lot of people actually have an email and asking like where how do you where you get these? Headphone connectors that you're using and this one's quite nice. Let's go to the overhead and I'll show it off real fast So for the little gamer board prototype Underneath here is the Headphone amp that's the max in part that we showed off last week And then this is a little headphone jack and I really like this style headphone jack because it's quite slim It's surface mount only but it's It's TRS, which can be nice because you can get the microphone output and It's not that much bigger than like the jack itself like sometimes these are really kind of chunky But these are very slim and they're slim enough that they fit between The headers on this board. So let's find this Jack this one actually in particular does not have the through hole Pads I found that you don't need them, but it does have a cutout on The PCB so this is actually kind of nice I think because usually the most string comes from pushing into the board You don't want people to like, you know push and and shear at the same time So there's a little bit of a cutout. You can kind of barely see bill you There's a little piece of plastic that goes into the board that just kind of gives it a little bit of Mechanical strength so Let's go to Dig dig calm did you key calm and let's search for so these are weird They're not you think that they're called headphone jacks and they kind of are but they're called Phone jacks right because to just historically if you look at all like videos or photos These were used for a telephone systems. That's kind of what they were that the quarter-inch type were used for You know plugging into a switchboard, so they're called phone jacks So or barrel audio jacks, so we're going to go to Barrel audio connectors and you know, it's funny is like there's a lot but somehow there's less than I expect So you can get like kind of anything and you know sockets and RCA type and panel mount and all that what we're looking for specifically is Is like this industry recognized diameter we want three and a half Which is sorry 3.5 millimeter otherwise known as Quarter inch sorry eighth inch quarter inch is Point two five inches six point three five millimeters Eighth inch is not actually eighth inch. It's point one four. It's like a nominal, right? One thing you learn as engineers like everything is exact until it's nominal Eighth inch nominal is not one point two five. It's one point four. So just just keep that in mind So searching for that Okay, so let's see what we got. Okay, so these yeah, these look more reasonable So there's all sorts of types. There's wire Inline there's this which is actually kind of close to what we're looking for through hole You know more panel mount or in line. So let's Let's go for we want active and we want Jack and we don't want dual or triple right where you have three to what we want singular And we don't want RCA So that's fine. So let's apply that filter and then One thing that I looked at was some of these are called Cut out style and I was like what is this so let me show you so let's do Not panel mount. Let's do surface mount right angle and there's board cutout and there's non-board cutout and apply all So board cutout type is Interesting it looks like Hold on let me find one Because it was like unusual. I was like, oh, what is this? surface mount surface mount surface mount board cut out. Okay So this is board cut out and here's something interesting about this design You see how that like the legs kind of come out from the side So this is something where you actually have you want to have like the jack be centered on the PCB not rising above it Usually like we don't want if you want to have like a very elegant design, right? You want to have the USB jack come out to the center So it's kind of floating in the middle of the circuit board you can do the same with Headphone jacks Let me find this is another one So you can see it's kind of like it's weird like it sinks into the PCB it is goes in upside down so that it's centered on a 16th inch PCB anyways, I'm not gonna use this but I thought it was interesting for people who are like Oh, I want to have that really elegant, you know, the the hole is right centered in the product and the product has the PCB Centered in the enclosure because otherwise, you know, it's a cat apple so popularized this like beforehand It was like a fuck it like all the characters are like uneven and they're wherever you want But if you want them to have this really elegant straight in line of all the connectors You might have to have them sunken into the PCB anyhow, so let's just do surface matte white angle and then the next thing is You can get ones with switches inside of them and So, you know at this point I sort of there's a couple that are very similar in style so that the style I use which is this there's quite a few of them, but I sorted it by price and Sorry, I also want to look at ones that are in stock right now and I found this one. So this one you can tell by the rendering this is upside down But you can see that there's more than four contacts or six contacts on the bottom So if you have three contacts, you know, it's almost certainly going to be Left right and ground if it's four contacts, it's usually ground microphone left right And if there's more than that it means there's internal switches and the internal switches can be used to like you know When you plug in it disconnects the speaker or you can use it with a very light pull down to indicate whether you know something has been plugged in to either turn it on or to You know enable audio output at all there's no point in turning on the audio subsystem It may be if the headphone isn't plugged in So you can check out the datasheet and Yeah, it has a bunch of contacts and this is what it looks like so You know normally you plug in and you get Ground mic left and right and when it's unconnected The left and right are connected through to five and six Which lets you you know have an internal speaker or against some detection that says like okay The headphones not plugged in you know, it would be really great if Headphones had like a separate switch that was not Routed like it wasn't going through the audio line like line path But I actually you know once I found a jack that did that but since then it's been I always find it this way So even though this doesn't seem like it could be used to detect a headphone Like it looks like it's only good for switching The audio line through speakers or not you can use it for detection of whether A speaker is plugged in and their headphones plugged in and in fact the headphone amplifier We talked about last week does have in the app notes section a circuit to show how to disable the headphone amplifier when These switches are opened So it says it's a very cute Headphone jack it's got the mounting holes So it's kind of nice. I don't know if we need a board cutout. Oh, yeah, you do You can kind of see it goes a little bit underneath So, you know either you have it up against the edge of the border you do a little bit of cutout if you don't want it to be sticking out past and It's very affordable. It's like a 88 cents for singles You know 60 55 cents in a real and I like it's gold-plated and it's from Tensility So this is my pick for the great search and that's a great search Okay, do you want to roll right into this week's special segment ion MPI? Well, ask if there's any any questions. No, you're good Okay, great. Yeah, let's do it. Let's roll right in. Okay for those who don't know is during the week ask an engineer we do ion MPI but Package was delayed we get super busy everything happened, but we said oh well We have with these other shows so we can just add it to this one here so What we do is we find it's incredibly new product at digikey and lady it talks about it So here we go and we have a theme song just like the other one. All right this week's ion MPIs from 3m lady That's right 3m. You're back. We did 3m a while ago for I think they're squeegees This week we're doing the ion MPI and 3m because Digikey on digikey.com slash new which is where they put all their MPI So do visit slash new every once in a while. You'll get some heads up on upcoming sensors and chips They highlighted a 3m VHV tape and this is my favorite tape. This tape is like it'll mess you up It's so good. So That was just me being clumsy that had nothing to do the tape. Okay, so What do you want me to do go to the next I was startled. I know kicked a trash can over I didn't mean to a lot of people don't realize and violence what it know what it this is this is like a performance art piece and We have a little bit more space in the factory here in our apartment. We have no room But we can touch each wall standing in the middle. So anyways tape tape. Okay, so this is the wheel of VHB tape It comes in different width and thicknesses, but we're specifically talking this week about the 59 oh six Which is a very skinny foam double-sided tape that comes on wheels In this case, it's actually it looks a little brown on this photo But usually it's actually quite black and I have some and I'll show it off And the great stuff about this tape is it's incredibly strong. It's got this kind of like famous acrylic Adhesive in it that can bond pretty much anything to anything like wood plastic glass Concrete what have you this stuff sticks to it. It sticks to it nearly instantly. It's a lot less messy than epoxy You know, I got this little head headphone holder that like sits under my desk and holds my Headsets while I'm not using them and it came with VHB tape and even though it was sticking to kind of a rough surface It it's stuck. Well, it's stuck strong and I can't get it off So this stuff is definitely the good stuff and for electronics you could use it for, you know bonding panels and closures Sensors, you know, it's it's not waterproof, but it can deal with a humid environment and a wide range of temperatures So here is the spec sheet There's a couple different thicknesses available again that highlighted one was the 59 oh six But there's a couple different thicknesses It you know, it pretty much bonds instantly, but after 72 hours that you'll get like the kind of the best bonding I think this has the Yeah, the panel the peel adhesion and the static shear I think in another page. I have the the pull Force required to delaminated it freaks strong. I mean, it's like, you know, tens of pounds of force are needed So this stuff is definitely quite powerful. It's used often, you know, it kind of like looking into it. It's used often for Bonding TFT panels to bezels and PCBs to enclosures And here are some of the use cases So they actually have a really cool video Which we're not going to show here But if you go to if you search for 3m VHB scooter, they put together like an entire scooter Like a human is on it and rolling around With like no screws or bolts only VHB tape And it worked and like it was totally fine for a demo adult human to roll around and it doesn't have that many views It's a very cool video. So I do recommend Checking it out. I think I sent it to you feel when we will post it up later when we put this on the blog Yeah There are spec sheets for the 3m VHB tape again There's just like a lot of variations of this tape. So while we're featuring the 30 and the 5906 There's there's other thicknesses width and stuff and the thing is did he has these in sheets? So when you look just, you know, the sheets are gonna be expensive because they're gonna be like, you know What five feet by like 20 feet or something? Massive sheets that can be die-cut, but you can also get them in spools, which is what we did and what we recommend So it comes in on the key. It comes it's on the key yet for I think like 13 bucks You can get half inch by five yards and then I think for 20 bucks. You can get One inch by five yards. So I actually got one of each They're inexpensive enough that you can like pick it up without worry having your toolbox and then You know, usually if you're using foam tape or double-sided tape It's like it's removable if you need something that's not going to be removable It's something that's really like it's stuck and it's going to stay stuck for decades Then this is definitely gonna do a better job than like your everyday electrical tape scotch tape masking tape whatever and I can even show a quick demo on the overhead Okay, so this is the VHB tape Okay, and I've got my scissors so it comes So of course, it's so strong. You can't it's not like, you know Double-sided scotch tape where you can like peel it off and it's like yes, it's stuck to itself But it's removable. Um, if once it sticks to itself, you can't remove it So it's got a plastic dividing. It's like the one plastic it doesn't stick to That's the thing they're the cure and the disease Design something that sticks to anything if you want to package it you have to find the one thing it doesn't stick to you So you can package like the super glue company has a thing that makes it so it doesn't stick to other things. You know it Yeah, so so just for a demo. I want to show. Um, yeah, I have these two scrap PCBs So you would uh, make sure you lock the focus Oh, yeah, sorry Is this okay All right, so I cut off a piece of The tape and the um backing So if I adhere this here and you You can see that right? Yeah Put your finger in there and then you can peel this off And then so I can like kind of sort of remove it. I'm going to put this cross ways And then again, you know 72 hours is like how long it takes for it to like really bond But um You know, wow, this is here you you you try it And you're a guy you're strong All right That might that might have hurt me you're a monster. So it you know, it is it is possible Also, of course, if you clean it But you have to have you have to be able to like Wedge it from the side to be able to get enough. I'm also cranked out on gear He's also he's also Anyways, he's not Extremely strong and then you know like if you Didn't go from an angle if you actually tried to pull it flat It's really stuck So for like displays and stuff or for any kind of electronics where you just have to make sure that it doesn't vibrate loose and it's kind of a little bit of The foam is a little thick So there's a little bit of give which is also kind of nice like it's stuck together But it's not like hard stuck together like there's a little bit of flexibility. So if this gets If it gets a shock force, it's not going to like fly apart This is some of the things about epoxy that drives me a little crazy. It's some epoxies are so hard that You know, but if you if you give it a kick in just the right location, it'll snap open Whereas this adhesive on the foam backing is just soft enough that I think it has a little bit of give It'll stay stuck even if it's like shaken or twisted or You know lifted and dropped so Yes, I usually have to test Stuff that's like unbreakable or like whatever what I like about this is this was hard to To to get apart, you know, like it hurt my hand, but your hand. Okay. Yeah, it's fine But it did give which I like because in the past, you know, sometimes I break the thing instead Yeah, so this this had this could hold anything um, but it does it does You do make it an easy piece with it and you make a compromise at some point And it will you can you can remove it eventually Yeah, that was hard though You just have to put like, you know 100 pounds of force per square inch. Yeah, so it's it's a lot of um It's a lot of efforts But you can remove it But it's not going to move by accident. Like you have to try what I should say is it's purposely or purposeful Removable purposely. Yeah, like you have to like have a lot of willpower Okay, and the vhb stands for like very high bond. I think so like there you go. Right. That's what it is All right, I think it's very heckin cool. And with that Is that an mpi? All right, uh, this isn't part of ion mpi, but I just thought was interesting Lady, did you know what 3m stands for? It's like I know it's a minnesota something. It's an american company Yeah, and and I have the logo. So it's the minnesota mining and manufacturing company from diluth minnesota And then you can see the other logos from 1942-1944 I like that 1961 logo. Look at that. That's a nice look. They just And then I I also like the 1906 and the 1942 they make everything and uh, the 1942 it's very hand-drawn looking. Yeah This is cool. The 61 is very like 1944 if we're though, it's like, I don't know World War two really messed us up. Yeah That current one looks good too. I mean, I I I think that it's um, look, it's a very modern company You know, they make a lot of different stuff if you're a chemist Definitely get a job at 3m Um, and they're kind of well marked, right? Yeah, I thought it was cool. Yeah. Okay. Well, that's our show for tonight We went a little long tonight. Thanks for sticking out everybody. Um, we'll uh We'll see everybody Let's see on tuesday, we have JP's product pick. Yes, it's a live show from the product page Wednesday, we have 3d hangouts with numpadro And then we have show and tell and i ask an engineer thursday We have JP's workshop and then friday we have Scott's deep dive Tonight tomorrow, I'll be posting up a couple short videos of uh, this handheld playing Doom and more look how tiny this is um I loosened that up for you and and then uh, I kind of want to do a little like like beats of strength. Yeah, and then um Yeah, we're also gonna have a bunch of other bits videos and more. Yeah All right. Well, that's everything tonight. Thank you everyone for uh joining us. You make our sunday's nights exciting and interesting and get us inspired for the week ahead We have a bunch of cool stuff in store and thank you everyone. Um, not only for being part of uh, this show But uh, when we're not broadcasting I see y'all in the chat and you're always really nice to each other and I see you. I see you online And you always help one another and it's so much different than a lot that's going out Uh going on out there right now and uh, just thanks for making our little corner of the internet together Uh, just a little bit better and uh, it's very much appreciated. Okay, everybody. We'll talk to you later. Bye. Bye