Go Down

Topic: Arduino, camera, photo storage and transfer with bluetooth (Read 3583 times) previous topic - next topic

sam-r-90

I am working on a project where the arduino executes a program, it will take a photo, store it and then maybe a minute later send it over bluetooth to a phone. I have read quite a bit in the forums where it seems that arduino is not the best choice here. I have thought about a raspberry pi but if at all possible i would like to use the arduino. I would use a low res photo like a QCIF but even then i understand that the boards don't have enough memory to store the photo. I have seen sd card reader shield on the web, could one use these? Has anyone got any suggestions?

Thank you

PaulS

Quote
I would use a low res photo like a QCIF but even then i understand that the boards don't have enough memory to store the photo.
If it's low enough resolution, the Arduino can store the image. Say something like 20 by 20 black and white.

Quote
I have seen sd card reader shield on the web, could one use these?
Yes.

Quote
Has anyone got any suggestions?
Start with good requirements and realistic expectations.
The art of getting good answers lies in asking good questions.

Grumpy_Mike


sam-r-90

Thank you for the suggestions. I am assuming then that i forget bluetooth for the photo transfer and do it over the wifi sd card which would create its own wifi network. I could then still use the bluetooth to execute the program in the first place.

Grumpy_Mike

You do not have to have an SD card in a Wi-Fi shield. You can add an SD card any time you want.

sam-r-90

Not too sure if i understand. Going back to your link it looks feasible, i'm not sure if i need the data logger as i could just use a SD card shield. I guess here the wifi sd card would transfer the image straight away instead of me relying on bluetooth. Is this correct? Or did you mean using a wifi shield....

Although just checking out the wi-fi sd cards they are rather expensive and i don't think they will fit in my project budget.

raschemmel

Talking about transferring images without talking about reconstructing them is somewhat pointless isn't it?
What file format are you going to store it in ? How are you going to read that file format ? What about the same questions regarding the transfer from arduino to iphone. Are you an iphone app developer ? (or are we talking about ANDROID phone ?)
Arduino UNOs, Pro-Minis, ATMega328, ATtiny85, LCDs, MCP4162, keypads,<br />DS18B20s,74c922,nRF24L01, RS232, SD card, RC fixed wing, quadcopter

Grumpy_Mike

Quote
I guess here the wifi sd card would transfer the image straight away
No.
The SD card is just that, an SD card. Even though it is on the same shield it has no connection with the Wi-Fi part unless you program one up.

sam-r-90

Well i was planning on using an iPhone as that is all i have but it looks like it makes think trickier, i will look into using a mac or laptop instead. Well i thought the image would save directly onto the SD card and then the arduino would send each pixel value going along the rows to the phone/laptop. From here i would have to reconstruct it but i would know the pixel value and location so it shouldn't be too bad. I think the main bit is getting the image off the arduino.

http://www.arducam.com/arducam-bluetooth-module-wireless-image-system/
I found this which seems to be what i am looking for, although it isn't entirely clear what it happening...

https://forums.adafruit.com/viewtopic.php?f=25&t=51564
also this talks about it...

Grumpy_Mike

Quote
Well i thought the image would save directly onto the SD card
Only if you write code to do it.

Quote
then the arduino would send each pixel value going along the rows to the phone/laptop.
No those cameras do not send images in pixel format, they output a jpeg file. This is encoded and there is nothing an arduino can do to turn them into pixels. You need to transfer the bytes saved just like transferring any other file.

Quote
http://www.arducam.com/arducam-bluetooth-module-wireless-image-system/
I found this which seems to be what i am looking for, although it isn't entirely clear what it happening...
Does that do what you want?

sam-r-90

Ah ok i didn't realise hat they output jpeg and not the pixel values. Would finding a camera which outputs the pixel values be easier?
It did look like it is what i wanted but it wasn't very clear.... i'll go over it again and see if i can understand it better.
Going forward with the jpeg method, as long as i kept the file reasonably small i would be happy with a transfer time of up to 1.5/2 minutes.

http://peace.dreadeye.com/2012/10/arduino-processing-jpeg-serial-tranfer.html
This link seems to show how to do the processing side i.e. changing the bytes i receive to processing it into a jpeg on the computer side. I  have followed a few tutorials which show how to transfer a file over bluetooth from sd card/arduino to computer, it's the processing is which isn't covered much.

Grumpy_Mike

Quote
changing the bytes i receive to processing it into a jpeg on the computer side.
There is absolutely nothing to do the byte you receive is the byte you save to the file. That's it.

To display the image you just do it like any other displaying image thing in processing, just use the file you saved the bytes to.

zdoucha

Hello, this is my first arduino project: sending a file (jpeg, pdf, txt) from an arduino sd card module to android phone using arduino uno and bluetooth module HC-05

have you any suggestion about the android app to receive the file ?
thank you

lolantana

you can retrieve data by yourself. There are programs to do that. For example My Device Manager

I used it few times.it's free and it works as good as can be expected. The main thing is to stop using the external hard disk until you use this tool, and avoid writing any files to it.

Go Up