In compliance with high industry standards

Browse our Blog. You will find multiple applications, solutions, code examples. Navigate using the tag cloud or search using specific criteria

How to connect USB Camera to Raspberry PLC

Industrial Raspberry PLC Usage

Related links

How to connect Raspberry PLC to Wi-Fi


Read >>

Basics about Raspberry Pi PLC analog outputs


Read >>

How to find your perfect industrial PLC


Read >>

How to program Raspberry PLC interrupt inputs with Python


Read >>

Raspberry PLC
family products


Read >>

TouchBerry Pi
family products


Read >>

Explanation

TAKING PICTURES 

1. Connect the Raspberry PLC to a WIFi network
2. Open up a terminal windows and issue the following command to install the fswebcam package:

sudo apt update
sudo apt install fswebcam

3. Add your user to the video group:

sudo usermod -a -F video <username>

4. Enter the command fswebcam followed by a filename. A picture will be taken using the webcam, and saved to the filename specified:

fswebcam image.jpg

5. Specify the resolution using the -r flag:

fswebcam -f 1280x720 image.jpg

For more information, go to: https://www.raspberrypi.org/documentation/usage/webcams/



RECORDING VIDEOS

1. Install the ffmpeg packages:

sudo apt update
sudo apt install ffmpeg


2. Exec the next command to record a video from an input file, an save it to an output file:

ffmpeg -i <input file> <output file>


Check out the ffmpeg documentation for more details: https://www.ffmpeg.org/ffmpeg.html




Raspberry PLC Industrial Controller

Raspberry PLC
Industrial Controller

 An industrial solution based on the Raspberry board.


If you need more information, do not hesitate to contact with us.

Do you want to know how to implement our open source PLC Raspberry Pi devices?

Visit our Case Studies about Raspberry Pi automation, monitoring and control.

Looking for your ideal PLC?


Take a look at this product comparison with other industrial controllers.

We are comparing inputs, outputs, communications and other features with the ones of the relevant brands.


PLC comparison >>

Do you want more information?

Just fill the form!

Tell me more!