Reading Acceleration Sensor With Zerynth
About the project
In this tutorial we'll see how to read data from an acceleration sensor using Zerynth.
Project info
Difficulty: Easy
Platforms: MikroElektronika, Zerynth
Estimated time: 1 hour
License: GNU General Public License, version 3 or later (GPL3+)
Items used in this project
Story
In this tutorial we'll see how to read acceleration data from the 10DOF Click using the Flip&Click board.
We’ll use Zerynth Studio to program the microcontroller-based board in Python.
Zerynth simplifies and speeds up IoT development allowing programming in Python or hybrid C/Python the most popular 32-bit microcontrollers and connecting them to the leading Cloud Infrastructures like AWS, Google Cloud, Microsoft Azure, IBM Watson, Ubidots, and many more.
Required Material
- First of all, you need a board. You can select one of the 32-bit microcontroller devices supported by Zerynth. We’ve chosen the Flip&Click by Mikroelektronika that carries the popular MCU SAM3X by Microchip.
- You also need an Acceleration Sensor: we’ve chosen the 10DOF by MikroElektronika (read Zerynth documentation here).
Last but not least, you need:
- Zerynth Studio, a powerful IDE for embedded programming in Python that enables the IoT. You can download it here.
Assembling
Just put the 10DOF Click on the slot “A” of the Flip&Click board (see schematics).
Programming
Once you have installed Zerynth Studio and created a Zerynth user, you have to register and virtualize the board.
Clone and uplink the Zerynth example "get acceleration" as shown in the video.
Shake your board to see the acceleration value on the serial monitor.
Now you can start to customize your program in Python!
Leave your feedback...