Engineers Garage

  • Projects and Tutorials
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Products News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • White Papers
    • Webinars
  • EE Learning Center
    • Design Guides
      • WiFi & the IOT Design Guide
      • Microcontrollers Design Guide
      • State of the Art Inductors Design Guide
  • Women in Engineering

Web Cam interfacing with Beaglebone black (Part 10/15)

By Ashish Vara

Image of Webcam Interfaced to Beaglebone Black

Fig. 1: Image of Webcam Interfaced to Beaglebone Black

Web cam is needed for image capturing and video streaming applications. You can interface web cam with Beaglebone Black and capture the picture and video as well. In this tutorial I will interface Logitech web camera with BBB. I have explained step by step setup of web cam interfacing with BBB.  Before connecting web cam, I will explain about VNC remote connection of Beaglebone Black. If you get SSH access of BBB, it will not display image or video due to insufficient GUI.  So you need to take virtual remote access of BBB on desktop.

Prototype of Beaglebone Black based Security Camera

Fig. 2: Prototype of Beaglebone Black based Security Camera

VNC remote access of BBB on desktop

Step1: Connect with internet and power up BBB. Take the access of BBB with SSH through PC.

Screenshot of Accessing Beaglebone Black (BBB) with SSH through PC

Fig.3: Screenshot of Accessing Beaglebone Black (BBB) with SSH through PC

Step2:  First of all upgrade your kernel version. (Ignore if already done)

Step3:   Once the upgrade is finished, reboot your system.

Step4: We need to install a VNC server (i.e. x11VNC) in BBB by entering the following command:

sudo apt-get install x11vnc

Step5: We need  VNC viewer on desktop for remote access of BBB. Open another command prompt and install VNC viewer (Here I have installed vinagre) by following command:

sudo apt-get install vinagre

Step6: Now again go to command prompt which has SSH access of BBB and start VNC server by entering the following command:

x11vnc -auth /var/run/lightdm/root/:0 -forever

Screenshot of Root Login from Linux Console on Beaglebone Black

Fig. 4: Screenshot of Root Login from Linux Console on Beaglebone Black

It will start on port 5900.

Step7: Again go to local desktop command prompt (which is previously opened for install vinagre) and run following command:

vinagre 192.168.7.2::5900

Screenshot of Desktop Command Prompt on PC

Fig. 5: Screenshot of Desktop Command Prompt on PC

Now you have remote access of Beaglebone black on your local desktop. You can open command prompt from tool and operate same as desktop.

Screenshot of Linux on Beaglebone Black (BBB)

Fig. 6: Screenshot of Linux on Beaglebone Black (BBB)

Web cam Setup in BBB

Step1: Now, Disconnect power cable from BBB. Connect web cam (i.e., Logitech in this tutorial) into USB port and again power up to BBB. Take the access of BBB with SSH through PC.

Step2: Take a remote access of Beaglebone black as explained above. Open command prompt from BBB desktop.

Screenshot of Webcam Setup on Beaglebone Black

Fig. 7: Screenshot of Webcam Setup on Beaglebone Black

Step3: Check if the web cam is detected by BBB or not by entering following command

            ls /dev/video0

Step4: Now, to capture the image or video, install an image viewer (i.e. guvcview) in BBB by using following line:

            sudo apt-get install guvcview

Screenshot of Installing Guvcview on Beaglebone Black

Fig. 8: Screenshot of Installing Guvcview on Beaglebone Black

Step5: After installation run the following command from terminal:

             guvcview

Screenshot of Command Terminal on PC

Fig. 9: Screenshot of Command Terminal on PC

Step6: Now  your webcam is ready to capture images and videos.

Screenshot of Image Captured on PC from Beaglebone Black based Security Camera

Fig. 10: Screenshot of Image Captured on PC from Beaglebone Black based Security Camera

 

Circuit Diagrams

Circuit-Diagram-Beaglebone-Black-Security-Camera_0


Filed Under: Electronic Projects

 

Questions related to this article?
👉Ask and discuss on Electro-Tech-Online.com and EDAboard.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


Featured Tutorials

  • Introduction to Brain Waves & its Types (Part 1/13)
  • Understanding NeuroSky EEG Chip in Detail (Part 2/13)
  • Performing Experiments with Brainwaves (Part 3/13)
  • Amplification of EEG Signal and Interfacing with Arduino (Part 4/13)
  • Controlling Led brightness using Meditation and attention level (Part 5/13)
  • Control Motor’s Speed using Meditation and Attention Level of Brain (Part 6/13)

Stay Up To Date

Newsletter Signup

Sign up and receive our weekly newsletter for latest Tech articles, Electronics Projects, Tutorial series and other insightful tech content.

EE Training Center Classrooms

EE Classrooms

Recent Articles

  • What are the battery-selection criteria for low-power design?
  • Key factors to optimize power consumption in an embedded device
  • EdgeLock A5000 Secure Authenticator
  • How to interface a DS18B20 temperature sensor with MicroPython’s Onewire driver
  • Introduction to Brain Waves & its Types (Part 1/13)

Most Popular

5G 555 timer circuit 8051 ai Arduino atmega16 automotive avr bluetooth dc motor display Electronic Part Electronic Parts Fujitsu ic infineontechnologies integratedcircuit Intel IoT ir lcd led maximintegratedproducts microchip microchiptechnology Microchip Technology microcontroller microcontrollers mosfet motor powermanagement Raspberry Pi remote renesaselectronics renesaselectronicscorporation Research samsung semiconductor sensor software STMicroelectronics switch Technology vishayintertechnology wireless

RSS EDABOARD.com Discussions

  • Advice for my disabled son please
  • Very low voltage/power Schmitt trigger?
  • 3D IC Design: Is it possible to stack CPU and FPGA?
  • dc to dc converter sparks when inserting fuse
  • 7 segment display connections

RSS Electro-Tech-Online.com Discussions

  • Pet Microchip scan
  • Disabled son needs advice please
  • Modify a digital clamp ammeter ?
  • Confirming whether this circuit will work
  • How does a blinky/flashing ball work?
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • About Us
  • Contact Us
  • Advertise

Copyright © 2022 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Projects and Tutorials
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Products News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • White Papers
    • Webinars
  • EE Learning Center
    • Design Guides
      • WiFi & the IOT Design Guide
      • Microcontrollers Design Guide
      • State of the Art Inductors Design Guide
  • Women in Engineering