Difference between revisions of "BPI BerryClip Module"

From Banana Pi Wiki
Jump to: navigation, search
(How to use)
(others)
 
Line 126: Line 126:
  
 
=others=
 
=others=
 
+
*Banana Pi BerryClip 6LED use on BPI-M2 demo : https://www.youtube.com/watch?v=E_LQXyNECNQ
 
 
 
 
 
 
1:58
 
Raspberry Pi - Quake 3 demo
 
Liz Upton
 
1.5M views
 
 
 
 
 
8:27
 
Problem with the Patriots still being hailed as the team to beat? | UNDISPUTED 5/30/2018
 
First Take
 
Recommended for you
 
New
 
 
 
 
 
6:58
 
Is Jeff Van Gundy right that any game the Cavs win in the Finals.. | FIRST THINGS FIRST 5/30/2018
 
First Take
 
Recommended for you
 
New
 
 
 
 
 
7:43
 
Buying that Nick Foles had no say in potential trade offer? | UNDISPUTED 5/30/2018
 
First Take
 
Recommended for you
 
New
 
 
 
 
 
7:47
 
Do Cavs have any shot against Warriors? | THE HERD 5/29/2018
 
First Take
 
Recommended for you
 
New
 
 
 
 
 
3:04
 
Starting to believe the Lakers will give Gelo a chance? | UNDISPUTED 5/30/2018
 
First Take
 
Recommended for you
 
New
 
 
 
 
 
37:30
 
Communication between Arduino, RaspberryPi and Server
 
madhu venkatesh
 
52K views
 
 
 
 
 
13:45
 
Michael Jordan last 3 minutes in his FINAL BULLS GAME vs Jazz (1998)
 
pennyccw
 
Recommended for you
 
 
 
 
 
2:42
 
Skip and Shannon’s reaction to the Lakers working out LiAngelo Ball | NBA | UNDISPUTED
 
Skip and Shannon: UNDISPUTED
 
Recommended for you
 
New
 
 
 
 
 
10:15
 
Antoine Walker-Kevin Durant on criticism he can't carry team like.. | FIRST THINGS FIRST 5/30/2018
 
First Take
 
Recommended for you
 
New
 
 
 
Raspberry Pi Home Assistant Setup
 
misperry
 
27K views
 
 
 
Jabra PRO900Series
 
Loja Mundi
 
3 views
 
 
 
Node Red MQTT on the Raspberry Pi
 
Richard Wenner
 
163K views
 
 
 
Raspberry Pi Custom Web Control
 
misperry
 
99K views
 
 
 
SuperHouseTV #17: Home automation control with Sonoff, Arduino, OpenHAB, and MQTT
 
SuperHouseTV
 
247K views
 
 
 
Banana Pi BerryClip 6LED use on BPI-M2 demo : https://www.youtube.com/watch?v=E_LQXyNECNQ
 

Latest revision as of 02:45, 31 May 2018


Product Overview

Overview


The module is designed specifically for learning control the GPIO of Banana Pi. There are 6 LED, 1 button and 1 Beep on the module; All of them can use the GPIO of Banana Pi to control. The beginner can learn the INPUT mode of GPIO through the key and learn the OUTPUT mode through the LED or Beep

Product Feature

  • 1. 6 multicolor LED
  • 2. 1 single button on board
  • 3. 1 Beep on board

Product specification

Berry chip 1.png

Port

BananaPi 2X13 port,also can use on raspberry pi.

Product Parameters

  • 1. Working voltage: 3.3V
  • 2. LED max current allow 8mA
  • 3. Beep max current allow 12mA

Typical Application

  • 1. Hardware beginner learning
  • 2. Education

Insert the BerryClip in the Banana Pi, Pay attention don’t make the direction reversed! The correct direction of insert module is above the Banana Pi’s PCB.

Testbench

  • 1. Setup the GPIO OUTPUT, Output LED High level, the LED will be lighten;
  • 2. Setup the GPIO INPUT, press the button;
  • 3. Test finish

Example and Test Code

#include <wiringPi.h>
int LED1[]={7,0,3,12,13,14};
int i;

int initIO()
{
pinMode(7,OUTPUT);
pinMode(0,OUTPUT);
pinMode(3,OUTPUT);
pinMode(12,OUTPUT);
pinMode(13,OUTPUT);
pinMode(14,OUTPUT);
}
int LED()
{
for(i=0;i<=6;i++)
{
digitalWrite(LED1[i],1);
delay(500);
digitalWrite(LED1[i],0);
delay(500);
}
}
int main()
{
int val;
wiringPiSetup();
 initIO();
pinMode(10,INPUT);
digitalWrite(11,1);
while(1)
{
val=digitalRead(10);
if(val==0)
{
LED();
digitalWrite(11,1);
i=0;
}
} 
}

How to use

BPI BerryClip 6 LED Module and how to use on BPI-M3

OS: BPI-M3 Ubuntu15.10 (Kernel3.4)

Version: 1.0 HDMI

Br1.jpg

Step 1: Download WiringPI

$ git clone https://github.com/BPI-SINOVOIP/BPI-WiringPi.git -b BPI_M3
$ cd BPI-WiringPi
$ chmod +x ./build
$ sudo ./build

Step 2 : Copy smaple code to BerryClip.c file

$ sudo vi BerryClip.c

Step 3 : Compile BerryClip.c

$ gcc -o BerryClip BerryClip.c -l wiringPi

Step 4 : Run BerryClip

$ sudo ./BerryClip

Step 5: Press the button to see if it works

Br2.jpg

Video demo on youtube:

https://www.youtube.com/watch?v=kIPbm86sqnw

Forum pthread

http://forum.banana-pi.org/t/bpi-m3-bpi-berryclip-6-led-module-and-how-to-use/1077

others