Wheel revolution counter board support package usage example#
This application uses the revolution counter driver to print in a loop the right and left speed (in cm/s), the rotation per minutes and the rotation per seconds.
To be accurate, the values must be read within a period of 125ms which the sampling period.
How to get the printed values#
To log the values, the application uses SEGGER RTT IO. To access the output, you need a client application such as SEGGER embedded studio or JLinkRTTViewer (that comes with JLink programmer).
Connect your DotBot to the JTAG of an nrf52840dk board
Build and download the
01bsp_rpm
project to the DotBot 3a. If using SEGGER embedded studio, start a debug session (withF5
) and then pressF5
a second time to launch the application. The output is available in theDebug terminal
frame. 3b. if using JLinkRTTViewer, selectNRF52833_XXAA
as target device and click OK. The output is displayed in the terminal tab.