Piezospeaker buzzing when executing a program ; Line follower appkit
N0M4dIC
Posts: 14
Hi everyone!
I recently bought a Line Follower Appkit for my Boe-Bot and installed it. (#28108)
It's working pretty well, but since I didn't wanted to use pin 4-7, I used pins 0-3 by simply modifying the registers from DIRB to DIRA, OUTB to OUTA and so on.
I have other components on pins 4 (piezo), 5 and 7 (pushbuttons).
When executing the program (Parallax original source code), the piezo keeps buzzing, which is very annoying.
1. Why does the pin 4 influenced by the A registers in the program?
2. How to stop that damn buzzing?
Parallax source code (line following example) here: http://www.parallax.com/Portals/0/Downloads/src/prod/FasterQtiSubroutineSource.zip
Thanks for helping!
I recently bought a Line Follower Appkit for my Boe-Bot and installed it. (#28108)
It's working pretty well, but since I didn't wanted to use pin 4-7, I used pins 0-3 by simply modifying the registers from DIRB to DIRA, OUTB to OUTA and so on.
I have other components on pins 4 (piezo), 5 and 7 (pushbuttons).
When executing the program (Parallax original source code), the piezo keeps buzzing, which is very annoying.
1. Why does the pin 4 influenced by the A registers in the program?
2. How to stop that damn buzzing?
Parallax source code (line following example) here: http://www.parallax.com/Portals/0/Downloads/src/prod/FasterQtiSubroutineSource.zip
Thanks for helping!
Comments
-Phil
-Phil
I did not set any pin except 0-3.
Also, I can hear the buzzing while I connected the piezo to pin 4, 5, 6 and 7, which would mean that theres something on the A and B register. I don't understand how it is possible.
Thanks for your help anyway!
-Phil
Thanks, I'll see what I can do about it. But, can't I just set the piezo pin to high while I'm not using it to avoid that crosstalk?
-Phil