https://www.youtube.com/watch?v=UMEUo6Wm6u4
Analog Pins must supply with max voltage of 1.8V
to get 1.8 V from sensor use Voltage divider with 1.8V (Vcc as Vdd_ADC (1.8V))
Getting started:
https://www.youtube.com/watch?v=c81tmb7WJxw
Step1: Connect Ethernet first then power Beaglebone
Step2: https://beagleboard.org/getting-started
notedown the IP Address:
Step3: Browse the IP address.
Step4: select Cloud9 IDE.
step5: take new select terminal
step6: ifconfig
notedown IP address: 192.168.7.2
step7: close all
for Using SSH
open putty----> type IP address----->password
The BeagleBone Black hardware has two default user names: 'debian' and 'root' . For 'debian' , the default password is 'temppwd' . For 'root' , the default password is empty: ''
congrats:
Create New python program:
----> nano test.py
to save: ctrl+o ------> enter ------->
to exit: ctrl +x
to run progra:
-------------> python test.py
Now how to install VNC
step1: download and install Tight VNC viein our laptop: https://www.tightvnc.com/download.php
step2: Install VNC server in Beaglebone Black
go to putty : sudo apt-get install tightvncserver
step3: to run :
tightvncserver ------> (enter)
you can setup password for VNC now
would you like to enter a view only password---------->n
now beaglebone ready to use VNC
vncserver :1 -geometry 1200x800 -depth 24 -dpi 96 -----> enter
step4: goto laptop open VNC Viewer
type IP address:
192.168.7.2:1
the password setup for VNC now has to enter
Runing Python:
https://www.youtube.com/watch?v=fVSOZDOzTjk&t=219s
open putty in laptop -----------> putty---------->
type -------> python -------------> check version of python
get out of python shell
ctrl+d
to make directory:
mkdir mohiddin
create a python file
nano hello.py
write program: ---> save----->exit-------> run
Controlling Digital GPIO with Python (Green Pins)
https://www.youtube.com/watch?v=Yg54VE9CeRE&t=35s
lets use P9_12 (GPIO_60) and P9_2(DGND)
connect LED in that
open Putty----->create python file---------> write program
output:
Analog Write (PWM: Purple pins)
https://www.youtube.com/watch?v=vAR8v96J3FQ
using : P8_2(DGND) and P8_13(EHRPWM2B)
connect LED
write program
Output:
what Duty cycle you give that brighter the LED glows.
Read Buttons Using GPIO Pins from Python(Digital Read)
we have to use external pull down and pull up resistors atlease 1kohm resisters.
( This pull up or pull down is nothing but a voltage divider circuit)
LED with Beaglebone Black board
https://www.youtube.com/watch?v=pJWcRPcqk3g
Comments
Post a Comment