Speaker

It is a speaker such as piezo. Connect with two wires, and generate sound by current.

wired(obniz , {signal. gnd} )

Connect to the speaker. If there are plus and minus, please specify minus to gnd.

// Javascript Example
var speaker = obniz.wired("Speaker", {signal:0, gnd:1});

play(frequency)

Specify the frequency of the sound from the speaker.

// Javascript Example
var speaker = obniz.wired("Speaker", {signal:0, gnd:1});
speaker.play(1000); //1000hz

stop()

stop playing.

// Javascript Example
var speaker = obniz.wired("Speaker", {signal:0, gnd:1});
speaker.play(1000); //1000hz
await obniz.wait(1000);
speaker.stop();


Found at :





You will Get in Few Days

Circuit for Starter “obniz Board” is available on Amazon and other online stores.
You can get it at below

Our products and resellers

Forum

Visit our developer’s forum to discuss and discover technologies.

Forum

Contact

Feel free to contact out support and technical team.

Contact us