Page 1 of 1

Potential bug with buzzer

Posted: Sat Nov 30, 2024 9:48 am
by peterhalloway
So moving on from the development board I designed in 2012 I am doing another. The aim of this is to use at college with students but also if a hobbyist wanted I am considering that also (hence the PIC choice).

It would appear that the buzzer is not sounding, I hope this is not a schoolboy as I do not want to waste anyone's time. I have attached the flowcode file but also for interest the circuit which is still a work in progress.

Pete

Re: Potential bug with buzzer

Posted: Sat Nov 30, 2024 11:53 am
by chipfryer27
Hi

I can only simulate at present.

You are using the Buzzer component which does simulate, but instead of using the associated component macro, you are setting the port directly. FC doesn't know that it should "buzz" when you set B1 to "1".

If you use the component it works fine.

Your code should work on hardware though.

Regards