I want to control the buzzer using the pwm

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Amar_Hiremath
Level 3
Level 3
25 sign-ins 10 questions asked 25 replies posted

HI I want control the buzzer using the pwm i have used this example code https://community.cypress.com/message/243067#243067.

using this buzzer is coming and beeps continuously but for me i want on of for 1/2/3 etc time. how can we doing this ..?

0 Likes
1 Solution
Kenshow
Level 8
Level 8
Distributor - Marubun (Japan)
50 solutions authored 25 solutions authored 10 solutions authored

Hi,

  Beep ON/OFF in CE can be controlled by Start / Kill(Stop) of PWM_2. In CE, it is controlled by PWM_1 on the circuit, and this can also be controlled by S/W. The following is an example of turning Beep ON/OFF with the duty ratio of PWM_1, so please refer to it.

Let's make the dice of seven eyes on PSoC 6 with CapSense & sound,version 2

 If this is not your answer, please let me know.

Regards,

Kenshow

View solution in original post

1 Reply
Kenshow
Level 8
Level 8
Distributor - Marubun (Japan)
50 solutions authored 25 solutions authored 10 solutions authored

Hi,

  Beep ON/OFF in CE can be controlled by Start / Kill(Stop) of PWM_2. In CE, it is controlled by PWM_1 on the circuit, and this can also be controlled by S/W. The following is an example of turning Beep ON/OFF with the duty ratio of PWM_1, so please refer to it.

Let's make the dice of seven eyes on PSoC 6 with CapSense & sound,version 2

 If this is not your answer, please let me know.

Regards,

Kenshow