Potential bug with buzzer

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
peterhalloway
Posts: 33
http://meble-kuchenne.info.pl
Joined: Sat Nov 20, 2021 11:28 am
Has thanked: 1 time

Flowcode v10 Potential bug with buzzer

Post 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
Attachments
Development Board.fcfx
(37.73 KiB) Downloaded 89 times
PDB 2024.pdf
(181.94 KiB) Downloaded 102 times

chipfryer27
Valued Contributor
Posts: 1528
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 353 times
Been thanked: 549 times

Re: Potential bug with buzzer

Post 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

Post Reply