Hi,
I am using one of these devices - I thought successfully. But I’ve had 2 fail on me (or at least stop producing a tone). A colleague noticed that the buzzer was getting very hot on his system so I checked it out with a third device on my set up.
The buzzer uses 300mA. And it is continuous. This seems excessive. Is there a fault with the device or is it the way I am using it?
My code is trivial:
The schematic is quite simple:
Not sure where it could burn 300mA’s.
And your code is very similar to the example code and to a code that I used in one of my projects.
You use WB_IO3, so you have the RAK18001 in slot C. Do you have any module in the IO slot?
Presumably, if you applied a steady voltage to the base of the transistor - rather than a square wave - then it can draw whatever the resistance of the ‘speaker’ allows.
I have a GNSS module on slots A & B and nothing on slot D. And without the buzzer it draws 55mA when the GPS is searching for a fix and 5mA when the GPS is returned to ‘off’ mode.