Problem with TTL Serial JPEG Camera and Arduino Yun
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Zeina
- Posts: 16
- Joined: Sun Mar 08, 2015 10:04 am
Re: Problem with TTL Serial JPEG Camera and Arduino Yun
does that mean there is a problem with the camera !!!!
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Problem with TTL Serial JPEG Camera and Arduino Yun
I'm thinking that the serial interface on the camera isn't working properly.
- Zeina
- Posts: 16
- Joined: Sun Mar 08, 2015 10:04 am
Re: Problem with TTL Serial JPEG Camera and Arduino Yun
Ok , thank you so much for ur help
- rengelking
- Posts: 9
- Joined: Wed Dec 30, 2015 10:50 am
Re: Problem with TTL Serial JPEG Camera and Arduino Yun
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.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);
- maggie1510
- Posts: 4
- Joined: Mon Jul 04, 2016 6:24 am
Re: Problem with TTL Serial JPEG Camera and Arduino Yun
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.
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.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Problem with TTL Serial JPEG Camera and Arduino Yun
Are you closing the file before you remove the card?
- maggie1510
- Posts: 4
- Joined: Mon Jul 04, 2016 6:24 am
Re: Problem with TTL Serial JPEG Camera and Arduino Yun
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..)
The file's closure happens before the serial monitors prints :" done!" (Theoretically..)
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Problem with TTL Serial JPEG Camera and Arduino Yun
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?
Is an empty file created on the SD, or is the SD entirely blank?
- maggie1510
- Posts: 4
- Joined: Mon Jul 04, 2016 6:24 am
Re: Problem with TTL Serial JPEG Camera and Arduino Yun
I'm using the SD card on the Yun and it is entirely empty, not with empty images.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Problem with TTL Serial JPEG Camera and Arduino Yun
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.
Please be positive and constructive with your questions and comments.