SOFTWARE SETUP
Please ssh to your Octopi and enter these commands (This
only needs to be done once):
After executing the above command, the file
/
boot/config.txt
should now have the commands
to enable I2C. In addition, you have to enable the
I2C kernel module using raspi
-
config. Again, ssh to
your octopi, and then enter this command:
Step 1. select
“5
Interfacing Options
”
Step 2. select
“
P5 I2C
”
Step 3. raspi
-
config will ask,
“
Would you like the
ARM I2C interface to be enabled?
”
Step 4. select
“
Yes
”
dtparam=i2c_vc=on
if ! grep
-
Fxq "^#ArduCamFocus$" /boot/config.txt; then
sudo cat << end_of_file >> /boot/config.txt
#ArduCamFocus
dtparam=i2c_arm=on
end_of_file
fi
sudo raspi
-
config
SOFTWARE SETUP
Step 5. you should see,
“
The ARM I2C interface is
enabled
”
Step 6. select
“
Finish
”
After you reboot, the camera should become
operational in OctoPrint.
•
Download the Plugin
Open up the Octopi login page:
http://[IP]/
#control
, please note that the
[IP]
should be
replaced with address shown in the figure below.
/home/pi/oprint/bin/pip install https://github.com/ArduCAM/RaspberryPi/
releases/download/OctoPrint
-
Arducamfocus/OctoPrint
-
Arducamfocus.zip
wlan0: flags
-
4163<UP, BROADCAST,RUNNING,MULTICAST> MTU 1500
Inet
192.168.0.52
netmask 255.255.255.0 broadcast
192.168.0.255
Now you can view the Arducam Focus Control
interface and use the tab to adjust focus.
TROUBLESHOOTING
1.
Failed to run camera with raspstill
The raspistill requires full access to the camera device
when it runs, which is being locked by the webcamd
service. You would have to stop the webcamd service in
order to use the raspistill. Otherwise, you will not be able
to open the camera.