Life from New York. It's that's this engineer everybody and welcome to ask engineer. We're back as always Wednesday nights Thanks for dealing with our schedule changes, but we're gonna try to have a good one hour now We check out what's going on in the world of makers hackers engineers It's me Lady Aida the engineer with me Mr. Lady Aida on broadcast control And we're here at the food a factory in the warehouse where we do our manufacturing and kidding and shipping and coding and Videoing and like I said, we have a full hour jam-packed of news videos Treats and Morris. Let's kick it right off Tonight show the code is BFF add-on. We'll show you why in just a few minutes That's the code tonight 10% off in the store all the way up till 1.59 p.m Eastern time tonight We'll talk about our eight fruit live series shows including show and tell got some time travel with some awesome special retro tech From the mail bag. This one's a little different this week We're gonna be talking about how to get a raspberry pie because there is a worldwide shortage main New York City factory footage 3d printing Ion MPI new products top secret We'll answer your questions. We do that over on discord a different IT slash Discord where you can join all 33,000 of us We'll answer your questions towards the end of the show But put them up in the chat all during the chat We get to them all every single week all that and more on you guessed it ask an engineer. Yay Okay, lady. We'll first up. Let's pay some bills BFF add-on is the code tonight It'll be on until I remember turn it off or midnight somewhere around there People get free stuff when they add stuff to their cart. That's right. What do they get if you order from a food dot com We've got some freebie giveaways $99 or more you get a free promo proto half-size breadboard that thing on the top left corner It's the same size and shape as a half-size Sutterless breadboard and make your projects permanent. That's what we call it promo proto top right corner Those are some stomach qt boards order 149 or more and you'll get a different one a different one of a sample of like A dozen different kinds that we have available if you make an account We'll make sure to send you out a different one each time Otherwise, it's random and then $199 or more you get free UPS ground shipping in the content of the United States Okay Next we're doing a bunch of live shows. We do live shows every single week and This week special thanks to JP who did show and tell thank you JP We'll be back on show and tell next week. No, Pedro did the one before we're alternating So do check it out go to any of our social media platforms and check out the Show and tell it just got published on YouTube right now. That's for a lot of people check it out From the desk of Lady Aida we do that every Sunday. We had two parts this week just like we always do What was part one part one desk of Lady Aida? We showed off this cool flipper zero We backed this on crowdfunding and it came in that was fun Also showed off some stomach qt boards that we're working on Some revisions we made we're trying to keep stuff in stock And so some boards if I can't get one package of a component in I'm redesigning the PCB to handle another package So an RTC that I can't get an eight SOIC. I can get an HV son So that's time for revision. So you're gonna see a lot of revisions If I have the new products this week all revisions, okay, and then we have the great search And that's where you help people find the parts they need Which is kind of a good thing right now because it's hard to find parts It's gonna be hard to find parts for another 18 months. So Yes, this week. I showed off the Finding an alternative triple axis magnetometer for Measuring the Earth's magnetic field. There's two kinds of magnetometers like high range and low range So this is the low range type. I wanted something affordable easy to use I squared C and most important in stock And I found a couple good options. Okay Then on Tuesdays we do JP's product pick of the week This week I had a little bit of observations. The JP's been really amping up the thumbnails. So this was this week He's a cat and Then I noticed it's like it reminded me of that that Sega Dreamcast AI experience. It's a little bit like Elon Musk. I mean, I don't know if that's like maybe that's his future evolution this is This is an advanced form of life So you could check out the latest thumbnail in the latest video. He's a cat. This is a thing Folks who know Dreamcast will remember this game was kind of cool Yeah, so here is the latest product pick It is the OLED feather wing 128 by 64 display you can use that stem of QT port to add another peripheral this is bongo cat and If I hold these these are going to play a little sweep on the Game Boy original Game Boy audio hardware The extra bonus here is that you can see I've plugged into the stem of QT port a little Accelerometer and as I tilt that accelerometer. It's a variable that changes the rate of that sweep It's pretty short sweep if I'm at one gets a little longer and even longer on the side of the OLED Same pins as my feather new key feather there OLED feather wing. It's 128 by 64. I squared C display with stem of QT port All right, and then on Thursday, we have JP's workshop and on JP's workshop. We have We have sirens in the background today. We have this circuit Yeah, circuit Python parsec take it away JP Yeah What I wanted to talk about on the circuit Python parsec today is Display rotation So I've been doing this little series on display I owe things and often you'll display either text or shapes or bitmaps Images onto one of the displays on a circuit Python based board when you display an image You have a choice of your orientation is it essentially a sort of horizontal display Either in that orientation or that orientation or is it a vertical display? Either that way or that way and depending on how you have a thing mounted or how you're using it You may want to pick different orientations So what I have here is an example of some cool little pixel art This is of a little Casio keyboard and then when I press a I can switch to a different image But you can see this image has a vertical orientation So it makes more sense to turn the screen this way and when I do that I'm going to want to switch the display rotation So this changes everything to do with your display all of the the values of where zero zero is for example X and Y all of those things get updated as you change this rotation setting So if I go back to this horizontal image, I can switch that rotation there And you'll see the way this works inside of circuit Python when you've set up your display You can see this value display dot rotation is set to zero and that's this sort of default But we can put it zero ninety one eighty or two seventy to get those four different orientations We can't do partial angles just these four orientations when I press one of these d-pad buttons I'm simply updating that display rotation equals zero ninety one eighty or two seventy Then I'm also using the A and B buttons to just do a sort of mini slideshow between images So that's how you can adjust display rotation inside of circuit Python using display rotation And that is your circuit Python parsec Okay, and then for folks that are fans of deep dive with Scott on Friday the 2 p.m. There's a change Scott is now on break Bringing some life into this world having a kiddo. So this will be Maybe part of the new graphics we're doing Tim foamy guy is Doing the show and I think we're gonna call it deep dive with Tim foamy guy Yeah, so that's the That's the graphic. Okay. We're working on it. Okay time travel Let's look around the world makers hackers artists engineers and more we have some news and the news that you've probably heard in the news is Well, there is a lockdown in Shenzhen So our ate a box that we wanted to ship in the winter is now turning to winter spring edition So that is the flavor. It's blue green now. I like to get these parts. That's right. So We're sorry about that working continue to update the ate a box pages and Hopefully we'll be able to ship soon, but thanks for hanging in there. We don't charge You as a customer until we ship anyways, so thanks for sticking in there.  So we appreciate your patience. It's an exciting time out there Yeah, we're all kind of dealing with 52-week lead times. We don't think it'll be that long for ate a box We were shut down in 2020 and 2021 for parts of COVID and we still got all the ate a boxes out So we're pretty confident. We'll be able to continue to do that. So thank you for your patience more time travel We went to some art last week. So I wanted to show this is from Kelly Heaton and I have Some photos I played I played some of the video in the beginning of the show and I'll play the full video But this is an exhibit. It's at let me go to the slide that I have here You can scan this in with your phone if you want. This is five Manhattan West yeah five Manhattan West and It's commissioned by arts Brookfield and it's curated by common ground arts and you could check out Kelly Heaton's work. You just Google for Kelly Heaton and this is circuit garden And if there was a set that was circuit python it would be this You can see all the parts I'd say that Kelly's work is known for this like analog Bird electronics Yeah, she's show it's fully analog There's there's a mic controller that like turns things on like that controls the relays But the audio itself is all done with like op amps and flip-flops That's what controls what turns on and off and there's a sensor. So when you walk by it The crickets chirp in the birds trail and they all have different songs to you. Which is kind of cute. Yeah And then here's the artist In person and then here's a video Okay, and mailbag can be a little bit different this week. Let me get my So this week's mailbag is going to be all about the raspberry pie and what we're doing to cut down on People buying up all the raspberry pies and selling them on ebay people making bots to buy up all the Raspberry pies and it's just not being fair for folks to get raspberry pies. There is a shortage around the world So this mailbag is from a tweet and this tweet is from a bot that looks at our site And the bot that looks at our site will tell you when a good bot. Yeah, well, I mean bots aren't good or bad It's what they do So there's a bot called rpi locator and it'll tell you when there's stock anywhere that they follow And they have tools that can I think they're using puppet or something like that and um Folks notice right away. We now require verified accounts So you have to have an account on a to fruit and it has to have two-factor authentication And so far so good, uh, they still have some in stock. It appears it's helping normally stock has gone in seconds That's great. And then um, the person behind this, I don't know them or anything They notice that this is helping the situation and the situation is there's a lot of incentive for folks to Horde these and so and they make it worse because it's like now There's even less right like I think people who really need them could get them if it wasn't that There are people who are purposefully Trying to grab them to sell them so we've tried a few different things. Um, we've we've reached out to folks that We're you know, we're like, hey, you're you're selling these on ebay. Please don't do that Um educators want these there's a lot of companies that just they need one or two Um, and it's just got really difficult and we don't have a lot So sometimes we get like 50 and we put them in stock and they and we needed to have something So it was humans buying these and we do have a limit of one per customer So I'm going to um, read some of the things that we're doing No, that's fine. I'm gonna read some of the things that we're doing and then ask any questions And then I'm sending this to our team Because we've just recently learned with security disclosures and everything else You have to constantly update your information because people have questions and sometimes terminologies different sometimes things are different how We work things and so Authenticated accounts to factor authentication all these things are somewhat new to people So we also have a guide on our website on how to set this up. Anyways, um, here's gonna be what we put on our Uh, blog and have been an email. So when folks say like, hey, how come I need an account? I don't can't use the guest count anymore. Um, why? Due to bots buying out certain high demand items such as raspberry pi for model b We are now requiring a verified account with two factor authentication for purchase We are working to ensure As many of you makers and engineers out there have the chance to order these items and market prices without having to compete with bots We appreciate your patience and understanding and can't wait to ship your order So we have the helpful tips verify your account. You get an email you verify it and then you put on two factor authentication um, so, uh Good idea would be to set up your account now and add two factor authentication now Um, log out of your account back log back in after it's all been verified Make sure all the information you have in your account is up to date for instance um If you've changed your address or anything, uh, make sure that you update it Because if you try to update it afterwards We might have to cancel the order if it's already been shipped and then it goes back in the stock Complicated things like that. Yeah, try to get make sure all your info is correct Know your address your zip code your email. I have to make sure that's all good Yeah, um sign up on the product page to get notified when you uh, do want to get Notified, um, we don't use that email for anything else and um, we don't send you a spam or anything You could one of the things that some folks do is they use a special, uh, custom email address Just for any type of correspondence on an online store. I think that's a good idea Because then if it's ever used again, you'll know What else I got Um Then we have a link to the guide on how to enable two factor authentication Yeah, it's not sms. You're going to use an app or a computer program called authenticator offy It's a free app. I've also um, if you want I made a circuit python powered I mean brant both made circuit python powered One time pad, um, sorry time based, uh, you know password authenticator thingies Using a pi portal or other raspberry pi device So you don't even have to use an app if you don't want you can build your own If you don't trust apps or if you just want to run out on your computer So a lot of options are available But um two factor, um as well verified accounts has really really helped cut down on the number of bots because we want to make sure that it's Really one per customer and not one per Customer per second, um, which was which is becoming a problem And I think it worked this time because we had we put in a couple hundred raspberry pies and they lasted At least 15 minutes and that's never happened before. They usually were all snapped up In two or three minutes by these uh by these bots. Yeah, okay, um So the feedback uh the folks had uh, some folks like the emails that's good Kind of annoying that you have to have two factor on the Authentication for some items, but at least it's uh t o t p based So yeah, yeah, no sms. So it's good. Um So yeah, it's a little annoying and I I want to I don't want to do it. I want to manage expectations I don't think there's going to be a surplus of parts And things I think it's going to be harder and harder and harder to get electronic components And so one of the things that we can do is at least try to make it as fair as possible We won't always succeed, but this is just one of the many things also to step Two-factor authentication is a good idea. Anyways, yeah taken from us. We just had to do a data disclosure. Um There was an exposure possibly so having Too far too factor authentication on your account is good no matter what I wish all sites Did that so it's a good idea not password data wasn't leaked, but If your password does get you know exposed by some website Or you reuse your password, which you shouldn't do but a lot of people do anyways Two-factor is another level. So free otp works well. Someone just set it up on the iphone Two-factor in this day and age should be everywhere agree And then someone wanted to know where to find the diy Just go to learn dot adafruit.com and type in tootp That's the that's the way of it's a very simple Hashing system that's another there's no secret sauce to it You know you basically when you do this two-factor authentication They give you a number and then you hash that number with the current time Like you put it together with the current time you hash it and that gives you that six-digit code So again, you you can just run it totally. You don't want to have to run app You can run the code on your computer. All right So slightly different mail back this week because we're basically talking to a bop But there's a real human behind it and thank you everyone for understanding and uh, We're trying to keep it as fair as possible Hopefully we want to get the pies to the individuals and so this is this is the steps we're taking You know as soon as the raspberry pies are available. Um, we will remove this limitation. Okay Next up it is now time for some retro I need something like spherical in my life. Yeah, so this is The future we could have had so this is a mouse. This is from oh you want to Oh, yeah, hold on. Yeah, so I'm going to show the photos and lady is going to show this. This is from I think 1999 It's got a 90s feel to it kind of 80s. Yeah So this is the space ball from space tech space ball Hold on And uh came with a little card on how to use it to quick reference Okay, so uh here So this is like a little sphere and it has a little bit of give not a lot of give but like it doesn't rotate in place And there's a little nipple. Yeah, and you can go this way Yeah, and you can see it. I guess this is used for 3d rendering and more and then maybe on the other side Let's check out to see if it has a date on it Um, it has a serial number. It says keyway tested. It says model 2003, but I don't think that's the model I don't see a date code It has a patent And says assemble in the united states and it's pretty cool And then it's got like ps2, okay So, uh, that's our first retro thing that we wanted to show and the next one Um, this is really cool. We have this here. This is the panasonic transistor radio r72 toodaloupe and 1972 is when it came out and this is another glimpse of a possible future and doesn't Mean we have to design things that all look the same like uh, this isn't like the moment black rectangles Yeah, this is in the moment and uh, this is in the ate a fruit collection and it's a FM radio and you could see AM radio Right? I think it's an AM radio Yeah Not FM. Well, you're going to take it out of the box to find out. I don't know. Yeah I guess I have to Sorry for wait. How do I take it out of the box? It's triangular. Do you have to open up from the bottom? What? Triangle box triangle. No, you can't pull it out, right? Because you have to Well, we're doing the Video here, so and I think uh Yeah, it's it's am So i'm gonna do the overhead. Yes. Okay. Okay. So it's an AM radio and then this is the dial where you can tune it This is the on-off. Yeah, you can turn it on Well, where's the on-off? I think I think the batteries are I think the battery's dead the battery's the battery's dead Whoops It was too looping all night. Yeah, so this is a nine volt. Yeah, and you can um, you could wear it That was one of the things you could wear it As a as a thing. So now I have a toodle loop Toodle loop bracelet. That's a bad. Yeah Goes great with your bell bottoms. Yeah Um, I like this dial It's a fashionable dial. Yeah. So yeah, am radio and then there's also a headphone jack, but there's a built-in speaker here, too Made in japan. Okay. Doodle loop And that's this week retro. Um, we'll be posting something every single day It's a good idea to look back in time get inspirations for designs that you may want to do not everything needs to just be a black rectangle You can do a lot especially now at 3d printers and uh Be inspired there's a lot of folks that are Still using some retro hardware for input devices. We found the protocols So we're going to try to get this to work with circuit python. It's one of our projects We will let you know when this is done. But look at this thing Nothing says 90s like this. I'll tell you what it is. It's the totally unnecessary grid Like the grid is not useful at all. There's no purpose to it.  It'd be nice to know like what went into this Um, so my guy in Osaka or something. Yeah, I mean like there's there's someone out there that knows a lot about this I've been looking around online It's just like a lost history. It's like how did this happen and and if you think about it Look at these these designs panasonic. This was uh 72 So when did um the max come out? I mean the first apple now the apples were around in like with 70 Yeah, so so these all existed all at the same time like different different versions of of apple and panasonic And and it's interesting because panasonic you don't really associate with them with like music players You know, they're like cameras and like industrial stuff and they did stairs But this is like, you know, I think everyone was doing transistor radios. This was a really big deal Yeah, we should another I mean it's cool. You could play any music you wanted that was being transmitted and and listen to to bops All right, so that's uh surf vacations. I don't know that says that's this week's retro lots of round things Okay, it's by thunder hermity I All right, uh this week. I'm going to skip down in the newsletter to the bottom and then we're going to pop up to the top So, uh newsletter stuff this week do check out all of the hardware that's out there This is a raspberry pi Pico power 3d mouse with circuit python There is a pseudo linux written in circuit python for the raspberry pi There is a objectifying of the joy pad. It's the user's code dot pi will now be clean and simple Create an instance of joy pad and then Just process the key events while true loop the code is also able to detect the libraries and Provides links. There is bad joes From the pimeroni project that's ported over to circuit python. So you can use the pimeroni Um cool e ink badge that they just made we have very good ink support. Yeah, and obviously for the mag tag We did a lot of low power stuff too. Yep You check out circuit python 720 on the expressive risk 5 esp 32 c 3 dev board more ink displays And this oh, uh, I guess this is another one pipkin is a tool for Installing distribution packages for micro python circuit python if you're managing a lot of libraries It must be might be interesting to you and then more hardware Python lots of stuff in this week and more and so the highlights of the week That I wanted to show was first up. We have a new version of circuit python. It's 721. I guess the big thing is We fixed the big thing was we fixed a samdy auto reload. Yeah, there was a little bit of a like it was a marginal thing Did a couple of you know version? Updates, um, so mostly bug fixes All right, keep keep putting in those bug issues. We're gonna fix them Ann was on the python bites python stream The latest episode of the circuit python show came out. This is professor john gallagher who uh Let's see John gallagher is sorry march 15th. That was yesterday less pounder was march 8th. That was last week Yeah, so there's already a lot of episodes three episodes. Check it out And then speaking of professor john gallagher. Here's two tutorials as we include this in our newsletter. This is raspberry pi drum board for this raspberry pi circuit python school and then also physical computing with professor john gallagher stem of qt on a raspberry pi with quick another stream tammy makes things circuit python stream and another cool Keyboard rp 2040 base keyboard controller that you can use with circuit python. All this stuff is available in adford daily It's our separate website just for newsletters. Go to adford daily.com. We deliver these every single week And that is your python on hardware news for this week Okay, lady. We're open source hardware company. We have two thousand six hundred and thirty eight guides What is on the big board this week? Okay this week? We've got uh, I published a quick guide for the esp 32 c 3 A lot of folks got this board. I'll tell you actually I didn't realize we actually had put it in stock because it went in and sold out So quickly I didn't I didn't get a chance to uh to notice so You know, I put a pin outs and some arduino Example code and some micro python code circuit python doesn't quite support this board yet But I did use micro python with a lot of success So, um, you know, I tossed in a page there just to show how to to get wi-fi working in micro python with the risk 5 c 3 that's last week's new product And then Pedro did a 3d printed heel clip project with these cool new nikes that Can you can like 3d print and attach stuff on to actually have them right here? Yeah, so they're like attachable So why don't we go to the overhead on this? So I thought these were neat. It's a um So I gotta move my to the loop. Yeah, it's a it's a co-lab Let me find that So it comes with this little like dog tag thing And that's how that's they're like, oh, this is how you I think you should use a screwdriver Yeah, but I think they're being hardcore But they're just like, oh, this is this is the thing that you can use and you unscrew this And then you take these off and you can put Different things other ones kind of neat. It's the first time I've seen shoes that are specifically made To have 3d printed stuff and this is injection molded, but you could 3d print your own Like this design isn't too difficult to 3d print looks like there's no serious overhangs. Yeah, and it's a chromi chroma acronym acronym Acronym, okay. Well, they made um, they you know modeled it and so if you want to Do your own 3d printed? Yeah, we're gonna show the video in a minute or so But anyways, those are shoes shoes and then 3d printed shoes Sorry, there's like two more guys and then We've got the guide up for the esp 32 feather v2 This is like a total re-spin of our esp 32 feather. So check it out if you've got one of these There's a lot of extras we had to document all them. So we have our Arduino code example For like i2c and wifi and the o-pixel and finally um For the rfid whiz, which is this kind of cool standalone rfid tag, you know program like access Memorizer and user type thing. It's like basically you can use rfid cards to have an activity occur Um, just they was originally designed for escape rooms or interactive exhibits where like a card would unlock something or turn something on Um, and the company that was doing these exhibits and at escape rooms was like some people want these We're going to make a product. Um, they wrote a really nice detail tutorial With all of the there's a lot of little details. Um, that they went into With the rfid whiz. So if you need a project, you don't want to do any soldering You don't want you do any coding you just want access cards or like a bracelet to open a door or turn something on or turn something off Check out the rfid whiz. Check out the guide to see if you can do it and then you can pick one up Okay, let's do some factory footage And when be it a fruit factory footage unless we had a shot of what's going on outside the window here This is the disney headquarters And it's pretty calm day You can't hear it It's so loud. It's loud Time lapses they they should compress all the loudness too No, that's okay. People wouldn't enjoy them as much. All right 3d printing We have two things that we're going to show i'm going to show these back to back. Um, going to show the shoes Because uh, we did a custom version and I think it's the only one so far that I've seen that's not These also kind of like cut up in a cool way. Is that normal? Yeah, they're yeah, they're supposed to look cool Okay, these are these are these are too cool. They're deconstructed Yeah, they're supposed to be modern And then we're gonna um And then I'm gonna play the speed up Take it away now in Pedro Hey, what's up folks in this project? We're making 3d printed heel clips for the nike acronym blazerlo's sneakers We designed custom parts to fit new pixel leds and adafruit circuit playground These shoes have threaded inserts so you can easily attach 3d printed props and accessories Our rocket inspired boosters are motion activated so they'll light up and animate when you jump up or take a step You can easily program led animations using microsoft's make code This is a block-based programming editor that we think is great for folks who are just getting started The hardware simulator lets you test your code so you can write programs with just the google chrome browser You can connect your board and upload your code over usb. Make code is free and supports other hardware So be sure to check it out We think it's great for folks who are teaching in educational settings and workshops You can get the parts to build this project links are in the description The parts are 3d printed using pla filament The wires are routed through the boosters and attached to the heel clip using machine screws Be sure to check out the learn guide for a full step-by-step tutorial on building this project The neopixels are pressed fitted into covers that are screwed into the boosters making this a modular design The circuit playground is fitted into a clear case and gets attached to the heel clip with a tripod screw adapter Alligator clips make it easy to connect the neopixels to the large pads on the circuit playground The battery is fitted into a protected case that is secured to the heel clip with additional machine screws A jst extension cable makes it easy to plug directly into the circuit playground The heel clip assembly is fitted over the sneaker with the mounting holes nicely lined up Thumb screws make it nice and easy to secure them without having to use a screwdriver We think it's really cool that nike made shoes for 3d printing and they're a really cool platform for the diy maker community We hope this inspires you to check out adafruit circuit playground with make code Thanks for watching and be sure to subscribe for more projects from adafruit Okay, and don't forget every single wednesday you can learn how to make all this stuff and more This is one of the things that they were shown off today and it's cool. This is the etch a sketch Carter left the code and page or did the 3d print There was a project from a couple weeks ago Okay, uh before we go into ion mpi a little reminder the code is bff add-on Temperature set off to native fruit store all the way up till invasion 9 p.m Buffer done Buffer done. Yeah, and don't forget coming up later In the next weeks months. Just make sure you have an adafruit account and it's two-factor authenticated Because that's how we're going to be deploying a lot of things like raspberry pi notifications Because there's not enough of them for everybody and this is a way to make sure it's fair It's a little reminder. Okay. Let's do ion mpi. That's right Okay, ion mpi brought to by digikey and adafruit Lady ada, what is this week's ion mpi? Okay, this week's ion mpi is by murata They make all sorts of precision industrial sensors and devices. We've covered them before From some of their power supply stuff including a cool video But this week we're going to cover a interesting part. I've never used before. It's an inclinometer This is the scl 3300 inclinometer It is a sensor that as you may guess measures inclines tilt Um, as this is a fairly new sensor. It's got the spi interface You know, it's kind of this big chunky piece. I you know runs on three volts and We'll give you both acceleration out and angle tilt angle has a couple different modes and we'll go into those in more detail So the first thing you might be wondering is well, wait a minute, you know an inclinometer Measures tilt against, uh, you know the earth's gravitational field because like, you know, the ground may not be flat But the center of earth the the where gravity points towards is going to be a constant And so that's a good way of measuring what's flat Um, and a lot of people, you know engineers who might be watching will be like, hey, you know Why don't you just use an accelerometer? Accelerometer measures gravity and then when you measure gravity, um against three axes You can tell where the vector of gravity is pointing and then you kind of do a little bit of sine cosine action there Um, as shown here, this is a nice apanode. I think um that I found a there from ester and xp You can do the math and figure out what the angle and the the three Uh, three d angle vector is um towards Center of gravity. Um, that's your tilt. So why not just use an accelerometer? And we do have a lot of accelerometers and one of the demos that we often have for accelerometers is, you know, yes taking that Taking the the meters per second squared measurement You know if something's totally flat against the ground The x will be zero the y will be zero And the z will be negative nine point eight meters per second squared Because that's your gravitational force and of course if you're moving it you'll get the acceleration of motion as well as the acceleration of gravity But yeah as long as things are staying still. Yes, you can measure tilt Um, and the answer is yes, you you can use an accelerometer for that. However, um accelerometers tend to be designed for You know high motion they're they're meant for you know, a a game a toy or a Detecting tilt for a monitor whether or a phone whether you've tilted it For landscape or portrait. They're not designed for very Delicate small angle measurements um So for example here, this is uh, you know common accelerometer and you can see When you get into the highest resolution mode possible you get one milligee G is you know, nine point eight meters. It's sort of per second one g one milligee per low You know least significant digit Whereas for the scl 3 3 0 0 They have it in inverse. They say the best is going to be 12,000 lsb per g if you invert a blah blah blah It's point zero eight. So it's about you know, 12 15 times more precise than You know even a 2g accelerometer So basically it's it isn't accelerometer, but it's a very very precise stable and accurate accelerometer That won't have a very high range on purpose because it's designed to Um measure just gravitational like it doesn't really go above as you see 1.2 g um, it's designed really to only measure small changes in tilt and You know incline not motion like this is a very bad sensor if you want to measure Um a tap or a hit or you know a car acceleration Not good very good for it staying very still it's on a piece of equipment or it's on a A bridge or a building and it's measuring the tilt changes Another thing is compared to low-cost accelerometers. You're going to have much much better a temperature stability And also just offset stability over time so You know using these sensors they're basically just like really really really really good accelerometers That are not meant for active motion And so you're going to pay more because it is you know 10 20 times more precise and more accurate You're going to get a lot more bits of precision You're going to get a lot more accuracy as well And you're going to pay for it and usually accelerometers again, they're not designed for this So it's kind of a subset of an accelerometer Another thing is the noise density here is a Sorry this this is the l sl 3 3 0 0 so you can see The best noise density is about 15 micro g per root hertz and then for a common Sorry one moment For a common accelerometer You're going to get 220 micro g per root hertz. So, you know, basically again 10 to 15 times lower noise Which is important because you want to make sure like not only are you getting The the data, but you're not going to get a lot of variation in the data because it's meant for long-term measurements Okay Yeah, last up like many sensors that are designed for You know industrial or robotic uses The data has You know status there you can get status of the sensor, which I think is really important And there's a crc checksum For spi as well. So you you can make sure that the data you're sending and receiving Comes in correctly. You don't again any bit errors due to noise or what have you Something that I look for in in a good quality sensor if you're paying the money for an inclinometer You want to make sure the data you're getting is really the right data Also available in an eval board if you want to get started real quickly This eval board has all the little passives ready for you. It's a breadboard friendly. It's got big honkin mounting holes Four of them so you can stay nice and secure and then You know, you can read the spi data out with any mic controller or micro computer Available on digikey. It's in stock Yeah, this is a screenshot from just right before the show. It's it's available. You can buy it That's really important And I looked and as for inclinometers. This is definitely the least expensive Inclinometer, but it's fully featured and I think we'll do the job quite well for all sorts of industrial and robotic purposes Okay, and we have a video. Yes. So I'll say one thing the video is for the sca 3 300 That's the accelerometer version, but it's I believe they're either very similar or this is a reprogram version It's the same functionality. It's just this is the inclinometer output not the accelerometer output And that's this week's eye on mpi Okay, before we go off into new product land BFF add-on is the code and you'll figure that in a second. Here we go. You ready later? Yes All right, so first up we have a revision We do we're gonna see a lot of revisions in the coming months because if I can't get parts I have to revise the board and sometimes I can I do a little more revision because like I'm in there My eyes will fix a couple other things So this is the usb ultimate gs sorry usb ultimate gps a lot of tla's in there This is a usb friendly version of our ultimate gps board a very popular gns, which allows you to Get data from the sky to get the exact time And also your exact location handy for all sorts of purposes This one has both the built-in antenna and also you can connect an external antenna so you can use it indoors Have the antenna outside So this revision what we did is we changed the cp 2104 chip for a cp 2102 n Shouldn't affect anything the driver is the same functionality is the same And while we were at it, we also changed the micro b to a usb c. Why not also change a couple parts to Oh six or three instead of about 805 But otherwise the layout's the same the shape is the same functionality is identical You'll just want a usb c cable We're kind of moving stuff to usb c because that's the future or it's the that's the present and the micro usb is in the past Okay, next up Next up. This is a slightly bigger revision. This is the feather esp 32 s2 with bme Uh 280 sensor This is very popular and then after released it I realized that I had made a decision With the i-squared c pull-up resistors that ended up causing Higher power draw during deep sleep mode If you were using sensors on the qt port And so I was like, well, you know, I should revise this and I've also learned a little bit more about low power stuff So instead of a transistor to switch on and off the power to the qt port I've actually just thrown on another ldo. So there's two Low dropout regulators one for the neopixel and i-squared c one for the main board And that means you can easily cut power to the neopixel And i-squared c so even if you have stuff plugged into the qt port You'll be able to get that 70 micro amp low power draw in deep sleep and We're also going to have the version without the bme 280 Released into the store soon, but we wanted to start with this version So just showing a little quick demo because I don't think I showed this demo before This was set up for the tootaloop I got to get my inclinometer so I can Get this nice and straight Uh, so this is just showing that um here. I've got the temperature humidity and pressure sensor I also got a battery monitor. Oh, there's no battery installed. So that's why it's like there's no battery, but um if the battery was installed Find one hold on one moment one second, let me just uh Want to reset this completely? Okay, so uh now the battery voltage is more correct. So Um and you can see it's running off of battery. So there's a lipo monitor which gives you percentage and voltage. It's a nice little i-squared c monitor The esp32 s2 is a native usb Version of the esp32. It's a single core 10 silica 240 megahertz wi-fi No bluetooth support at all in it. The s3 has ble and we'll come out with that later However, it does have four megabytes of flash and two megabytes of ps ram Which is super handy if you need large buffers So the big change really was just again that little uh ldo over here Just got updated so it can be a lower power in low power mode um, so the guide will be updated with the new schematic, but otherwise it's um Very functionally similar To the polarity of how to turn on and off the power for the qt port did change But we're going to have a little bit of chunk of code that no matter which version you have it'll turn it on or off as desired so That's it. That's the update to the s2 next up next up. We have a cute kind of round panel mount 3.5 millimeter stereo adapter We had a smaller one. We actually got sent these by accident, but they were so cute. We're like we'll just put them in the store These are really easy to mount if you don't want to cut a square hole or or you want, you know, you have a rough edges It's it's a very large flanged connector. It hides You know any burrs in the hole quite quite nicely and so we like these for for panel mounting Because even somebody with just a simple hole saw Can cut it into almost any material Okay, and then the start of the show tonight besides you lady to our team our customers our community And the fruit staff that's running things behind the scenes tonight is This is the uh lipo bff mostly because I couldn't come up with a better name in time So this is sort of like a shield or a wing or A hat for cutie pies. So, um, you know, we wanted to make a couple add-ons One common add-on that people wanted was the ability to especially for the wi-fi boards to Have a battery plug in and have the battery charge We didn't have enough space on the cutie pie to add charging circuitry or a lipo connector But this little vff solders onto the back and kind of gives you a lot of functionality So there's the battery port, of course, you can use any 200 milliamp hour battery or larger There's an on off switch There's an on off switch. So, you know, if you if you're portable, you don't have to unplug the battery to turn it on or off There is the the voltage from the battery is then dioded back into the 5 volt pin because there isn't like a separate battery in on The cutie pie or the the shell that it's based off of and there's a Voltage divider on a 2 which you can cut this little jumper if you want to cut the voltage divider and the voltage divider lets you Monitor the voltage on the 5 volt pin Not the battery of the 5 volt pin which actually has a bit of a side effect that it lets you determine Roughly whether the board is being charged or is running off of the battery Because you can if the if the voltage on the 5 volt pin is above about 4.2 volts It's the 5 volt power coming in from usb if it's below 4.2 volts. It's most likely running off of the lipo battery So i've got the little demo Although, I don't know if I I might have reprogrammed this board by accident. Yeah But we have the video so show the video So, um, you can see turn it off turn it on it's running off of lipo plug it in it knows it's running off of usb Unplugged usb. It knows it's running off of lipo again. Yeah, so I got the demo down to six seconds Okay, um, there's a couple questions lined up in the chat go over to discord adafruit.it Slash discord. We're going to answer them in just a few minutes. Let's do some top secret.  Well, I hope we all learned something today. Have a great one Okay, and then here is the latest thing that you're working on Okay, this was kind of fun because um, you know, there's this part shortage and and you know I want to say like you didn't hear it from me, but you did hear it from me Um, this part shortage is probably going to continue for another 18 months So you should assume that anything you can't get it's going to be another 18 months till you'll be able to get parts The way you used to um about a year ago, uh or a year and a half ago I know it's supposed to be over by now, but it's not And um, I keep thinking of this um aphorism that I read in a book. Um Nothing is as permanent as a temporary situation. Um anyways, so The pc f 85 23 is an rtc that we know and love we use it in our breakouts. Um, it's inexpensive It's battery backed. It's three or five volt compatible. It's a really wonderful rtc Which is probably why I can't get any I ordered some about a year ago and uh, I'm still waiting on a shipment um, but I was able to snag some in uh Hb son and so you can see the previous person just had so I see and then I now have this new pcb which has Both so I see and hb son because I don't want to cancel my so I see order because like Once you book an order like you're in line, you know, I might as well stay in line like a clown Um, but while I can get some of the hb son versions, um, I'm going to be doing some revisions So, you know, we revised all of our cp 2104 boards to cp 2102 n that's been exciting. I'm almost done with that Um, and then you know next up is we have three or four boards that use the pcf 85 23 That's my secret Get back in that vault. Okay, so don't forget. Um, that's code bff add-on. I'm going to go over to questions And I have a couple lined up already.  Yeah, maybe I'll show the dinner. I'm sorry. I was so embarrassed. I was like, why is it working? Keep lining up your questions. Okay. Okay. Line up your questions. Okay. So look looks like the, uh, cutie pie and bff Those are whole some words together More of a comment versus a question. Um, does anyone heard if there's going to be a maker fair in new york this year? So I believe there is a maker fair long island because I was corresponding with them there But not in, um, new york city So, uh, check out maker fair long island of that Next up You want to keep showing that thing or what else? Yeah, I'm just turning it on and off. I'm like, look if there's an on off switch Isn't that wonderful?  Um, I missed the part. Will it charge the battery from the usb power? Oh, yeah, it does. Sorry. Yeah Yes, it does the one thing it was meant to do It charges the battery as well. This is the charge light. All right. Um question for you lady. Do you think, uh, It's going to be another 18 months for parts. Yes, I do I I believe it's going to be 18 months. Yeah Um, we think it's going to be look I I don't have personal insight I just um I just sometimes like I'm like kind of one with the supply chain sometimes It's going to be 18 months, but not for everything some some things are available Um, some things are not but what I'm noticing is there's parts that I ordered a year ago It's been 52 weeks and I'm like, so 52 weekly time, right? So like you're going to get me that real apart and they're like No, ETA. Um, so yeah 18 18 more months next up We do like a groundhog that sees its shadow. What's the possibility of a dual microcontroller board such as the sp32 or p2040 with Two chips for the purpose of passing off tasks leaving the main microcontroller for speed and code execution users could Be machine learning dvi hdmi camera project, etc Um, I mean, I think you can have you know, we do do that right like the matrix portal And the pi portal are two boards that have two microcontrollers. We have a samdi 51 As the main core and then we have the esp32 as a wi-fi sub processor that takes an spi commands um, I I personally kind of loathe Having two microcontrollers on a board. I think it's Um, really tough to do. It's really tough to do well It's hard enough writing code for one microcontroller Now you've got two and it's not doesn't make it twice as hard.  So, you know, there are dual boards a lot of the times what you will see is is yes that The esp32 is a very common one. I think Doing more than that is quite challenging because now you've reinvented rpc And and it took us like a good 10 years to get that right and we had infinite memory. Okay Next up This is more of a public service down. It's blue bootleg chips. Yep Everyone should be watching out for that in my professional life had to deal with bootleg chips specifically encoder chips Even though it might be suddenly be available does not mean it is the real thing Yes, the first the first kit I sold I was I got hit badly with Totally fraudulent chips. I needed for the zoxbox and ba611 zeros They were hard to get. I had a vendor and it's interesting. You know, they're all gray market because they were no longer made I had a vendor who had sold me, you know a couple hundred and they were good And then the next batch I ordered Were completely blank like diode checked it. There was nothing in it was empty plastic Looked the same the date code was the only thing that was identifiable and I had to ship To every customer a new chips. Thankfully, it was just, you know, a part that you could replace by the user but Absolutely counterfeit chips are going to be a problem. I'd be very well, here's there's there's good news and there's bad news, right The bad news is there's counterfeit chips The good news is that the prices that gray market people are asking for chips are so totally Out of control bonkers that you're probably not going to get them anyways because like why would you pay $30 for something? Even if it was real when you normally pay like a dollar fifty So I think, you know, the the best bet is I think honestly if you can't find it Sorry, if if you see a part It's probably not real or it's super expensive. You you should just redesign, but yes, I'm I'm sorry to say I think it's going to be 18 months. Okay Um Next up are we going to carry the blue is wireless swan board and their cellular data modem. It's a feathered Is it it is a feather that supports circuit python? I don't know if it is If it uses the nr 52 8 40, then yes, it supports circuit python because any nr 52 8 40 can I think we chatted with them and then I think we both got slammed And we didn't continue the conversation, but we might Um, it's been hard for a lot of people to carry wireless chips. The wireless chips have been specifically challenging If it's a board that's an nr 52 8 40 and you want to add circuit python support to it Because feather shaped either ask them. We have a guide or open up an issue in our circuit python refill okay Someone in the other chat in the beginning of the show asked if we were going to go over our data Disclosure we did last week. You can watch it on the we spent I think like 40 minutes. Yeah And there's a permanent post on our website along with any other previous security disclosures and we update this frequently because some people Um, including ourselves, uh, have to continually put Better descriptions different descriptions additional descriptions of anything that's possible with data disclosing so Check it out there. You can also look at our video. You can also email us security at datafruit.com if you have any questions You know knock on wood. We don't think the data got out there, but we wanted to do a responsible disclosure Um, someone said it's more like an exposure notification We're going to always tell everybody everything we possibly can and I Apologize if we don't get it right the first time We did a disclosure post and then some folks said I also want an email and we're like you're right We sent an email one business day later So we'll continue to alert customers for absolutely anything that ever comes up. That is our promise Yep to you and we'll keep updating it some people have questions about words that we used and They interpret one way and we didn't mean them that way It's not a big deal. Well, we'll keep updating the post and also I think next time I'm going to do a twitter spaces Q&A because that's where a lot of the questions came from and it's real time So I think that's one of my lessons learned. Yeah as well. All right Let me see if there's any more questions I got a 3d printer today Hey, should I set up octoprint guess what can't get a raspberry pi for under 120 dollars anymore the two The 2b isn't sufficient. I'm guessing I'm also going to be 18 months On being able to actually get that. Well, kevin. Here's what you do Go to a to fruit comm make it account verify it do two factor authentication and today We'll try our best people got emails and they were able to purchase the raspberry pies I think specifically for their 3d printers. Yeah, so I don't think you'll have to spend that much money One thing a deferred is not going to do. We're not going to charge more than We have before for raspberry pies unless our price goes up But we're not going to charge. We're charging. We're charging the price that it is You know, I mean the thing is is that a lot of people got very addicted And reliant on the extreme surplus of very low-cost single board links computers from the rather be pi foundation Um, it was so awesome to be able to get you know for 35 dollars a a full lense computer that could run octoprint You know Octoprint, I don't know it's not going to be 18 It's not gonna be 18 months until you get a raspberry pi again But it might be 18 months until there's a steady consistent supply of all the different raspberry pies because I know that Like any vendor, you know, they're going to prioritize some boards over others Um, so I what their priorities. I don't know but um, you know, they do have a limited number of chips They're probably going to use them on the most popular products to get them out there Um, that said, uh, you can get a raspberry pi 400 now. It's it's a little bigger But it is a pi 4 And you get a keyboard for free with it, right? So you can you can use that I know it's more expensive, but it is a pi 4 inside It has a gpio header. It has I believe the ethernet and everything ports So you should be able to use it back and show all your One more question. Oh well from this person. What's your recommendation for storing stemmer sensors also? Thanks I'm sorry. What like what like what?  I mean, they're small there You could put them in a bead box. Okay. Yeah, everyone's having trouble sourcing parts. Yep. That's two Um, when are you planning on getting more of the touring complete labs tended to monochrome display are also able to slide If the test runs are successful for a third party board, uh, we booked them, but um, guess what? There's still a shortage. So they're probably also having difficulty. Uh, there's really no ETA is available for stuff But we did book an order for uh, we feel uh, I'll do two more questions So someone did sign up for emails, but maybe they didn't want today. Yeah, we only got a few raspberry pies So we only notified that number. We only notified the number that came in That we could notify because we want to notify like 3 000 people for 200 boards That's not fair and you know log into your account and if it says you're already signed up for a thing That means that you didn't get it also make sure you check your spam folder. Um, next up Do we plan ahead what's in ETA box for uh, the summer 2022 ETA boxes and fall? Yes So we do that we plan really far ahead in fact We planned so well last year even when there was shutdowns with COVID and everything or the year before That we were able to deliver ETA box. It's just this latest part shortage Is when things are starting to get a little bit more challenging, but we'll get all the ETA boxes out Don't worry.  You'd actually get it in 20 weeks. That's not true anymore either And so we are booking all the parts that we need for the future ETA boxes, but um It's very hard to it's hard to believe anything anymore. I've been hurt before Um by vendors. So, you know, we're doing the best we can Booking as many parts and and trying to design Around availability as much as possible. Okay, and that's questions. Okay. Thank you everybody So that is our show tonight special thanks to everyone in the community all the customers all the Folks running things behind the scenes including you to Kara. Thank you to Kara. We'll see everybody Next week. Thank you so much. This has been an ETA fruit production. Here is Your mom of zener Bye everybody. Bye


Hey folks, in the last few episodes of Code Club, I've been spending a fair amount of time trying to recreate different versions of climate spirals. These are spirals diagrams indicating temperature deviations from the average temperature between 1951 and 1980. The data I'm using comes to us from GISS at NASA here in the United States. We've looked at climate spirals developed by Ed Hawkins in the University of Reading, people at NASA here in the United States. We've made GIFs, we've made MP4s, we've made interactives. So one of the things that I was intrigued by at the end of the MP4 made by NASA was that we get to 2021 and then tilt up the climate spiral showing it in three dimensions so that each stack is a different year and then radially we have the temperature deviation. It goes from April on the left to October on the right. And so I think those two months are perhaps arbitrary. They're basically three o'clock and nine o'clock on a clock face, but I thought this was a cool visual and I would like to build this today with you.  You know that you're going to need a geome from GGplot. Well, what geome are you going to use to draw those lines? When we go through the video, see if what you said agrees with what I end up doing and if you do it by a different approach by all means, let me know down below in the comments and I'd love to see what your thoughts were on how you would pursue generating this figure. As always, if you want to get the code and the data that I am working on here in our studio, down below in the description is a link to a blog post that will get you everything you need to get up and running. I have a brand new R script here loads in the tidyverse library as well as that initial T data data frame. So T data data frame, of course, has each the year, the month and the T diff. I'm going to go ahead and save this into my code directory.  Great. And so what I want again are the months, April and October. So I'll go ahead and bring down T data. And to get those two months, we can do a filter on month equals equals April. It's actually going to be a PR right because it's a three letter abbreviation or with the vertical line that pipe month equals equals October. And so now we have the year and the month for all of our April and October data. So the approach I'm going to take is to use geome segment to draw horizontal lines going from April to October. And so geome segment needs four arguments, it needs a y, a y and a x and an x and and so to get those x and x and I'm going to use different columns. So I'm going to make a April column in an October column. And then the y is going to be the year. And so that that year will be the y as well as the y end. So let's go ahead and do a pivot wider. And we'll do names from equals month. And then values from equals T diff. Great. And so now we can see we've got our year and our two months, we could go ahead and feed this into ggplot as and again, we'll do x equals October on the left right. So we'll do OCT and then x and will be April. And then our y will be the year and our y end will be the year as well. And then we'll do geome segment. So that doesn't quite look what we'd expected. It's actually fairly close, but just a little bit off. If we look at the original version here from NASA, we notice that zero is not running right through the middle of the diagram, right? Zeroes are offset. Again, the x axis is a month with the left being on August, October and the right being April. And so what we need to do is subtract, say like the October numbers from a more negative number to kind of pull those out. Basically, we need to create space in the middle. We saw this before when we're looking in polar coordinates, and we had a negative radius, right? So we added a value to the radius to open up the donut, so to speak, to get the climate spiral, kind of when we're looking down on this particular visual. So what I'm going to do is I'm going to take a constant like minus four, and then subtract all the October values from that to basically pull those off to the left, opening up some space in the middle. Now I don't have an x axis on this, what I have are these four grid lines. And so what I'll need to do is to figure out what is the zero line for October, and what is the one degree line for October, right? And so we'll be able to figure that out with a little bit of algebra. So again, let's come in here to our x, getting mapping October on the x, and I'm going to take, say, negative four and subtract October from that. There we go. Now we get something that looks like that tornado plot that we saw from NASA. And what we can see again is that we have negative four here, which will be zero, right? So that negative four will be zero because if we think about our mapping here, if October is zero, then x is going to be negative four, and then one degree will be negative five, right? That'll be out here. Yeah, right out there, right? Cool. So next thing I want to add to this is our color. And so the color we're going to say, I'm going to say as an average T. And so let's create our average T by coming up here, and we'll do a mutate on AVET. And that's going to be the average of April and October. Actually, I don't want it there. I want it down here after the pivot wider. And so we'll do oct plus APR divided by two. And that's going to get us the average temperature of those two months. And then we'll use that as our color. Now what we want to do is go ahead and add in our color gradient, right? And so we saw that we could do this scale color gradient two, right? And so the low mid and high. So low is going to be, I'll do dark blue, high, I'll do dark red, mid is going to be white, which is the default. And then midpoint will be zero. Great, we've got our desired color scheme. That looks pretty nice. So the next thing I want to add to this are those vertical lines. And so coming back here, let's go ahead and do GMV line. And we'll do, again, it's going to be negative five and negative four. Those are going to be the plus one and zero lines for the October, as well as then the zero and the one. And that is going to be our x intercept. So then write that just to be explicit. And then my color, I'm going to make this gold and see what that looks like. And of course, those are on top of the lines. The original is behind the segments. So let's go ahead and move that back up here before the segments. And that now is falling behind them. Let's go ahead and start playing around about a bit with the styling here. So we can get things looking the way we want. I'm going to go ahead and turn off the legend. So I'll go ahead and do guide equals none. That gets rid of that. So let's go ahead and remove our labels, we'll do labs x equals null, y equals null. And of course, the title is already null, but that's gone now. Let's go ahead and get rid of those x axis labels, and the y axis labels, those years, we're actually going to put right on top of the plot. And so then we can do that with theme. So we'll do axis dot text equals element blank. That gets rid of those, we also want to get rid of those ticks. So we'll do axis dot ticks equals element blank as well. That gets rid of those good. So let's get rid of those grid lines. And so we'll do panel dot grid equals element blank. Now we have that gray background. I'm going to go ahead and turn the background of the panel as well as the plot to be black. Maybe I'll put that up here at the top. So we'll do plot dot background equals element wrecked will do fill equals black, as well as panel dot background element wrecked fill equals black. And so now we have a black background on all that. I'm noticing that our lines extend beyond the top and bottom of the plot. Again, looking at the original, it extends above the top, but not the bottom. And so what we can do maybe for our scale y continuous, so we can do scale y continuous. And we can then do limits equals 1880. So BC comma 1880 comma let's do 2030. So that will get the limit to be 1880 at the bottom, and then the top to be 2030. Actually, you know, for this, this bottom limit, we could always put in na. And then we can do expand equals see zero comma zero that expand again, does removes the expansion layer at the bottom and the top. And so we added the 2030 to go nine years or eight years into the future. So our lines extend a little bit up past the top. Very good. I'm going to go ahead and save this to a file, because we're getting to the point now we're going to start changing the sizes of different things and the actual location of different labels. And I want to make sure that those go to the right place. What we see in this lower right plot panel isn't always the way things turn out in the final version. And so by putting it into an actual file on the computer, we know what it's going to look like. So I can do g save. And I can then put it in figures climate tornado.png and I'll do width equals 4.5 height equals 4.5 and units equals inches. So it looks pretty good. I might want to change the aspect ratio a little bit to make it a little bit shorter and squatter. And so we could also do that by changing the amount that we subtract October from. But let's go ahead and make our height say 3.5. So I think that gets us a squatter better looking image. One thing I notice when I kind of change the size of this file is that if you look really closely, there's a white border all the way around the plotting window. So let's come to our panel background. And let's make sure that the color is black. And sure enough, that got rid of that white border. I'm not sure why that white border is there. But that's cool. Okay, the next thing I want to do is let's go ahead and change the thickness of our line segments, those horizontal segments, because they're just thin enough that we can see some of the black background showing through. We can also see those vertical golden bars showing through where our segments are going over top of those. And so we can come back up here to GM segment, we can do size equals, let's try one, I think the default is 0.5. But let's try one. And so that looks a bit thicker, maybe it's too thick. Let's try 0.75. Again, I think 0.5 is the default. So I can still kind of see the yellow in the background right in there, if you look closely. Maybe we'll just take it up to 0.9 and just call it good. One thing I'm also noticing is that the ends of my segments are squared. I can't reproduce the actual appearance of the NASA version. But they do look roundish, right? So one of the things I wish we could do is to figure out how to do changing depth as we go across the months that are facing us, right? Because it's basically the bottom of the clock face, right? So it's like March, April, May, June, July, August, September, October, right? And so we kind of miss a bit of that texture. But one of the things I do see is that it does look like a round cord. We can actually get that effect by coming up to GM segment and doing line and equals round. And so you'll notice that we now have nice little round caps at the end of each of those segments. Cool. Again, I don't think we can get the texture or kind of the 3d feel of each of those lines. But I think this looks pretty good. So the next thing I want to do is go ahead and put labels on those grid lines. And so I'll say grid labels. And we'll make a tibble out of this. And so the x positions are going to be a vector. And again, it's going to be minus five, minus four, zero and one, again, that minus five and minus four, because we subtracted our October values from negative four. And then y is going to be at the top. And so you'll recall that we made our limit 2030. But the most recent data we have is 2022. And so let's go ahead for y and we might adjust this, but let's go ahead and put in 2028. So also want to put in labels. And here we're going to put in a vector of texts, going from the left to the right.  So that's the unit code for one for a degree sign. And then we'll also do zero. And then we'll also basically do the same thing all over again, but for the right side of the figure, right? And again, we'll put this there, right? And so again, it's going to go one, zero, zero, one. And now what we can do is we can use a geome label, because we want that background, right, the black background, that we're going to put on top of geom view lines, we'll do geom label, data equals grid labels. And then we'll do a s x equals x y equals y label equals labels. And then we'll also want to do inherit dot a s equals false. So we see we have a white background and black text, we need to make gold text and a black background. So again, we can come back up here to geom label, and we can do fill equals black, color equals gold. And then we'll also want to set the label dot size to be zero. So those labels are in the right place. They look well formatted. They do seem a bit large. They're also getting clipped at the very top. We can change that clipping so it doesn't get clipped. But let's start by shrinking the font down a bit. And to do that, again, we can come back up to geom label. And then we can do, let's do size equals three. I never quite know what the size is for geom label. So I think that looks pretty good. I might actually want to move it up a little bit. So we have a little bit more length on the yellow bar. So to do that, we'll change the Y position. So let's go ahead and put it at 2030. So we clearly see that our numbers are getting clipped off there up at the top. And so we can fix that clipping by coming up here and I'm going to go ahead and add cord Cartesian and we'll do clip equals off. And again, that will turn off the clipping. So basically clip equals on as the default. And it clips all of the plotting to hide anything that's outside of the plotting window. And there we go. We now have our numbers right on the grid lines. And I think they look pretty well portioned. The final thing I want to do is add the years to the middle of our tornado here, right? So looking at the original version here, you'll see it goes from 1880 to 2021, basically 20 year increments until 2020, and it skips 2020 to 2021. 2021 is also the last full year that we have data for. If I were making this from scratch without trying to impersonate what they're doing, I would probably go to 2020. I don't know that it really matters. But at the same time, having 2021 makes it clear that we're going beyond 2020, right? We have this extra year's worth of data. Anyway, let's do what they have. And we'll go from there. Again, we'll come back up here and I will make a new data frame that I'll call year labels. And this will be a till. And so then our acts, it's going to be midway between zero and negative four. So that should be negative two. If my math's wrong, we can always change it. And then why I will make a sequence from 1880 to 2020 by 20s. And so that's going to get me every 20 year, I actually don't want the 2020, right? I want 2000. And I'm going to concatenate on 2021. Right. And so again, this vector will get us all of the years, right, 20 year increments. And then the C will concatenate on to that vector 2021. And so we'll get those years as well. So we'll go ahead and add that. And then down here, we'll add a geome text on top of the segments. So it goes after geome segment. So do geome text, data equals year labels. And then we'll do AES x equals x, y equals y. And then our label will be the same as the y the year, right? And then we'll again do inherit AS equals false. And a color is that horrible green. Again, I'm just trying to impersonate what they did. So let's see what this looks like. There we go. That looks a lot like what they had in the original version of the figure. You know, maybe the year was a little bit smaller, I think it's actually the same size as the numbers on the grid lines. So maybe we could come back up here, and we could change that geome text to be the same size, which I had as three. So it looks more appropriate for the size. I think they did make it bold. So I'll come back up to geome text, and I'll do font face equals bold. And so that's bolded. That green is really unattractive, in my opinion. Honestly, I don't know what other color I would use. Maybe maybe I would use yellow, you know, let's go ahead and turn that to gold and see what that looks like. Sorry, I keep picking at this, but I can't let that green go. So let's do gold. I think that looks pretty good. Maybe it gets a little bit washed out, kind of down in here. But you know, the green was really horrible.  So I'm going to roll with that gold color. And I think that looks pretty good. Alternatively, we could always put the year off to the left.  Let me know what you think. What would you do with these years? Would you put them off to the left? Would you leave them here? Do you like this color? Do you like the green? Let me know what you think. I'm curious to kind of get your sensibility of how to make this look a little bit more attractive. I'm pretty happy with the way this looks. I think it was pretty cool to be able to use geome segment to generate this a little bit of funny algebra that we had to do so that we could bring the October date off to the side like we did. Again, let me know what you think about the placement of these years and their styling. Tell your friends about what we're doing. Ask them for their feedback as well. And we'll see you next time for another episode of Code Club.