Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey 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
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe

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

By Ashish Vara August 6, 2016

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: BeagleBone, Electronic Projects

 

Next Article

← Previous Article
Next Article →

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



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

EE TECH TOOLBOX

“ee
Tech Toolbox: Internet of Things
Explore practical strategies for minimizing attack surfaces, managing memory efficiently, and securing firmware. Download now to ensure your IoT implementations remain secure, efficient, and future-ready.

EE Learning Center

EE Learning Center
“engineers
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

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!


RSS EDABOARD.com Discussions

  • Reducing "shoot-through" in offline Full Bridge SMPS?
  • High Side current sensing
  • How to simulate power electronics converter in PSpice?
  • Voltage mode pushpull is a nonsense SMPS?
  • Layout IRN reduction in Comparator

RSS Electro-Tech-Online.com Discussions

  • Back to the old BASIC days
  • Parts required for a personal project
  • PIC KIT 3 not able to program dsPIC
  • Failure of polypropylene motor-run capacitors
  • Siemens large industrial PLC parts

Featured – RPi Python Programming (27 Part)

  • RPi Python Programming 21: The SIM900A AT commands
  • RPi Python Programming 22: Calls & SMS using a SIM900A GSM-GPRS modem
  • RPi Python Programming 23: Interfacing a NEO-6MV2 GPS module with Raspberry Pi
  • RPi Python Programming 24: I2C explained
  • RPi Python Programming 25 – Synchronous serial communication in Raspberry Pi using I2C protocol
  • RPi Python Programming 26 – Interfacing ADXL345 accelerometer sensor with Raspberry Pi

Recent Articles

  • What is AWS IoT Core and when should you use it?
  • AC-DC power supply extends voltage range to 800 V DC
  • Infineon’s inductive sensor integrates coil system driver, signal conditioning circuits and DSP
  • Arm Cortex-M23 MCU delivers 87.5 µA/MHz active mode
  • STMicroelectronics releases automotive amplifiers with in-play open-load detection

EE ENGINEERING TRAINING DAYS

engineering

Submit a Guest Post

submit a guest post
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • Battery Power Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • Subscribe to our newsletter
  • About Us
  • Contact Us
  • Advertise

Copyright © 2025 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

Search Engineers Garage

  • Electronic Projects & Tutorials
    • Electronic Projects
      • Arduino Projects
      • AVR
      • Raspberry pi
      • ESP8266
      • BeagleBone
      • 8051 Microcontroller
      • ARM
      • PIC Microcontroller
      • STM32
    • Tutorials
      • Audio Electronics
      • Battery Management
      • Brainwave
      • Electric Vehicles
      • EMI/EMC/RFI
      • Hardware Filters
      • IoT tutorials
      • Power Tutorials
      • Python
      • Sensors
      • USB
      • VHDL
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Product News
    • Business News
    • Company/Start-up News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • DigiKey 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
  • Learn
    • eBooks/Tech Tips
    • Design Guides
    • Learning Center
    • Tech Toolboxes
    • Webinars & Digital Events
  • Resources
    • Digital Issues
    • EE Training Days
    • LEAP Awards
    • Podcasts
    • Webinars / Digital Events
    • White Papers
    • Engineering Diversity & Inclusion
    • DesignFast
  • Guest Post Guidelines
  • Advertise
  • Subscribe