⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
5 posts / 0 new
Last post
MADHUSF
Offline
Last seen:1 month 2 weeks ago
Joined:2018-01-15 09:22
Timer0

Hi,

I checked your answer but can you explain neat step by step or flow to to implement PWM using our SDK kit,like we have tutorial for custom characterstics tutorial.or else help with neat steps

1.我想控制亮度LED (PWM)(续rolling the Output voltage at ports) through the writable charcteristics.

fro example if i write 1-10 based on scale the brightness should change like that code i have to implement through BLE.can you please explain the step by step or flow to do that?

Device:
PM_Dialog
Offline
Last seen:10 hours 43 min ago
Staff
Joined:2018-02-08 11:03
Hi MADHUSF,

Hi MADHUSF,

Could you please let me know what have already developed at this stage? Have you created two writable characteristics? If yes, are you able to send something on the characteristic and send it to the application? Which numbers would you like to send to the application? The implementation of the characteristics is up to you and they should be according to your requirements. For example, have you decided what you have to sent to the application to control the PWM ?

Thanks, PM_Dialog

MADHUSF
Offline
Last seen:1 month 2 weeks ago
Joined:2018-01-15 09:22
Yes,Im able to create

Yes,Im able to create writable charactersitics and through Application i m able to send the values.

I want to send the number in scale of 1 to 5,according to value the brightness(voltage) of LED at I/O port(PO_5) should changed.

these is my requirements,can you help me where to change code to achieve it?

MADHUSF
Offline
Last seen:1 month 2 weeks ago
Joined:2018-01-15 09:22
Hi,

Hi,

One more thing i have seen Buzzer playing different frequencies(notes),like that i want to control brightness of LED or Speed of DC motor connected to I/O port.

Is it possible to change the code of timer0(buzzer playing) to control the Brightness of LED??

Help me in modifying the code

PM_Dialog
Offline
Last seen:10 hours 43 min ago
Staff
Joined:2018-02-08 11:03
Hi MADHUSF,

Hi MADHUSF,

Would you like to modify the PWM pulse? You can also check a previous post below:

https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/timer0-pwm0

Thanks, PM_Dialog