Header banner
Revain logoHome Page
Chad Fox photo
Uganda, Kampala
1 Level
625 Review
51 Karma

Review on Mxuteuk Electronic Computers Printers Components by Chad Fox

Revainrating 5 out of 5

Works well with Raspberry Pi (and Arduino of course)

I actually bought them by accident. When I was looking for a suitable piezo speaker they were one of several I looked at but I couldn't be sure what the voltage required for it to work so I went with another brand. I think somewhere along that line I accidentally clicked "Add to Cart". voltage 5V). I don't understand how another brand would expect the user to switch 5V since the GPIO pins are only 3.3V, but I digress. They are very noisy when driven from the standard 3.3V GPIO pin - just switch them on to 3.3V and disconnect with a loud, pleasant but annoying beep. You can even make some pitch adjustments if you want. I've been playing around with this and got the best results in a fairly low frequency range around 100-500 with a duty cycle around 10. Keep in mind that the PWM I'm using is software based, so it's not perfectly clocked. . I don't need tone control, so I didn't go any further. I have no doubt that you could easily play clean, loud tones up to about 15kHz with an Arduino or other more suitable device. In summary 10/10 the best random purchase I've ever made lol. If you need demo code, here's how to run software PWM to control the step on the Raspberry Pi. GPIO_BUZZER_PIN, GPIO.OUT)p = GPIO.PWM(GPIO_BUZZER_PIN, Duty Cycle)p.start(Duty Cycle) for i in range(0,3): for frequency in frequencies: print(f"{freq}Hz" ) p.ChangeFrequency(freq) sleep(0.5)p.stop()GPIO.cleanup()```

Pros
  • Product Name: Electronic Alarm Clock
Cons
  • I vaguely remember

Comments (1)

Please, sign in to write a comment
December 12, 2022
Works well with Raspberry Pi (and Arduino, of course)