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 Children
  • Hi , i finally finished my examinations and had time to continue back working on this project.. firstly wanted to thank you for your reply.. secondly I was thinking of changing to timers as u insisted however looking at your example provided I was a bit confused. 'in my application I basically require a timer to be on for a certain period depending on the value entered into the uart terminal of the client development board.

    As an example 

    if I enter the word RPM300 in the uart terminal I need to extract the 300 into an integer and then look into the 300th position in an array where I have all the appropriate periods ranging from RPM of 0 - 300 where in the case of 300 it translates into 5 micro seconds which then I need to switch a timer on with a period of 5us (square wave) and keep it on until i receive another command 

  • Hi Nikolai. 

    Sorry for the slow reply, I have been on leave for the last 4 months. If you are still having issues with this I suggest you open a new case, since this one is getting old and fragmented. You can point to this one if you like, and it will most likely be assigned to me. 

    Regards
    Torbjørn

Related