Hi folks,
My goal's to have the JPEG camera capture & save an image to a remote device;
- for sandbox purposes, I'd just like to save the image to my computer
[yep, I know I just do this with a webcam. Again, just to get a handle on the code on both ends that would do this as well as eliminate the possibility of other issues in the flow]
- the END goal is to send the captured image over bluetooth to a mobile app to display. Since I'd like to get a handle on the whole process first, I'd *just* like to generalize it to saving the image to the computer.
Right now, I'm using a
Duemilanove board with a
ATMEGA328P and a BlueSMIRF gold bluetooth module.
I've got the Arduino communicating with my computer through the bluetooth module perfectly right now; able to send commands through the serial terminal and receive a response.
I've been searching all around for an updated example that might point me in the right direction, but I've had no luck so far. I've looked at the Adafruit tutorial for the JPEG TTL Camera module, but I've yet to be able to have the code compile properly. In the Snapshot example code, I remove all of the 'SD' references and attempt to grab the saved binary data from the camera, but I only get compilation errors.
I've also tried Linksprite's example code for the TTL camera they provide (I have both); but it looks as though their code is also out of date. I've changed all of the NewSoftSerial library references to SoftwareSerial, and replaced the mySerial.print(<hex>, BYTE) with mySerial.write(<hex>), but I'm prompted with an 'ambiguous' reference to the write function error. (though I'm not sure which other 'write' function I could be referencing...)
So, my question remains:
Does anyone have an up-to-date example / code sample they can point me to or perhaps advice on how I can accomplish my goal of capturing the image using the JPEG camera and sending it [over bluetooth / serial connection] to a remote device [my computer / mobile device]?
Thanks very much for your time
