Download - Beaglebone Black
![Page 1: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/1.jpg)
BEAGLEBONE BLACK
![Page 2: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/2.jpg)
Fig 1:beaglebone black(BBB)
![Page 3: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/3.jpg)
BUILT IN NETWORKINGFILE SYSTEMWE CAN USE DIFFERENT PROGRAMMING
LANGUAGES.MULTITASKING.
WHY BEAGLEBONE BLACK
![Page 4: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/4.jpg)
PROCESSOR(1Gz ARM CORTEX A8)RAM(512MB DDR3)USBMICRO HDMIOS(DEBIAN)ETHERNETMICROSD CARD
BBB SPECIFICATIONS
![Page 5: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/5.jpg)
Fig2:BBB parts
![Page 6: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/6.jpg)
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
![Page 7: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/7.jpg)
![Page 8: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/8.jpg)
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
![Page 9: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/9.jpg)
![Page 10: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/10.jpg)
DISPLAY ON SCRENN(ECHO) DATE
TO INSTALL PACKAGE(APT-GET)
![Page 11: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/11.jpg)
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
![Page 12: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/12.jpg)
IF CONDITION if test <expression> then statements elif test <expression> then statements else statements fi
![Page 13: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/13.jpg)
FOR LOOP for (( initiation ; condition ; increment or
decrement)) do statements doneWhile LOOP while test <expression> do statements done
![Page 14: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/14.jpg)
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
![Page 15: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/15.jpg)
![Page 16: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/16.jpg)
![Page 17: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/17.jpg)
Environment variables are named values that configure Linux environment.
Some variables arePwdUserOldpwdPathShell
ENVIRONMENT VARIABLES
![Page 18: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/18.jpg)
![Page 19: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/19.jpg)
![Page 20: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/20.jpg)
FILE SYSTEM HIERARCHY
![Page 21: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/21.jpg)
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
![Page 22: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/22.jpg)
![Page 23: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/23.jpg)
DEFUALT PIN CONFIGURATON
![Page 24: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/24.jpg)
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
![Page 25: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/25.jpg)
![Page 26: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/26.jpg)
Blink led c program
![Page 27: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/27.jpg)
Pir program
![Page 28: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/28.jpg)
Desktop sharingType sudo –u debian tightvncscreenThen search for remmina remote desktop
client.Create new remote desktop file.Set configurationsClick connect
![Page 29: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/29.jpg)
![Page 30: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/30.jpg)
BEAGLEBONE BLACK DESKTOP
![Page 31: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/31.jpg)
Quiz c program
![Page 32: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/32.jpg)
![Page 33: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/33.jpg)
![Page 34: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/34.jpg)
output
![Page 35: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/35.jpg)
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
![Page 36: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/36.jpg)
![Page 37: Beaglebone Black](https://reader036.vdocuments.us/reader036/viewer/2022062500/5695d0a51a28ab9b02934923/html5/thumbnails/37.jpg)
THE END