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 ...

Get BeagleBone: Creative Projects for Hobbyists now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.