beaglebone black
DESCRIPTION
beagleboneTRANSCRIPT
BEAGLEBONE BLACK
Fig 1:beaglebone black(BBB)
BUILT IN NETWORKINGFILE SYSTEMWE CAN USE DIFFERENT PROGRAMMING
LANGUAGES.MULTITASKING.
WHY BEAGLEBONE BLACK
PROCESSOR(1Gz ARM CORTEX A8)RAM(512MB DDR3)USBMICRO HDMIOS(DEBIAN)ETHERNETMICROSD CARD
BBB SPECIFICATIONS
Fig2:BBB parts
PRESENT WORKING DIRECTORY(PWD)TO LIST DIRECTORIES AND FILES IN
DIRECTORY(LS)CHANGE DIRECTORY(CD) cd <path>CREATE DIRECTORY(MKDIR) mkdir <directory name>SHUTDOWN(POWEROFF)COPY(CP) cp <file name> <path>
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>
LINUX COMMOND LINE
DISPLAY ON SCRENN(ECHO) DATE
TO INSTALL PACKAGE(APT-GET)
IN LINUX WE HAVE SHELLS BASH SHELL C SHELL TC SHELL K SHELLShell scripting is nothing but number of
commands written into a file to perform some action.
SHELL SCRIPTING
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 doneWhile LOOP while test <expression> do statements done
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>
CONDITION STATEMENTS
Environment variables are named values that configure Linux environment.
Some variables arePwdUserOldpwdPathShell
ENVIRONMENT VARIABLES
FILE SYSTEM HIERARCHY
IN BEALEBONE BLACK WE HAVE TWO PIN HEADER P8 AND P9 .
EACH HAVE 46 PINS.THESE PINS HAVE 7 MODESFOR EACH MODE SAME PIN WORKS
DIFRENTLY.
PIN HEADERS
DEFUALT PIN CONFIGURATON
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=48Export 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.
ACCESSING GPIO PINS
Blink led c program
Pir program
Desktop sharingType sudo –u debian tightvncscreenThen search for remmina remote desktop
client.Create new remote desktop file.Set configurationsClick connect
BEAGLEBONE BLACK DESKTOP
Quiz c program
output
In p9 header pin32 to pin 40 are 7 analog inputs, ground and vcc.
Type command echo cap-bone-iio > /sys/devices/bone-
cpemgr.9/slots change directory to cd
/sys/devices/ocp.3/helper.15List available directories.It will list all analog pin AIN0-AIN6Read those files for digital output.
Analog inputs
THE END