I have been playing around with the possibility for a audio warning for a brownout but i cant seem to get any response from the speaker (yes its plugged into a speaker port.) Thanks in advance!
speakerInit();
speakerPlayRtttl("Surprise:d=4,o=5,b=112:32b,32p,32b6,32p,32f#6,32p,32d#6,32p,32b6,32f#6,16p,16d#6,16p,32c6,32p,32c7,32p,32g6,32p,32e6,32p,32c7,32g6,16p,16e6,16p,32b,32p,32b6,32p,32f#6,32p,32d#6,32p,32b6,32f#6,16p,16d#6,16p,32d#6,32e6,32f6,32p,32f6,32f#6,32g6,32p,32g6,32g#6,32a6,32p,32b.6");
Just curious, how exactly do you plan on detecting a “brownout”?
I’ve had several ideas to do this and one is to compare joystick input to motor speed (simplest way, most likely to fail). The other way(only works on the ex pander) is to check battery power which drops below 4.6 upon the breaker tripping.