I have noticed that whenever I connect a PiicoDev Buzzer to a circuit I start getting intermittent problems.
I have isolated these to the PiicoDev Buzzer and when I run a I2C scan routine, it works OK the first time after power up and then either it deteriorates to finding only a few devices in the I2C bus or none at all !!!
When I remove the Buzzer everything works well no matter how many times I run the scan or the frequency of the bus - I tried many combinations and the result is consistently the same.
Thank you.
The I2C scan code:
Scan I2C Bus and Display Device Addresses In Hex & Decimal
I use a standard Pico with the latest MicroPython v1.19.1 version.
The behaviour is the same regardless of how many devices are on the I2C bus. I have tried it on its own and with other modules and the behaviour is the same.
I have also tried it with alternate Pico boards and the result is the same.
I have also loaded MicroPython v1.18 and the result is exactly the same
The same behaviour is observed with the Pimoroni v1.19.8 MicroPython.
Many thanks for the offer, I have 4 buzzers and 2 behave very erratically - I was suspecting the device driver but after running some additional tests on some other Pico’s that I have used in projects, I get mixed results. That is, they work just fine with some Picos but erratically with others - truly confusing !
I will use a combo of Pico and Buzzer that works and leave it at that.
Many thanks again for all your help.
Regards
Socrates
1 Like
And you can get our latest projects and tips straight away by following us on: