Iduino SE041 User guide

Page 1
IDUINO for maker’s life
Pin
Description
+
Positive pole
-
Negative pole
LilyPad Buzzer(SE041)
1 Introduction
This module is a tiny buzzer for arduino LilyPad series board, which is a wearable e­textile technology develop platform. Each lilyPad was creatively designed to have large connecting parts to allow them to be sewn into clothing. Theres two pins on this buzzer module, when this module receive high level signal from positive pole, it will ring.
2 pinout
www.openplatform.cc
Page 2
IDUINO for maker’s life
3 Example Note that this example need to use LilyPad ATmega 328 board ,not arduino UNO
board.
********Code begin********
/******************************************************************************
LilyPad Buzzer Example
This example code shows how to hook up a LilyPad Buzzer to play a simple song
using the tone() function and setting variables for each note.
Buzzer connections:
* + pin to 5 * - to -
******************************************************************************/
// Which pin the buzzer is attached to
int buzzerPin = 5;
// Delay in milliseconds
int delayTime = 500;
// Notes and their frequencies const int C = 1046;
const int D = 1175;
const int E = 1319;
const int F = 1397;
const int G = 1568; const int A = 1760;
const int B = 1976;
const int C1 = 2093;
const int D1 = 2349;
void setup()
{
// Set the buzzer pin as an OUTPUT
pinMode(buzzerPin, OUTPUT);
}
www.openplatform.cc
Page 3
IDUINO for maker’s life
void loop()
{
// Use the tone() function to play each note in a scale tone(buzzerPin, C);
delay(delayTime);
tone(buzzerPin, D);
delay(delayTime);
tone(buzzerPin, E); delay(delayTime);
tone(buzzerPin, F);
delay(delayTime);
tone(buzzerPin, G);
delay(delayTime); tone(buzzerPin, A);
delay(delayTime);
tone(buzzerPin, B);
delay(delayTime);
tone(buzzerPin, C1); delay(delayTime);
// Use noTone() to shut off the buzzer and delay to create a 'rest'
noTone(buzzerPin);
delay(delayTime);
}
********Code End********
www.openplatform.cc
Page 4
IDUINO for maker’s life
Description:
This board converts a USB connection into a 5 volt Serial TX and RX that you can connect straight to the Arduino Mini, Arduino Ethernet or other microcontrollers, allowing them to talk to the computer. One of the nice features of this board is a jumper on the back of the board that allows the board to be configured to either 3.3V or 5V (both power output and IO level). This board ship default to 5V, but you can cut the default trace and add a solder jumper if you need to switch to 3.3V.
www.openplatform.cc
Page 5
IDUINO for maker’s life
Specification
Chip: FT232RL RXD/TXD transceiver communication indicator USB power supply, can choose 5V or 3.3V With over current protection, using 500MA self-restore fuse Pin definition: DTR,RXD,TX,VCC,CTS,GND
www.openplatform.cc
Loading...