Hello there,
I am back with my Sunfounder's lesson reviews. This is the post for the lesson review 01 of the "37 modules Sensor Kit for Raspberry Pi Model B". The kit its composed of a good set of sensors at a reasonable price, even though the documentation is really also matching to the reasonable the price.
Lets start with lesson 01 about the Hall Effect sensors. This first lesson is using a Switch Hall Module. The C code works just fine, nothing special there.
The main idea of this first lesson is to get familiar with the Hall effect, which was discovered by Edwin hall in 1879. There are a ton of videos in Youtube that explain this effect much better than I will ever do in a blog post. Or a grate document on this subject, if you like to read carefully, is this grate article "Hall effect sensing and application by Honeywell".
The main idea of this first lesson is to get familiar with the Hall effect, which was discovered by Edwin hall in 1879. There are a ton of videos in Youtube that explain this effect much better than I will ever do in a blog post. Or a grate document on this subject, if you like to read carefully, is this grate article "Hall effect sensing and application by Honeywell".
The code is simple and the translation to JAVA is in Ex01_SwitchHall with a jUnit test at Ex01_SwtichHallTest. I just added a slight modification in the loop in order to turn off the led after a short delay. In this way we can test the magnetic field many times with different positions of the magnets around the sensor.
For full details about how to set up your Raspberry Pi and how to run these exercises please check out my old post Raspberri Pi with Pi4j and Junit testing mockups. Or leave me a comment if you have any issue or question.
This is all for now,
Thanks for reading,
Posted by Marc Andreu.
No comments:
Post a Comment