 Welcome to the show. It's me, JP. It's time for another episode of JP's Product Pick of the Week. Thank you all so much for stopping by today. First of all, that string. Where did that string come from? That's just going to bug me because the fan is blowing it all around. All right. That string is gone. First of all, thank you for stopping by. If you're wondering where the chat is happening at, jump on over to our Discord server. That's at adafrew.it slash Discord. Jump on over into the live broadcast chat channel. People are hanging out there. Hello and thanks for stopping by. See Grover and Skr and Jim Hendrickson, Franklin and Deboudog in the House of Blitz City DIY. Evil Dave of Canada. Thank you so much for stopping by. Also in our YouTube chat, we've got Dave Odessa and Quinman16. Hello. Thanks for jumping in. Quinman, what do you mean by you had two JP sign? I don't know what that means. What does that mean? Let me know. Let me know in the chat. I'll keep an eye out. Let's see. Also, if you want to watch this show from inside the product page and get a jump start on checking it out and making your own mind up, if this is for you, if you'd like to get this week's product pick, that's it right there. Product ID 4479. It is half off. We've got it on a deep, deep discount right here for you today. Normally $9.95 and today it's $4.98, just during this show. But what is it? What is he talking about? Well, head on over there or hit that QR code there if you want to use your camera, your phone to jump over there instead of typing like a savage. Just point your robot pocket robot phone at it and it'll take you there. So this show happens right inside of the product page there or any of the other multitude of places that you can watch Adafruit livestreams. But before I go any further, I'm going to have Lady Aida tell us a little bit about this product. This is a quick one, but here's a little bit about it from the new, new, new video and then I'll get into some more details for you. So take it away, Lady Aida. We've got the LIS-3MDL magnetometer. This is a triple-axis magnetometer. It's a nice little sensor. It has I squared C, it has SPI, it has I think like four, six, eight, twelve, gals range. So nice big range you can use this for magnetics, but honestly it's best for doing earth magnetic field detection. This is just the STM32F405 feather and it's got a STEMIQT connector on it. And then I've got here the magnetometer and the accelerometer gyroscope. I'm going to really zoom in to see and it can display, you know, the nine-off senses. That's right. I said it was brief, right? But look, there it is. And I'm going to talk more about it. There is this beautiful little STEMIQT module, the LIS-3DML. Let's talk about this. This is my product pick of the week. This week it is the three-axis magnetometer LIS-3DMDL. It is a STEMIQT board. So you can plug and play over I squared C and use it like a compass. This one is tuned particularly well for magnetic north for detecting the earth's magnetic field. Some of these magnetometers are more suited for strong magnets. They're tuned for maybe using as detection for joysticks, 3D joysticks and things like that. This one really is a magnet module. So let's take a look at it. Let's talk about it here. I'll go to the overhead view here. Here you can see this has two STEMIQT ports on it. It has jumpers for two different addresses. So you could depending on what you needed in your project to have two of these. Or if you have a conflicting address, you can grab a different one. And you can pipe your STEMIQT through to pair this up with other sensors like Lady Aida did in her demo. We also have pins. So if you're not using the STEMIQT cable, you can also use pins to connect this into a breadboard, a perma-proto, a circuit board of your choosing. But this detects on three axes, which you can then use code both to calibrate it to get rid of noise of other local magnets and hone in on the earth's magnetic north. And then give you a heading, which is often what you want out of these type of modules, which is just where's north, which I keep pointing it that way because that's basically north from where I stand. So let me plug this in and give you a little demo. So I'm going to back this camera out here and refocus and I'll show you how easy it is to set this up. So first of all, I'll plug a STEMIQT cable in right there. And then I'm going to use this. Try to get these oriented happily. I'm going to use this board, which is a Feather ESP32S3 Reverse TFT. So there's all the guts there and there's our STEMIQT port. There's a nice TFT display. And for now what I'll do is I'll just plug in a battery. And what this is going to do is print out the compass heading. So when I get to about zero, or 360, 359, 1, that range of things, zero, that is north. And you can see we can point this around, pivot this around, get about 180, there's south, there's west, find east over here. So I just have it spitting out the degrees on the display there. And you can also check out with a little finer grain detail. I just didn't want to print out the decimal places on there to keep the display neat. But if you take a look at this view here, you can see I am printing out to the serial REPL there, degrees with a couple of points of precision, decimal precision there. And you can take a look at how this code works. So in this case, what I'm doing, I'm importing a couple of important math libraries, ATAN, two and degrees. I'm importing the List3MDL library, which is specific to this chip here. And then I'm doing some display stuff. I'll get to this later, but you can see I have some offset values that I'm using, I calibrated this, and that's important. We'll come back to that. But if you just want to ask it, maybe before you've calibrated, just with whatever magnets happen to be around, what is my heading? What we're going to do is set up I2C, set up the sensor as a sensor on I2C, and then we're using this, you can use the default, I think this may be the default, but I'm setting it to the 16-goss range, you can change that. And then we have a couple of functions here. We're using the vector two degrees and asking it to return a vector based on two inputs, the X and Y values. And we're also getting this heading from the sensor by saying, okay, give me the magnet value of X and Y, which are two of the three values you get when you just simply ask this sensor for its magnetic value. It'll give you X, Y, and Z. We're just going to ask for X and Y. And then in the main loop of the code, what we do is first heading, get heading sensor, so that uses that function to say, okay, what are X and Y on this chip here? And then I'm printing that out. And then I'm also saying, print that to my screen using label text. But what that does, you can see when I say get heading, it jumps up and it says get the X and Y, and then go and return for me the vector, which is what's returning this zero to 360 here. Now you can see here I mentioned I've got an offset. And I'm using that offset here in this get heading, I'm saying the calibrated X and the calibrated Y are based on the magnetic readings on X and Y minus these two offsets. So there are a couple ways you can get these. And I'll show you the library and or rather I'll show you the learn guide for this in a second. At first I used the sensor lab code in Arduino that Adafruit has out there to help you calibrate this. And then later I was able to actually get some code from C Grover. He's attributed Melissa up here, but C Grover did some modifications to this calibration library and he's working on some updated code for this that hopefully we'll publish and put into the guide. But this goes through and takes a bunch of samples and throws away the sort of distracting magnets. So you do some revolutions on each axis and it can figure out what the necessary offset to subtract is. So then I took those values and put them into my final code. We might even work that up into a nice slick thing where you can hit a button to put it into calibration mode and then automatically subtract those when you're using it. So if you want to take a look here, this is product page for this here. List three MDL. It's $4.98 right now. Hopefully we still have some in stock. I think we had about 100 at the start of the show. Looks like we still do. That's great. You don't need a coupon code. If you want to buy this, just throw it in your cart. You can get up to 10 of them. Check out before the end of the show or just a few minute grace period after and it is yours at that great price. Some info about it, some links and then if you follow the learn guide links here, you'll see we've got the primary guide for this as well as that sensor lab one I mentioned and I can show you those. So here is the main guide. It will take you through info about it, the pin out, how to put it together and use it in your project, as well as the download section which will give you some data sheet you can download as well as other FAB information. And then there are examples for using this in both Arduino and in Circuit Python. So this will show you how to set it up. Use the list three MDL library in Arduino or same sort of thing right here in Python or Circuit Python. Code is available. Yeah, Jeff Hunt. Hi, Jeff in the YouTube chat asks if the code is available. Code I'm using right now, you can use the magnetometer calibration code in Arduino here, but soon you'll also be able to do it in Circuit Python. And the actual example code I'm using, if you just look here at the bottom of the learn guide Circuit Python page, this is going to give you some basic magnet sensing. If you go to the library on GitHub, so there's a link right there and check out the examples section, list three MDL compass, that's the code that I'm using. And then on top of that I'm also subtracting the calibration data. So pretty soon the guide will show you how to do all of that. And if you want to take a look back probably in a week or so, we should have both the calibration code and that compass example there in the main learn guide page. Let's see, so what else? What am I forgetting? There's a lovely product photo of it right there. You can see it shows the... Soak screen has the axes listed there, so this has X, normally you'll keep this flat, X pointed this way, Y to the side, Z up, and it's able to use any of those or combinations of those axes depending on the orientation of your project, whatever makes sense. But laying it flat like this is the best way for our example code that we have there. Let's see, what else? Oh, DJ Devin 3 says picked up a couple of them for wind detection. Oh, that's pretty cool for wind direction. Yeah, so what do you do? Do you mount that on a weather sale kind of thing? A little weather cups? I don't know how you do that. I don't know much about weather wind measurement. Wind vane, yeah, that's pretty cool. That's a neat idea. You can also use this for things like robotics, for any type of projects that you want to guide an object based on map information. It's useful for that. And pretty similar module to what you find in the six-dof and nine-dof sensors that will combine things like the magnetometer, accelerometer, and the gyro. This is just the magnetometer, so you have a project that doesn't need the big $20 nine-dof thing. You just really want a compass. This is the module for you. So like I said, head on over to that URL right there. If you want to go pick them up, that will take you to the product page. Discount applies just during the show. You don't need a coupon code. And one other thing, by the way, I wanted to show here is that I have a little battery power going on there, so you can see if I need to take this off the computer, no problem. Feather has a little charger in there, so that'll work well. And I'm able to find north where I'm going. All right, I think that's going to do it. Let me know if you have any other questions in the chat. Looks like we're all good. Yeah, so go grab some. Let's see, Gortie G says I'd mount the magnetometer on the mast and a magnet on the weather vane. Oh, interesting. Okay, so use the magnetometer in a fixed position, but just move a magnet bolted to the vane. Neat. That's very cool. All right, I think that is going to do it then for today. So that right there, that's it. That's my product pick of the week this week. It is the list, let me say that again, that's my product pick of the week this week. It is the list 3MDL 3-axis magnetometer breakout with Stem-A-Q-T. Grader for Industries, I'm John Park. This has been JP's product pick of the week, and I will see you next time. Bye-bye.