You are on page 1of 37

BEAGLEBONE BLACK

Fig 1:beaglebone black(BBB)

WHY BEAGLEBONE BLACK


BUILT IN NETWORKING
FILE SYSTEM
WE CAN USE DIFFERENT PROGRAMMING

LANGUAGES.
MULTITASKING.

BBB SPECIFICATIONS
PROCESSOR(1Gz ARM CORTEX A8)
RAM(512MB DDR3)
USB
MICRO HDMI
OS(DEBIAN)
ETHERNET
MICROSD CARD

Fig2:BBB parts

LINUX COMMOND LINE


PRESENT WORKING DIRECTORY(PWD)
TO

LIST
DIRECTORIES
DIRECTORY(LS)
CHANGE DIRECTORY(CD)
cd <path>
CREATE DIRECTORY(MKDIR)
mkdir <directory name>
SHUTDOWN(POWEROFF)
COPY(CP)
cp <file name> <path>

AND

FILES

IN

LINUX COMMOND LINE


MOVE(MV)

mv <filename> <path>
for rename
mv <oldfile name> <newfile name>
DELETE(RM)
rm <file name>
TO CREATE A FILE AND EDIT(VIM)
vim <file name>

DISPLAY ON SCRENN(ECHO)
DATE
TO INSTALL PACKAGE(APT-GET)

SHELL SCRIPTING
IN LINUX WE HAVE SHELLS

BASH SHELL
C SHELL
TC SHELL
K SHELL
Shell scripting is nothing but number of
commands written into a file to perform some
action.

IF CONDITION

if test <expression>
then
statements
elif test <expression>
then
statements
else
statements
fi

FOR LOOP

for (( initiation ; condition ; increment or


decrement))
do
statements
done
While LOOP
while test <expression>
do
statements
done

CONDITION STATEMENTS
EQUAL

<first operand> -eq <second operand>


NOT EQUEL
<first operand> -ne <second operand>
Less than <first operand> -lt <second operand>
Less than or equal to <first operand> -le
<second operand>
Greater than <first operand> -gt <second
operand>
Greater than or equal to <first operand> -ge
<second operand>

ENVIRONMENT VARIABLES
Environment variables are named values that

configure Linux environment.


Some variables are
Pwd
User
Oldpwd
Path
Shell

FILE SYSTEM HIERARCHY

PIN HEADERS
IN BEALEBONE BLACK WE HAVE TWO PIN

HEADER P8 AND P9 .
EACH HAVE 46 PINS.
THESE PINS HAVE 7 MODES
FOR EACH MODE SAME PIN WORKS DIFRENTLY.

DEFUALT PIN CONFIGURATON

ACCESSING GPIO PINS


If we want to use gpio1_16(15) pin first we

need to export physical address of that pin.


Calculating physical address
gpio1_16
1x32=32
32+16=48
Export 48 then pin will be available for use.
Write in or out into direction file to make input
or out put pin.
Write 0 or 1 into value file to make pin 0 or 1.

Blink led c program

Pir program

Desktop sharing
Type sudo u debian tightvncscreen
Then search for remmina remote desktop

client.
Create new remote desktop file.
Set configurations
Click connect

BEAGLEBONE BLACK DESKTOP

Quiz c program

output

Analog inputs
In p9 header pin32 to pin 40 are 7 analog

inputs, ground and vcc.


Type command
echo cap-bone-iio > /sys/devices/bonecpemgr.9/slots
change directory to cd
/sys/devices/ocp.3/helper.15
List available directories.
It will list all analog pin
AIN0-AIN6
Read those files for digital output.

THE END

You might also like