Changes

Jump to navigation Jump to search

X630-Software

1,655 bytes removed, 12 March
no edit summary
{{GD Template Impl}}
This wiki describes how to use x630 on the Raspberry Pi OS. <span style="color:red;">Note: The software can currently be used directly on Raspberry Pi 4B, 3B+/3B/Zero series. Software support for Raspberry Pi 5 software is not available which need to be tested.
 
The Raspberry Pi Foundation has updated several versions recently;
 
The use guide of X630 depends on the official Raspberry Pi OS version you are using. Different versions have different usage methods. If you have some questions, please contact us and attach the os version you are using.(<span style="color:red;">Email: support@geekworm.com</span>)
 
==For Raspberry Pi OS==
Disconnect power supply to '''NOTE:''' Since the X630 V1.5 version removes the Raspberry Pi before changing dip software reset&hardware reset DIP switch positions, for the V1.5 version, please ignore the use of software reset or directly visit to [[X630-Hardware-Reset]]
[[FileX630 v1.3 has two reset mode:Dip-switches.jpg|none|dip switch]]{| class="wikitable"! SELECTION !! SWITCH SETTINGS !! |-| '''Hardware reset || HW = 1 || SW = 0|-| ''' and '''Software reset || HW = 0 || SW = 1|}''' modes;
* Hardware reset: After starting RASPISTILL or RASPIVID <span style="color:red;">once</span> then you will need to reboot Raspberry Pi to restart it again
* Software reset: Starting RASPISTILL or RASPIVID <span style="color:red;">multiple times</span> and don't need to reboot Raspberry Pi ('''Recommend''')
* Default setting is 'Software reset';
* Please remove the yellow protective film before change dip switch.
1. Once bootedYou can use hardware reset mode if you use it on raspberry pi hardware or raspberry pi os, update your Raspberry Pi by running the following commands in a terminal window: sudo apt-get update sudo apt-get upgrade2. Run the following command software reset uses GPIO 509 to go into reset operation through GPIO, which can prevent you from restarting the Raspberry Pi configuration tool sudo raspi-configrepeatedly, which is very convenient.
[[File:Raspi-config-1.jpg]]
3. Navigate The user guide of X630 is similar to ''''Interfacing Options'''' and hit Enter. Now select the ''''Camera'''' option, and hit the Enter key to enable it. Select “Finish” and select to '''reboot''' your Raspberry Pi.[[File:Raspi-configHDMI TO CSI-2.jpg|C779]] sudo reboot4. Once rebooted, you need to make sure that the ‘/dev/video0’ device when X630 is available. Use this command to check in a terminal window:hardware mode, but X630 supports audio when used with X630-A2, and ls /dev/video0[[File:RaspiHDMI TO CSI-config-3.jpg2|C779]]does not support audio
If you see anything other than ‘file not found‘, then it’s available.
<hr/>'''For Software Reset''' - Starting RASPISTILL or RASPIVID multiple times and no need to reboot Raspberry PiFirst, please confirm & select X630 work mode according the picture; After November 2021, the default factory mode is hardware mode;
5. Execute CAM GPIO initialization at startupWe found that some users prefer hardware mode, need so our factory default settings have been changed to add scripts in /etc/rc.local file.Run the following two commends; sudo sed -i '$ i echo "509" > /sys/class/gpio/export' /etc/rc.local sudo sed -i '$ i echo "out" > /sys/class/gpio/gpio509/direction' /etc/rc.localOr sudo nano /etc/rc.local Scroll down, and just before the 'exit 0' line, enter the following comment: echo "509" > /sys/class/gpio/export echo "out" > /sys/class/gpio/gpio509/direction[[File:Raspi-config-4-1.jpg]]Save and exit with ctrl + x, followed by y when prompted to save, and then enter.hardware mode
6. Create a script to reset the X630 module cd ~ sudo nano reset.shEnter the following[[File: echo "0" > /sys/class/gpio/gpio509/value sleep 1 echo "1" > /sys/class/gpio/gpio509/valueSave and exit with ctrl + x, followed by y when prompted to save, and then enterDip-switches.jpg|none|dip switch]]
NOTE<span style="color:Don't forget red;">Disconnect power to the folder where the reset.sh file is located7. Reboot your Raspberry Pi sudo rebootPlease return the fold of reset.sh file after restartbefore changing dip switch positions!!!</span>
8.To take first '''photo''' with the X630 Module{| class="wikitable"! SELECTION !! SWITCH SETTINGS !! cd ~|- sudo bash | Hardware reset.sh(Default) || HW = 1 || SW = 0 raspistill |-o image1.jpgHere, "image1.jpg" is the name of your image that will be saved to your Raspberry Pi| Software reset || HW = 0 || SW = 1|}
9. To take second '''photo''' with the [[File:X630 Module sudo bash reset.sh raspistill -o image2Reset-01.jpgHere, "image2.jpg" is the name of your image that will be saved to your Raspberry Pi 10. Record first '''video''' with the X630 module sudo bash reset.sh raspivid -o video1.h264 -t 10000Here, "video1" is the name of your video and "10000" is the number of milliseconds. 11. Record second '''video''' with the |none|800px|X630 module sudo bash reset.sh raspivid -o video2.h264 -t 10000Here, "video2" is the name of your video and "10000" is the number of milliseconds.dip switch setting]]
'''Note'''Explain:* Hardware reset: "sudo bash reset.sh" is always required to execute before After starting RASPISTILL or RASPIVID. the CAM LED will go off for 1 second then turn on.<hrspan style="color:red;">once</span> then you will need to reboot Raspberry Pi to restart it again (Please use when operating system cannot control the X630 module via GPIO509)'''For Hardware Reset''' - * Software reset: Starting RASPISTILL or RASPIVID once then <span style="color:red;">multiple times</span> and don't need to reboot your Raspberry Pi.* Default setting is 'Hardware reset'.* Please remove the yellow protective film before change dip switch.<hr/>
Please use the following guide if your dip switch is changed to 'Hardware reset' position.
12. To take a photo with the '''For Hardware Reset''' refer to [[X630 Module raspistill -o image.jpgHere, "image.jpg" is the name of your image that will be saved to your Raspberry PiHardware-Reset]]
13. If you need '''For Software Reset''' refer to take second image, then you will need to reboot the Raspberry Pi and execute the "raspistill" again. sudo reboot[[X630-Software-Reset]]
14. 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.
15. If you need Return to record second video, then you will need to reboot the Raspberry Pi and execute the "raspivid" again. sudo reboot[[X630]]
<!--Add review function! -->

Navigation menu