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

Changing Buzzer BEEP to tone

Hi, I am doing some development in nrf52810. where i want to use BUZZER to produce TONES 

I am using SDK17.0.2 SES

I want to create tones instead of just beep sound in the buzzer like

G6 , A6, B6. these are represent the frequency like 2093 Hz , 1568Hz

How to create these kind of multi frequency to create tone in nrf52. provide some related documents or examples

Thanks,

Parents Reply Children
  • HI Kenneth,

     I found some thing in THNIGY52  that

    playing piano .And I have seen the SDK that having the function called

    uint32_t drv_speaker_tone_start(uint16_t freq_hz, uint32_t duration_ms, uint8_t volume);

    and i have used this to generate frequency in output . but i have an issue that

    i can't find  arm_sin_f32(),

    it through an error as undefined . but i include arm_math.h

    even though it through an error .

    instead of arm_sin_f32 i used sin is it ok or i have to use arm_sin_f32

Related