05.08.2014 Views

Programming Manual Elektor Proton Robot - ELEKTOR.se

Programming Manual Elektor Proton Robot - ELEKTOR.se

Programming Manual Elektor Proton Robot - ELEKTOR.se

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Piezo-electric sounder on the motherboard<br />

This Piezo-electric sounder can produce any frequency in the audio spectrum, simply by <strong>se</strong>nding a<br />

square wave (5v ptp) to the sounder. This square wave is easily generated in the software by making<br />

this specific output pin high for a certain time – and then again low for a certain time. The high and<br />

low time determine the period of the square wave and so the frequency we will hear.<br />

You could generate simple beep tones or alarms but it can also be u<strong>se</strong>d to program an entire<br />

ringtone.<br />

uC<br />

1ms 1ms 1ms<br />

= 500Hz<br />

Piezo<br />

sounder<br />

<strong>Proton</strong> robot developer’s notes:<br />

Great for generating an alarm or for producing a small beep every time that you push one<br />

of the buttons.<br />

Bart Huyskens <strong>Manual</strong> <strong>Elektor</strong> <strong>Proton</strong> V1.0 3 April 2011 38

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!