Author Topic: Active buzzer electric noise on I2C  (Read 1016 times)

0 Members and 1 Guest are viewing this topic.

Offline mr_byte31Topic starter

  • Regular Contributor
  • *
  • Posts: 52
  • Country: de
Active buzzer electric noise on I2C
« on: March 22, 2025, 09:46:20 pm »
I bought some cheap active buzzers from china. They look like this :
2529281-0

I build a circuit using ULN2003A to drive some small Leds and the active buzzer


I noticed that when I play some tones on the active buzzer via my MCU, the I2C IMU has a lot of noise on the Acc and Gyro measurements.
To prove that the active buzzer is the cause of the interference/noise, I removed the active buzzer from circuit and the IMU measurements looks much cleaner.

I drive the complete board using LiPo battery which has enough current.

I am thinking of some solutions to fix the active buzzer issue. one thing that came to my mind is to use decoupling capacitors on ULN2003A or prallel to active buzzer. I am not sure if this will completely fix the issue or not.

any suggestions ?
« Last Edit: March 22, 2025, 10:06:33 pm by mr_byte31 »
 

Offline PGPG

  • Frequent Contributor
  • **
  • Posts: 622
  • Country: pl
Re: Active buzzer electric noise on I2C
« Reply #1 on: March 23, 2025, 11:49:52 am »
any suggestions ?

It is very hard to make any (more complicated than switching LED with switch) working electronic device without capacitors.
From your schematic it looks that you are just trying to do it.
 

Online temperance

  • Frequent Contributor
  • **
  • Posts: 829
  • Country: 00
Re: Active buzzer electric noise on I2C
« Reply #2 on: March 23, 2025, 12:54:50 pm »
The ULN IC and surrounding components are contained in a box in the schematic, so it is unclear why some signals escape.
 

Offline themadhippy

  • Super Contributor
  • ***
  • Posts: 3622
  • Country: gb
Re: Active buzzer electric noise on I2C
« Reply #3 on: March 23, 2025, 02:09:41 pm »
If there electro mechanical buzzers i doubt a cap is going to help.Think of them as a relay were  one of its  switching contacts switches its coil.when you apply power the coil pulls in, breaking the switch, which turns the coil off that causes the switch  to switch back on  powering the  coil,and so on.Thats going to produce a fair bit of electrical noise.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 20896
  • Country: gb
  • 0999
Re: Active buzzer electric noise on I2C
« Reply #4 on: March 23, 2025, 03:21:27 pm »
If there electro mechanical buzzers i doubt a cap is going to help.Think of them as a relay were  one of its  switching contacts switches its coil.when you apply power the coil pulls in, breaking the switch, which turns the coil off that causes the switch  to switch back on  powering the  coil,and so on.Thats going to produce a fair bit of electrical noise.
I very much doubt those are electromechanical. They're most likely piezo, or magnetic buzzers which have a transistor oscillator.
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 8556
  • Country: de
  • A qualified hobbyist ;)
Re: Active buzzer electric noise on I2C
« Reply #5 on: March 23, 2025, 03:53:31 pm »
Two things come to mind. If you have the accelerometer/gyro and buzzer on the same PCB you get an integrated vibration tester. You can check that by attaching the buzzer via wires. The other cause could be a crude piezo driver in the buzzer, creating voltage spikes (can be checked with a scope).
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 20896
  • Country: gb
  • 0999
Re: Active buzzer electric noise on I2C
« Reply #6 on: March 23, 2025, 05:15:51 pm »
How do you know it's electrical noise? Are there any ceramics capacitors on the board?
 

Offline mr_byte31Topic starter

  • Regular Contributor
  • *
  • Posts: 52
  • Country: de
Re: Active buzzer electric noise on I2C
« Reply #7 on: March 23, 2025, 09:23:20 pm »
I checked the reading of the compass, gyro and acc before and after removing the active buzzer.

example with the noise:

2530207-0
2530211-1

the tone is playing when arming and dis-arming.


When I removed the active buzzer all readings are flat. (check y-axis range)
2530215-2
« Last Edit: March 23, 2025, 09:28:29 pm by mr_byte31 »
 

Offline emd

  • Newbie
  • Posts: 1
  • Country: us
Re: Active buzzer electric noise on I2C
« Reply #8 on: March 23, 2025, 09:45:49 pm »
Isolate it with an opto->fet on signal? 🤔
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 20896
  • Country: gb
  • 0999
Re: Active buzzer electric noise on I2C
« Reply #9 on: March 24, 2025, 08:06:54 am »
I checked the reading of the compass, gyro and acc before and after removing the active buzzer.

example with the noise:

(Attachment Link)
(Attachment Link)

the tone is playing when arming and dis-arming.


When I removed the active buzzer all readings are flat. (check y-axis range)
(Attachment Link)
That doesn't answer my question.

You haven't ruled out sound from the buzzer, vibrating ceramic capacitors on the board and generating electrical noise. Many types of ceramic capacitors are microphonic i.e. they give off an electrical signal when vibrated.
 

Offline mr_byte31Topic starter

  • Regular Contributor
  • *
  • Posts: 52
  • Country: de
Re: Active buzzer electric noise on I2C
« Reply #10 on: March 24, 2025, 08:27:31 am »
Oh! I didn't know about vibrating ceramic capacitors before.

My PCB doesn't have any ceramic capacitance.

it may exist on the dedicated modules that I use such as GY-91 (MPU9250,Baro) or ADS1115. I am not sure.
 

Online temperance

  • Frequent Contributor
  • **
  • Posts: 829
  • Country: 00
Re: Active buzzer electric noise on I2C
« Reply #11 on: March 26, 2025, 11:58:09 pm »
Quote
To prove that the active buzzer is the cause of the interference/noise, I removed the active buzzer from circuit and the IMU measurements looks much cleaner.

Removing the buzzer doesn't prove anything. A valid proof would be to connect the buzzer such that it is mechanically decoupled from the PCB.

 
The following users thanked this post: tooki

Offline mr_byte31Topic starter

  • Regular Contributor
  • *
  • Posts: 52
  • Country: de
Re: Active buzzer electric noise on I2C
« Reply #12 on: March 27, 2025, 08:52:29 am »
I am not sure I correctly got your point.

how to achieve that in easy steps ?
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 13619
  • Country: ch
Re: Active buzzer electric noise on I2C
« Reply #13 on: March 27, 2025, 09:38:05 am »
Desolder buzzer from PCB. Attach buzzer to PCB using flexible wires long enough to not transmit vibration.
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 13619
  • Country: ch
Re: Active buzzer electric noise on I2C
« Reply #14 on: March 27, 2025, 09:42:23 am »
I am thinking of some solutions to fix the active buzzer issue. one thing that came to my mind is to use decoupling capacitors on ULN2003A or prallel to active buzzer. I am not sure if this will completely fix the issue or not.
You should be using decoupling caps on everything anyway.

If the buzzer is the self-oscillating kind (=you feed in DC and it buzzes = you do not need to feed in an oscillating waveform), then you should give it a decoupling cap, too.

Otherwise, every load you have on your supply rails can spill noise onto the rails, affecting other devices.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf