Notifications
Clear all

Pi 3, Pi Cam V2, Octoprint HELP  

  RSS
John Doe
(@john-doe-18)
Active Member
Pi 3, Pi Cam V2, Octoprint HELP

Hi everyone, looking for some help here.

I have a Raspberry Pi3 setup running octoprint using the octopi image flashed directly to the Pi's SD.

Everything runs fine however I got a PiCam v2, plug it into the camera ribbon cable slot, reboot the system and I cannot get an image to show up.

I tested an old logitech USB webcam in the Pi's USB slot and after rebooting with that plugged in I straight away get an image in octoprint.

I'm at my whits end right now.

If anyone has experience with Octopi or just Raspberry Pi and Cam's in general i'd appreciate any help.

This is octoprint - http://octoprint.org/download/

Cable orientation pictures.


-Thanks.

Opublikowany : 05/08/2017 12:51 pm
AJS
 AJS
(@ajs)
Noble Member
Re: Pi 3, Pi Cam V2, Octoprint HELP

I have a Pi Cam v2 running.

Check the ribbon cable at both ends to make sure it is inserted correctly.

I did blow one Pi Cam V2. It was working fine, and I went to do a focus adjust, and it died. Purchased a new one and it has been working since. Not sure at all what I did wrong with that. (Have not tried to adjust focus on the new one.)

Not much help. Sorry.

Any advices given are offered in good faith. It is your responsibility to ensure that by following my advice you do not suffer or cause injury, damage or loss. If you solve your problem, please post the solution…

Opublikowany : 05/08/2017 2:46 pm
John Doe
(@john-doe-18)
Active Member
Topic starter answered:
Re: Pi 3, Pi Cam V2, Octoprint HELP

Unfortunately I've tried 3 ribbon cables and 2 cams no joy.

Opublikowany : 05/08/2017 4:38 pm
PJR
 PJR
(@pjr)
Antient Member Moderator
Re: Pi 3, Pi Cam V2, Octoprint HELP

I think you may have to change the config file to switch from a web cam to a Pi cam. You also set the resolution there.

Peter

Please note: I do not have any affiliation with Prusa Research. Any advices given are offered in good faith. It is your responsibility to ensure that by following my advice you do not suffer or cause injury, damage…

Opublikowany : 05/08/2017 5:36 pm
cory.w
(@cory-w)
Estimable Member
Re: Pi 3, Pi Cam V2, Octoprint HELP

I hope you know how to SSH, or I think you can find the file to modify by putting the SD card in a computer and going through file explorer

Login to the Pi via SSH and then "sudo nano /boot/octopi.txt"

Replace everything in that file with this...it will configure to use the rasp pi cam with a 1080x720 resolution @ 15fps and auto exposure and WB

### Configure whether to automatically resize the SD on first boot
#
# Available options are:
# - yes: perform resize
# - no: don't perform resize
perform_resize="yes"

### Configure which camera to use
#
# Available options are:
# - auto: tries first usb webcam, if that's not available tries raspi cam
# - usb: only tries usb webcam
# - raspi: only tries raspi cam
#
# Defaults to auto
#
camera="raspi"

### Additional options to supply to MJPG Streamer for the USB camera
#
# See https://github.com/foosel/OctoPrint/wiki/MJPG-Streamer-configuration
# for available options
#
# Defaults to a resolution of 640x480 px and a framerate of 10 fps
#
#camera_usb_options="-r 640x480 -f 10"

### Additional webcam devices known to cause problems with -f
#
# Apparently there a some devices out there that with the current
# mjpg_streamer release do not support the -f parameter (for specifying
# the capturing framerate) and will just refuse to output an image if it
# is supplied.
#
# The webcam daemon will detect those devices by their USB Vendor and Product
# ID and remove the -f parameter from the options provided to mjpg_streamer.
#
# By default, this is done for the following devices:
# Logitech C170 (046d:082b)
#
# Using the following option it is possible to add additional devices. If
# your webcam happens to show above symptoms, try determining your cam's
# vendor and product id via lsusb, activating the line below by removing # and
# adding it as shown examplatory.
#
# If this fixes your problem, please report it back so we can include the device
# out of the box.
#additional_brokenfps_usb_devices=("046d:082b" "aabb:ccdd")

### additional options to supply to MJPG Streamer for the RasPi Cam
#
# See https://github.com/foosel/OctoPrint/wiki/MJPG-Streamer-configuration
# for available options
#
# Defaults to 10fps
#
#camera_raspi_options="-fps 10"
camera_raspi_options="-x 1080 -y 720 -fps 15 -quality 80 -ev +1 -ex auto -mm average $

Opublikowany : 05/08/2017 7:00 pm
John Doe
(@john-doe-18)
Active Member
Topic starter answered:
Re: Pi 3, Pi Cam V2, Octoprint HELP

Tried that, still nothing. I can confirm the changes were made because with that config file my USB cam doesn't load.

Opublikowany : 05/08/2017 8:17 pm
PJR
 PJR
(@pjr)
Antient Member Moderator
Re: Pi 3, Pi Cam V2, Octoprint HELP

Try a different camera and/or cable.

Peter

Please note: I do not have any affiliation with Prusa Research. Any advices given are offered in good faith. It is your responsibility to ensure that by following my advice you do not suffer or cause injury, damage…

Opublikowany : 05/08/2017 8:35 pm
cory.w
(@cory-w)
Estimable Member
Re: Pi 3, Pi Cam V2, Octoprint HELP

Did you enable the camera in the main raspberry pi setup menu?

sudo raspi-config

Opublikowany : 05/08/2017 8:39 pm
cory.w
(@cory-w)
Estimable Member
Re: Pi 3, Pi Cam V2, Octoprint HELP

Also, try unplugging power for the reboot instead of just using octoprint menu. That has performed a better reboot sometimes.

Opublikowany : 05/08/2017 8:40 pm
John Doe
(@john-doe-18)
Active Member
Topic starter answered:
Re: Pi 3, Pi Cam V2, Octoprint HELP


Did you enable the camera in the main raspberry pi setup menu?

sudo raspi-config

Yes

Opublikowany : 05/08/2017 8:48 pm
John Doe
(@john-doe-18)
Active Member
Topic starter answered:
Re: Pi 3, Pi Cam V2, Octoprint HELP


Try a different camera and/or cable.

Peter

I've tried 3 ribbon cables and 2 cams

Opublikowany : 05/08/2017 8:48 pm
Share: