★取扱終了★学習:SPK [GKIT-LSPK]
★取扱終了★学習:SPK
[GKIT-LSPK]
販売価格: 195円(税別)
(税込: 214円)
在庫切れ

●概要
●仕様・機能
基本からArduinioを勉強するためのキット、部品アセンブリ一式、部品を基板に取り付けて使用する、詳細マニュアルがついていないので回路図と基板パターンを見ながら作成できる方にお勧め、学習内容:メロディを作り出す+LEDブリンク、表記価格:1

●構成部品一覧
1/4W抵抗:150Ω(x1)
マイクロスピーカ:OSC8Ω0.1W-F20(x1)
基板コネクタ(1.5mm):S2B-ZR-2(x1)
5mmLED:赤(x1)
両面クションテープ :(x1)
専用基板:(x1)
●動作について

*/int pin = 8;
int pause = 100;
int note = 440; // music note A4voidsetup()
{
// no need
}
// SOS signalvoidloop()
{
threeDots();
threeDashes();
threeDots();
delay(3000);
}
// three short signalsvoid threeDots()
{
for (int i=0; i<3; i++){
tone(pin, note, 100);
delay(200);
noTone(pin);
}
delay(200);
}
// three long signals8void threeDashes()
{
for (int i=0; i<3; i++){
tone(pin, note, 300);
delay(400);
noTone(pin);
}
delay(200);
}