Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Unable to use SMBus/I2C #2

Closed
ultimase opened this issue Jun 29, 2020 · 12 comments
Closed

"Unable to use SMBus/I2C #2

ultimase opened this issue Jun 29, 2020 · 12 comments
Assignees

Comments

@ultimase
Copy link

Hello,
I do apologize in advance, I am very much a newbie with it comes to raspberry pi's and Linux.

I purchased this camera with the hope that I could utilize it in Octoprint to focus on the actual bed and object being worked on.
Jneilliii, and others have been extremely helpful in pointing me in the right direction (https://community.octoprint.org/t/arducam-auto-focus-camera/21511/10), but I've run into this fault and I've not been able to find much about it.

I'm sure it's probably something very simple, but again, very very very new to this stuff.

Thank you.

@RoachCoach521
Copy link

Wanted to echo the above.

Followed these instructions: https://www.raspberrypi.org/forums/viewtopic.php?t=250596

git clone https://github.com/ArduCAM/RaspberryPi.git
cd RaspberryPi/Motorized_Focus_Camera
chmod +x enable_i2c_vc.sh
./enable_i2c_vc.sh
sudo reboot

The camera is visible, and the proper line is in the config.txt

But every time I go to use the plugin I get unable to use SMBus/I2C

figure I'm missing something dumb

Thanks!

@moof-src
Copy link
Owner

moof-src commented Jul 5, 2020

I observed the same problem. I am testing a fix and will post updated documentation tomorrow if everything works.

@moof-src moof-src self-assigned this Jul 5, 2020
@Polly-Jeanius
Copy link

Ditto, same SMBus/I2C issue here. Thanks heaps for looking into a fix @moof-src. Will check back tomorrow - fingers crossed.

@jneilliii
Copy link
Contributor

It's probably something simple like

sudo apt update
sudo apt upgrade

@Polly-Jeanius
Copy link

It's probably something simple like

sudo apt update
sudo apt upgrade

Unfortunately not :( Already running latest on Buster. Did all the updates/upgrades before installing the plugin.

@moof-src moof-src closed this as completed Jul 5, 2020
@moof-src
Copy link
Owner

moof-src commented Jul 5, 2020

Please look at README.md for new installation requirements. I left the following instructions:

This plugin uses I2C to communicate with the camera. That is not enabled by default. The ArduCamFocus plugin will not function until
you enable I2C.
ssh to your octopi and enter this commands (this only needs to be done once):

if ! grep -Fxq "^#ArduCamFocus$" /boot/config.txt; then
sudo cat << end_of_file > /boot/config.txt
#ArduCamFocus
dtparam=i2c_vc=on
dtparam=i2c_arm=on
end_of_file
fi

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:

sudo raspi-config
  1. select "5 Interfacing Options"
  2. select "P5 I2C"
  3. raspi-config will ask, "Would you like the ARM I2C interface to be enabled?"
  4. select "Yes"
  5. you should see, "The ARM I2C interface is enabled"
  6. select "Finish"

After you reboot, the camera should become operational in OctoPrint.

@RoachCoach521
Copy link

Just wanted to say thanks, this worked perfectly for me.

The plugin works with no errors and the camera is now controllable.

@dudeway4
Copy link

I am getting the error -bash: /boot/config.txt: Permission denied

if ! grep -Fxq "^#ArduCamFocus$" /boot/config.txt; then
sudo cat << end_of_file > /boot/config.txt
#ArduCamFocus
dtparam=i2c_vc=on
dtparam=i2c_arm=on
end_of_file
fi

@altcoin725
Copy link

I am getting the error -bash: /boot/config.txt: Permission denied

if ! grep -Fxq "^#ArduCamFocus$" /boot/config.txt; then
sudo cat << end_of_file > /boot/config.txt
#ArduCamFocus
dtparam=i2c_vc=on
dtparam=i2c_arm=on
end_of_file
fi

I get the same permission denied error.

@moof-src
Copy link
Owner

moof-src commented Feb 26, 2021 via email

@grilparto
Copy link

Also getting permission denied pasting the script in. Had to do a sudo su to be able to do this for some reason.

@pawrequest
Copy link

arducam was working but focus wasn't - i got the same unable to use SMBus/I2C error as above when trying to focus, so i followed above instructions and now the camera doesn't work at all - webcam stream not loaded...

any ideas? thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants