(you do not need line breaks, just write it as above)
Being used to burning things and changing rechargable batteries all the time, I did not really wonder that much that a tiny speaker or two has been fried while having fun with robots and Picaxe over time (mainly 28’ these are the only ones this is tested on).
Now I am building a new robot that has a speaker underneath it… Lifting it up from a test, I felt that the speaker was burning hot!!
Picaxe is leaving the port to “High” after the “Sound” command!!! So the speaker is just getting continious voltage after a “sound”.
This means battery drain, and it means burnt speakers after a while, if your robot have just at any point made a small beep!
Crap, Picaxe! (But I still love you) - Must be a bug, no? Or some reason I don´t get??
avoiding DC through speaker Could you put a small capacitor in series with the speaker to block the DC? I don’t know what value would be appropriate, though.
6-7 months later: I never 6-7 months later: I never get to solder all them components, I just set the port low, as written in the original post. it works without problems!
Capacitors indeed picaxe_manual3.pdf shows a 10uF capacitor in sereies with a speaker, though the speaker says 40ohm i believe, and the one i yanked out of an old alarm clock radio says 16ohm, so…we’ll see. Looks like i gott make another trip to radioshack. Thanks frits!