O'Reilly logo

Mastering BeagleBone Robotics by Richard Grimmett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Getting sensor data from the wind speed sensor

You'll use the same Adafruit library that you used in the previous chapters. If you have not installed this library, then install it and follow the instructions in Chapter 6, A Robot that Can Sail. Then create the following program:

Getting sensor data from the wind speed sensor

When you run the program, you will see the output of the wind sensor in volts. You can put the wind sensor near a fan and you should see the value change, as shown in the following screenshot:

Getting sensor data from the wind speed sensor

Note

Note that this will give you an indication of the strength of the wind, but the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required