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

BLE_UART example and UART Driver

Hi good evening,

i am working on a project that requires ble transmission between 2NRF52dks and one of them is connected to a PC and apart from receiving data from another nrf52 and outputting the data serially, I require PWM and UART (using drivers) in order to control a motor RPM speed depending on user inputs, is it possible to combine them all together. I have already coded the pwm and Uart and they work well but i did not integrate this to the ble_app_uart_c and before i do so i wanted to see if it is possible and if so maybe i get some help on how to properly do it.

thanks

best regards

nikolai dimech

also happy holidays to all Slight smile

Parents Reply
  • Thank you for your reply it is very helpful, my only concern is that I constantly need to update the frequency rather than the dutycycle. In my application the user will need to enter some value like RPM300 (300 rpms for a motor) where the 300 is extracted and depending on the value I change the frequency of the PWM for example RPM300 means PWM of period 5us and the duty cycle Is always on 50% etc.... where the RPM ranges from 0-300 RPM.

    In my case where i had the uarte and pwm i was using the pwm library and i had a lookup table (array with all periods) and depending on the value of RPM it will get the period from that array.

    can this be done n the same manner

    or can the pwm part be changed to using the library rather than driver?

    what do you think please?

Children
Related