I mean, these pictures show you how to use the integrated effects sensor, so your ability to contains
a sensor that can detect a magnetic field and it can give you a reading that is analogous to the strength
of the magnetic field on and around the sensor.
You can get some information about the whole effect sensor here.
So I'm looking at the micro python documentation under SB 32 general board control.
And you see here there's a method called hole sensor, and that is part of the ESP three two module,
just core this method and you'll get back a number.
And the number, depending on how strong is the magnetic field around the sensor, a very simple script
that shows you how to use this capability.
So first, will import the SB 32 module, also import the time module so we can add a little bit of
delay.
And I've got an infinite loop that just printed out whatever values are coming out of the whole effect
sensor.
So I've got my ears to do nothing connected to it.
And I've got a fridge magnet here to stimulate the whole effect sensor.
So let's begin sketch uploaded and there's no indicating the ambient magnetic field, so don't have
a magnet around it.
I'm going to put the magnet over the casing of the ECB.
Two, you can see that the value increases.
So relatively weak magnets, you got up to about three hundred and ten, there's a reading going to
turn the magnet upside down.
You can see that I'm also getting smaller readings and you can even get negative readings depending
on the orientation of the magnetic field.
I also have a motor which has committed maggots in it, so I check it out, see if there's any effect.
Very little effect, actually.
With the magnets from the modem.
All right, so that's pretty much it.
You have a magnet lying around.
This is a fun experiment to do.
Very simple.
No additional components needed.
And why not?
Also, you can try out the portal, which give you a visual representation of the magnetic field.
Akko.
And when I turn the magnet upside down, you can see that the magnetic field or the light actually drops
as compared to the ambient about two hundred.
It goes down to about 100.
All right, let's move on to the next lecture where I show you how to use an integrated temperature
system.