Ks0008 keyestudio Joystick Module

From Keyestudio Wiki
Revision as of 11:22, 11 August 2016 by Keyestudio (talk | contribs) (Created page with " ==Introduction== This is a Xadow module which can emit a tone. To drive it, you need to give control to two pins simultaneously: this is different from Grove - Buzzer which...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Introduction

This is a Xadow module which can emit a tone. To drive it, you need to give control to two pins simultaneously: this is different from Grove - Buzzer which uses one pin to control. It is petite but loud! It can be used for making beeps, tones and alerts.

Xadow is a small but perfectly formed Arduino(TM) compatible board series containing several modules. It's a kit extremely suitable for space-sensitive projects such as wearable devices & arts designs, which have higher request on size, weight and flexible cascade connection. You can find more modules here.

Specification

  • Work Voltage: 3.3V
  • FundamentalFrequency: 2700Hz
  • Sound Pressure Level: >75dB
  • Dimensions: 25.43mm x 20.35mm

Demonstration

There is an easy demo to show how to drive buzzer sound. If you have successfully used it, then you can apply it to your great projects, such as detecting the battery status: the buzzer will emit a sound when Xadow Main Board is in low battery.

File:Joystick.jpg

void setup()	
{
 DDRB |= 0x06;	 	
}
 	
void loop()	 	
{	
//turn on the buzzer
  PORTB |= 0x06;	
  delay(1);	
//turn off the buzzer		
  PORTB &= ~(0x06);	
  delay(1);	
}

Resource