Problem with TTL Serial JPEG Camera and Arduino Yun

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
Zeina
 
Posts: 16
Joined: Sun Mar 08, 2015 10:04 am

Re: Problem with TTL Serial JPEG Camera and Arduino Yun

Post by Zeina »

does that mean there is a problem with the camera !!!!

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Problem with TTL Serial JPEG Camera and Arduino Yun

Post by adafruit_support_rick »

I'm thinking that the serial interface on the camera isn't working properly.

User avatar
Zeina
 
Posts: 16
Joined: Sun Mar 08, 2015 10:04 am

Re: Problem with TTL Serial JPEG Camera and Arduino Yun

Post by Zeina »

Ok , thank you so much for ur help

User avatar
rengelking
 
Posts: 9
Joined: Wed Dec 30, 2015 10:50 am

Re: Problem with TTL Serial JPEG Camera and Arduino Yun

Post by rengelking »

adafruit_support_rick wrote:You can't use pins 2 and 3 on the Yun for software serial. Instead, connect the camera TX to pin 8 and the camera RX to pin 7.

Code: Select all

SoftwareSerial cameraconnection = SoftwareSerial(8, 7);
Awesome! Thanks for this tip, saved me a lot of time and soldering. Camera TX (GREEN on pc board version, or WHITE on outdoor version) can also go to pin 9, 10, 11, 14, 15, or 16 on the Yun for the RX to get the interrupt using Softserial. Be sure to split the Yun TX voltage to the camera RX to ground using the included resistors.

User avatar
maggie1510
 
Posts: 4
Joined: Mon Jul 04, 2016 6:24 am

Re: Problem with TTL Serial JPEG Camera and Arduino Yun

Post by maggie1510 »

Hello, I have a problem with the snapshot example:
I have used pins 8 and 7 as suggested. It all works well till the end, but the image is not saved on the SD card. Different images are taken, since the size in the serial monitor is different from time to time but when I insert the SD card in my laptop it's empty. Can someone please help me?
Thank you very much in advance.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Problem with TTL Serial JPEG Camera and Arduino Yun

Post by adafruit_support_rick »

Are you closing the file before you remove the card?

User avatar
maggie1510
 
Posts: 4
Joined: Mon Jul 04, 2016 6:24 am

Re: Problem with TTL Serial JPEG Camera and Arduino Yun

Post by maggie1510 »

Yes, as I said I just changed the pins (7 and 8 instead of 2 and 3) but the rest of the sketch is the same as the example one.
The file's closure happens before the serial monitors prints :" done!" (Theoretically..)

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Problem with TTL Serial JPEG Camera and Arduino Yun

Post by adafruit_support_rick »

You're using a Yun? Are you using the SD card on the Yun, or are you using a separate SD card?
Is an empty file created on the SD, or is the SD entirely blank?

User avatar
maggie1510
 
Posts: 4
Joined: Mon Jul 04, 2016 6:24 am

Re: Problem with TTL Serial JPEG Camera and Arduino Yun

Post by maggie1510 »

I'm using the SD card on the Yun and it is entirely empty, not with empty images.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Problem with TTL Serial JPEG Camera and Arduino Yun

Post by adafruit_support_rick »

On the Yun, you have to go through the bridge to linux to use the SD. You can't just access it directly from Arduino, which is what the snapshot example does. It's only connected to the linux chip. I'm surprised you're getting past the point where the sketch checks for the SD card.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”