rollerrolol
Posts: 8
Joined: Sat Feb 07, 2015 10:12 pm

RPi cam module producing bad images

Fri Sep 30, 2016 9:43 am

Hello,
I have a Raspberry Pi B and the 5 megapixels camera board. However I'm unable to capture any usable photos or videos, they always get green artifacts or are just really really pixelated. I have tried two raspberry boards and two cameras and had the same problems. I'm using Raspbian Wheezy which is fully updated.

I also have a Logitech C270 camera and it also gives a lot of artifacts when connected to the same pi. I have tried at least five usb power supplies with different cable lengths and they seem to make no difference.
The pi is connected to a 3G router with a 20m cat5 cable but using a 1m cable made no difference. I have been using raspistill and raspivid with the pi cam and fswebcam with the logitech.

Here is a sample image: http://i64.tinypic.com/20iohu.jpg

What could I do to make the cameras work?

User avatar
topguy
Posts: 6527
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: RPi cam module producing bad images

Fri Sep 30, 2016 10:33 am

Have you tried with Raspian Jessie ? I dont know if newer models of the camera require newer firmware to work properly.

User avatar
RaTTuS
Posts: 10563
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: RPi cam module producing bad images

Fri Sep 30, 2016 10:35 am

what power supply are you using ?
this could be a brown out situation,
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

rollerrolol
Posts: 8
Joined: Sat Feb 07, 2015 10:12 pm

Re: RPi cam module producing bad images

Fri Sep 30, 2016 10:59 am

I will try and upgrade to Raspbian Jessie. I just think that the Logitech webcam should work with almost any version.

I have tried two Nokia usb chargers with their own MicroUSB cables, one 5V 2A usb power supply and one 5V 1A usb power supply. If they all are too bad the pi is really picky... Would it help to add a capacitor or something?

rollerrolol
Posts: 8
Joined: Sat Feb 07, 2015 10:12 pm

Re: RPi cam module producing bad images

Sat Oct 01, 2016 8:58 pm

Hello,
I have now installed Raspbian Jessie and it didn't help. Any suggestions?

User avatar
topguy
Posts: 6527
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: RPi cam module producing bad images

Sat Oct 01, 2016 10:32 pm

( grasping at straws )
Do you transfer the files from the Raspberry to another PC before viewing them ?
How do you transfer the files from the Raspberry ?

rollerrolol
Posts: 8
Joined: Sat Feb 07, 2015 10:12 pm

Re: RPi cam module producing bad images

Sun Oct 02, 2016 7:06 am

Thanks, that was the problem and now I feel stupid..

I was using wput to transfer all photos and videos to a ftp server and viewing them from there. Now when I look at the images directly on the pi through vnc they are just fine, so the ftp transfer breaks them.

So I must start to transfer them over ssh or something, strange tho, I've been using wput just fine on Openwrt for years.

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 9069
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: RPi cam module producing bad images

Sun Oct 02, 2016 7:13 am

Using Ascii mode for ftp? That was always the annoyance when I was doing command line ftp mumble mumble years ago back at uni.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: RPi cam module producing bad images

Sun Oct 02, 2016 10:19 am

6by9 wrote:Using Ascii mode for ftp? That was always the annoyance when I was doing command line ftp mumble mumble years ago back at uni.
You can set ascii or binary mode for wput.

Code: Select all

	
−A
−−ascii
Wput automatically determines which transfer−format to use, by looking at the file-extensions. Certain files are recognized as ASCII. These are: txt, c, java, cpp, sh, f, f90, f77, f95, bas", pro, csh, ksh, conf, htm, html, php, pl, cgi, inf, js, asp, bat, cfm, css, dhtml, diz, h, hpp, ini, mak, nfo, shtml, shtm, tcl, pas Specifying this flag forces Wput to use ASCII mode file transfers.

−B
−−binary
Specifiing this flag forces Wput to use BINARY mode file transfers.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

rollerrolol
Posts: 8
Joined: Sat Feb 07, 2015 10:12 pm

Re: RPi cam module producing bad images

Sun Oct 02, 2016 12:02 pm

Thanks, the -B option did the trick.

User avatar
RaTTuS
Posts: 10563
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: RPi cam module producing bad images

Mon Oct 03, 2016 6:59 am

ftp is bad IMO - stick with scp these days
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

Return to “Camera board”