Phone: +86-20-8520 1025       Email: SALES@FRIENDLYARM.COM / techsupport@friendlyarm.com Forum    Wiki

  • Shopping Cart
  • Login
  • Register
  • CPU Module
  • Mini Board
    • Cortex-A9(Quad-Core)
    • Cortex-A8
    • ARM11
    • ARM9
  • NanoPC & NanoPi
  • Hats & Docks
  • Enclosure & Holder
    • 3D Printed
    • Acrylic
    • Metal
    • Plastic
  • Matrix Accessories
    • Actuator
    • Camera
    • Communication
    • Display
    • GPS
    • Heat Sink
    • Power
    • Sensor
    • Serial Comm Board
    • SSD/MicroSD
    • Others
  • BakeBit Sensors/Modules
  • LCD Module
  • Value Pack & Kit
FriendlyElec

Login | Register

  • Home
  • Downloads
  • Forum
  • Wiki
  • Information
    • About Us
    • Privacy Policy
    • Terms & Conditions
  • Distributor
  • FreeBoard
  • Actuator
  • Buzzer BPR-01

Although DHL service is partly recovered, there are still issues with on-time delivery. Postal services get delayed by around 30-45 days in many countries.


Buzzer BPR-01 Buzzer BPR-01 Buzzer BPR-01 Buzzer BPR-01
Buzzer BPR-01

Buzzer BPR-01

0 reviews / Write a review
  • $99,999.00
  • Availability: Out Of Stock

  • Brand: FriendlyElec
  • Product Code: BPR-01


  • Description
  • Reviews (0)

1 Introduction

We utilize a 5V passive buzzer. To drive this buzzer an oscillating source is needed. Pin V is power, Pin G is grounded and Pin S is PMW signal input. Pin S is connected to a triode to turn on/off the buzzer. A PWM signal can be either 3.3V or 5V and the buzzer's sound will vary accordingly.

2 Features

  • 5V Power Supply
  • 3.3V/5V PWM
  • Tiny, easy to be used in various situations
  • 2.54mm spacing pin

3 How To

  • Connect to Tiny4412 SDK (1506)

    Firstly you need to remove the jumper on BP1_EN on the Tiny4412 SDK 1506 carrier board

    Please connect Pin S to GPIO PIN1, V to 5V and G grounded

  • Connect to NanoPi

    TODO

Code Sample in C Under Linux

#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include "libfahw.h"
 int parseCmd(int argc, char **argv, int *pin, int
*Hz, int *duty)
{
int num = atoi(argv[1]);
int hz = atoi(argv[2]);
int dt = atoi(argv[3]);
  if (hz<0) {
return -1;
}
if (dt<0 || dt>1000) {
return -1;
}
switch(num) {
case 0:
*pin = TINY4412_PWM0;
break;
case 1:
*pin = TINY4412_PWM1;
break;
default:
printf("Unsupported pin TINY4412_PWM%d ", num);
num = 0;
*pin = TINY4412_PWM0;
}
*Hz = hz;
*duty = dt;
printf("Using config: pin=PWM%d freq=%dHz duty=%d ", num, hz, dt);
return 0;
}
 int main(int argc, char ** argv)
{
int pin = TINY4412_PWM0;
int Hz;
int duty;
  if (argc == 4) {
if (parseCmd(argc, argv, &pin, &Hz, &duty) == -1) {
return -1;
}
} else {
Hz = 1000;
duty = 500;
printf("Usage:%s PWM[0~1] freq duty[0~1000] ", argv[0]);
printf("Using default config: pin=PWM0 freq=%dHz duty=%d ", Hz, duty);
}
  if (PWMPlay(pin, Hz, duty) == -1) {
printf("Fail to output PWM ");
}
printf("Press enter to stop PWM ");
getchar();
PWMStop(pin);
printf("Stopped PWM ");
return 0;
}

Compile and Run

git clone http://github.com/friendlyarm/fa-hardware.git
cd fa-hardware
cd demo
cd matrix-buzzer
make

Copy your compiled bin to your board and you are ready to go.

Resources


Write a review

Write a review

Note: HTML is not translated!
    Bad           Good
Recently viewed
Buzzer BPR-01

Buzzer BPR-01

1 Introduction We utilize a 5V passive buzzer. To drive this buzzer an oscillating source is need.....

$99,999.00


Power & Source of Big Ideas

Follow us
  •  
  •  
  •  
  •  
  •  
  •  
  •  
Newsletter

New in alerts - Sign up to our Newsletter.

Contact Us
  • Room 118,Building A, Shilian Technology Park, No.33 Science Road,Science City,Luogang District, Guangzhou,GuangDong China
  • +86-20-8520 1025
  • sales@friendlyarm.com
  • techsupport@friendlyarm.com
Information
  • About Us
  • Downloads
  • Privacy Policy
  • Terms&Conditions
  • Distributor
  • FreeBoard
Customer Service
  • Contact Us
  • Returns
  • Site Map
My Account
  • My Account
  • Order History
  • Wish List
  • Newsletter


Copyright © 2008-2022 friendlyelec.com All rights reserved.
Top
Categories
  • CPU Module (10)
  • Mini Board (3)
  • NanoPC & NanoPi (29)
  • Hats & Docks (13)
  • Enclosure & Holder (16)
  • BakeBit Sensors/Modules (2)
  • Matrix Accessories (73)
  • LCD Module (16)
  • Value Pack & Kit (11)