This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Capacitive sensing using Nordic SDK

Hi, is it possible to use Nordic SDK with nRF51822 to have capacitive touch sensing with 2 dsital inputs, just as the mbed or avr library capsense?

MBED: developer.mbed.org/.../ AVR: playground.arduino.cc/.../CapacitiveSensor

thanks

Parents
  • If using the latest development kit, you can boot it with the mbed-firmware as described in the user guide so you may use the mbed compiler and run the library as is.

    Nordic does not have any such libraries in its SDK, but if you look into them, you see that they should be easy to port. Taking for example the mbed lib you linked to, you see that the only things you need to implement are the GPIO and the ADC (see examples folder, e.g. blinky and ble_app_proximity_low_power).

    If you implement functionality for setting/clearing GPIO's and start/stop reading with ADC, you can almost copy the whole mbed library, replacing e.g. analogin_read_u16 and gpio_write with your own adc function and nrf_gpio* this shouldn't be that big of a task.

Reply
  • If using the latest development kit, you can boot it with the mbed-firmware as described in the user guide so you may use the mbed compiler and run the library as is.

    Nordic does not have any such libraries in its SDK, but if you look into them, you see that they should be easy to port. Taking for example the mbed lib you linked to, you see that the only things you need to implement are the GPIO and the ADC (see examples folder, e.g. blinky and ble_app_proximity_low_power).

    If you implement functionality for setting/clearing GPIO's and start/stop reading with ADC, you can almost copy the whole mbed library, replacing e.g. analogin_read_u16 and gpio_write with your own adc function and nrf_gpio* this shouldn't be that big of a task.

Children
No Data
Related