-
Notifications
You must be signed in to change notification settings - Fork 368
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
Problem with Octopi on Raspberry Pi B+ and Pi Camera #31
Comments
|
I am using a 2 amp power supply with a working cable. Using the same card, camera, cable and B+ raspberry pi it work correctly with the plain Raspian 6-20-14 image, if I down power swap to the Octopi image I get errors. I did try it with a lab grade bench power supply, same problems. Chuck |
@guysoft Yes, I did. LED didn't come on, but I got an image in OctoPrint and timelapsing worked too |
@carbuthn: have you enabled the pi cam in the basic config menu at first start? I think no, because your error message is: "camera component could not be enabled" |
@floville That is not required, OctoPi comes with camera enabled out of the box (this line takes care of it https://github.com/guysoft/OctoPi/blob/devel/src/chroot_script#L109) |
@carbuthn Have you rebooted a to make sure it keeps happening? In this forum post someone is reporting exactly these errors, and claims it happens because the camera or board are in a 'dodgy state', and rebooting fixed the issue: http://www.raspberrypi.org/forums/viewtopic.php?p=360945#p360945 |
Ok, it´s my first experience with raspberry and linux, but i have the new raspberry b+ und with connected raspberry pi cam and it works fine with octopi 0.9.0. Is it possible a connection error? the ribbon cable can be easily wrong assembled. |
@floville
Please be more clear. |
@guysoft: Please take a little considerate, my english is not the best. I just wanted to say that it has nothing to do with the new pi b+. |
Thanks for the responses, I have a second B+ with different camera and power supply. I will download the Octopi image again to make sure that I get a good download and try it later tonight. |
Unless you have any updates, I am closing this |
I have 2 separate cards and cameras but haven’t been able to get the PI Camera to work. I must be doing something wrong. Will try again once my printer arrives. Thanks for the help. Chuck From: Guy Sheffer [mailto:notifications@github.com] Unless you have any updates, I am closing this — |
I have an PiCam and both RPi models and neither the camera or the serial port connection seems to work in the B+. Running dmesg confirms the USB is connected to ttyACM0, and I tried adding the user "pi" to the dialout etc... and nothing would work. When I used the MicroSD card from the B+ in an adapter, I was able to run the same image in the older RPi for which both the camera and serial connection worked without issue. |
Hello Guy, Just wanted to add my voice to this. I'm having exactly the same problem as carbuthn. The camera module works just fine with latest Raspian image (tested using raspistill). However, when I instead load the lasted Octopi distro, I get the error messages listed above. I've tried both on a model B, and also a B+, and both have the same issue. I have a 2 amp power supply. The led on the camera module comes on (and it works on Raspian), so I don't think the problem is with the cable. |
Hey @jmpattillo and @carbuthn ,
Please update if that helps, if so we can introduce changes to the upcoming version of OctoPi. |
Hey @guysoft Thanks for you help. -John |
@guysoft I forgot to mention another possible clue. During the bootup of Octopi, the bootup verbose output "hangs" after the last line indicating the startup of mjpg_streamer: DBG(/home/pi/mjpg_streamer/plugins/input_raspicam/input_raspicam.c, worker_thread(), 880): Starting video output That line will just sit there. The login will not come up unless I hit Enter. This may be significant, or I could just be displaying my ignorance. |
@jmpattillo Did you try other solution of increasing the memory to 256? You will need to change part of the line at cmdline.txt |
@guysoft I changed the GPU memory to 256 by editing config.txt, and added bcm2708.w1_gpio_pin=18 to the end of cmdline.txt. I rebooted (of course), but neither solution worked. This seems pretty strange to me, exact same hardware and software, but different results. I would suspect that there is maybe something very strange wrong with my camera module, but @carbuthn indicated that he had tried two different camera modules. |
I'll see if I can reproduce this tomorrow. Just to make sure, used image is |
Yes @foosel I used OctoPi 0.9.0 The raspbian image I used on the other card was also from June 20th. Thanks for your help. |
I figured it out I think. There is a conflict between mjpg_streamer and raspistill. I was using raspistill to test that my camera was properly installed. If I kill mjpg_streamer, the raspistill will work. mjpg_streamer then restarts itself after a couple of minutes. Update: Yep, that was it. Everything works now. Sorry for the confusion, and thanks for the help. |
I was just going to post this I quickly whipped up (fresh install of vanilla octopi 0.9.0, B+ board and RaspiCam, all default settings, nothing modified at all) but apparently you found your issue ;) In general: That camera is not something that can have shared access -- it's either the mjpg_streamer daemon that ships per default with OctoPi and gets automatically started on bootup, or it's something else like raspistill. If you run one, the other will fail. To test if your setup works, simply switch to the control tab in OctoPrint - it will show the camera's image if it could be properly detected, no need to fiddle around on the command line. @guysoft I assume you can close this now since after rereading the initial issue up above it sounds like that is the same trap @carbuthn ran into. |
Thanks Guy, Gina & jmpattillo, I will try this also as soon I find the right box of stuff (moving and everything is packed up). Sound like that should fix my setup as well. Will also change the memory setting and add bcm2708.w1_gpio_pin=18. Chuck From: Gina Häußge [mailto:notifications@github.com] I was just going to post this https://www.youtube.com/watch?v=EIs7uMK-Ng0 I quickly whipped up (fresh install of vanilla octopi 0.9.0, B+ board and RaspiCam, all default settings, nothing modified at all) but apparently you found your issue ;) In general: That camera is not something that can have shared access -- it's either the mjpg_streamer daemon that ships per default with OctoPi and gets automatically started on bootup, or it's something else like raspistill. If you run one, the other will fail. To test if your setup works, simply switch to the control tab in OctoPrint - it will show the camera's image if it could be properly detected, no need to fiddle around on the command line. @guysoft https://github.com/guysoft I assume you can close this now since after rereading the initial issue up above it sounds like that is the same trap @carbuthn https://github.com/carbuthn ran into. — |
@foosel what would be the next step if when you boot up the fresh install of octopi 0.10.0,switch to the control tab and do not have video. The red light on the raspberry camera is lit but i am getting no video. |
@nkdurrett Not sure about B+, but did you check your powers supply is 2A and you are using a GOOD usb cable (just because it says 2A on it does not mean it is). That tends to be the common problem. |
yeah ive checked all of that and i am still getting error messages. I have On Sun, Nov 23, 2014 at 2:59 AM, Guy Sheffer notifications@github.com
|
There is a small connector between the actual camera and the PCB its Am 23.11.2014 06:54, schrieb nkdurrett:
|
Hello brother, finally i can solve this problem after a lot of hours troubleshooting. I already share it in my YouTube (https://youtu.be/on8UlkRvLok) This problem only occur in camera raspberry pi V2.1 (IMX219) from Element14. But in camera raspberry pi V2.1 from OKdo, i don't get this error So, the solution when error You need some initialization with a works camera (me camera from OKdo).
Notes:
OS Raspberry Pi 4 Model B (4GB)
|
Hey @hanifizzudinrahman this issue is from 2014. The RaspberryPi 2.1 was released in 2016 source: https://www.raspberrypi.org/documentation/accessories/camera.html |
Just purchased and waiting for Mini Kossel to come in. I purchased a Raspberry Pi B+ to drive it and downloaded Octopi image (6-20-14) from Github.
I installed a Pi camera and tried to run Raspistill to test camera but get error messages.
The camera works with the normal Raspian image. I have not tried building form the raspian image, fairly new at programing in the Linux environment.
I have re- downloading the Octopi image, same results.
Do you have any suggestion?
Thanks for your time, and for the effort that you put into this software. It is appreciated. I look forward to trying Octopi out on a new printer.
Chuck
The text was updated successfully, but these errors were encountered: