Changes

Jump to navigation Jump to search

X630-Software

2,223 bytes added, 13:24, 25 October 2021
Setting for Software Reset - Starting RASPISTILL or RASPIVID multiple times and no need to reboot Raspberry Pi
 
sudo reboot
4. Once rebooted, You will need to edit /etc/rc.local to execute CAM GPIO initialization at startup
Save and exit with ctrl + x, followed by y when prompted to save, and then enter.
 
5.Reboot your Raspberry Pi to verify that the CAM LED lights up.
sudo reboot
[[File:X630-led.png|X630]]
 
6. Once rebooted, you need to make sure that the ‘/dev/video0’ device is available. Use this command to check:
 
ls /dev/video0
 
If you see anything other than ‘file not found‘, then it’s available.
 
7.Create a script to reset the X630 module
sudo nano reset.sh
enter the following:
echo "0" > /sys/class/gpio/gpio509/value
sleep 1
echo "1" > /sys/class/gpio/gpio509/value
 
Save and exit with ctrl + x, followed by y when prompted to save, and then enter.
 
8. Reboot your Raspberry Pi
sudo reboot
9.To take first photo with the X630 Module
sudo bash reset.sh
raspistill -o image1.jpg
 
Here, "image1" is the name of your image that will be saved to your Raspberry Pi
 
10.To take second photo with the X630 Module
sudo bash reset.sh
raspistill -o image2.jpg
 
Here, "image2" is the name of your image that will be saved to your Raspberry Pi.
 
11.Record first video with the X630 module
sudo bash reset.sh
raspivid -o video1.h264 -t 10000
 
Here, "video1" is the name of your video and "10000" is the number of milliseconds.
 
12.Record second video with the X630 module
sudo bash reset.sh
raspivid -o video2.h264 -t 10000
 
Here, "video2" is the name of your video and "10000" is the number of milliseconds.
 
'''Note: "sudo bash reset.sh" is always required to execute before starting RASPISTILL or RASPIVID. the CAM LED will go off for 1second then turn on.
'''
 
For Hardware Reset - Starting RASPISTILL or RASPIVID once then reboot your Raspberry Pi.
 
(Please use when operating system cannot control the X630 module via GPIO509)
 
13.To take a photo with the X630 Module
raspistill -o image.jpg
 
Here, "image" is the name of your image that will be saved to your Raspberry Pi
 
14. If you need to take second image, then you will need to reboot the Raspberry Pi and execute the "raspistill" again
sudo reboot
15.To record a video with the X630 module
raspivid -o video.h264 -t 10000
 
Here, "video" is the name of your video and "10000" is the number of milliseconds.
 
16.If you need to record second video, then you will need to reboot the Raspberry Pi and execute the "raspivid" again
sudo reboot
4. Once rebooted, you need to make sure that the ‘/dev/video0’ device is available. Use this command to check in a terminal window:

Navigation menu