Interfacing a buzzer with s32k118 microcontroller and also changing its frequency

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Interfacing a buzzer with s32k118 microcontroller and also changing its frequency

Jump to solution
850 Views
SteveSam
Contributor II

Hi, Im new to the embedded world and just getting started...and i would like to know how to interface an buzzer with this board

regards,

Steve

0 Kudos
Reply
1 Solution
832 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

depending on type of buzzer a direct connection to MCU output is most probably not possible and simple transistor should be used, like below.

PetrS_0-1692685177024.png

If you want to generate PWM signal then choose a pin ideally with FTM functionality. FTM channel can be configured for various output modes with PWM as well. Refer to device RM for more info.

Basic FTM examples can be found within S32 Design Studio.

BR, Petr

View solution in original post

0 Kudos
Reply
3 Replies
833 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

depending on type of buzzer a direct connection to MCU output is most probably not possible and simple transistor should be used, like below.

PetrS_0-1692685177024.png

If you want to generate PWM signal then choose a pin ideally with FTM functionality. FTM channel can be configured for various output modes with PWM as well. Refer to device RM for more info.

Basic FTM examples can be found within S32 Design Studio.

BR, Petr

0 Kudos
Reply
825 Views
SteveSam
Contributor II
hi, Ive learnt how to generate a pwm signal and change its frequency but the buzzer still does not work...I have a buzzer with 3 pins (vcc,gnd,io ) and i wonder if still have to use a transistor.
0 Kudos
Reply
798 Views
SteveSam
Contributor II
and im using the j4 ptd15 pin for the sample code ftm_pwm_s32k118 with a frequency of 2000u ,3000u changed in flexTimer_pwm_1_PwmConfig please help
0 Kudos
Reply