Hi everyone
I am working on a project that needs to capture pictures and the upload them to a server by Wireless shield via internet.
But I am a beginner in both arduino and php.
Any ideas or tutorials would be helpful
Thank you
Hi everyone
I am working on a project that needs to capture pictures and the upload them to a server by Wireless shield via internet.
But I am a beginner in both arduino and php.
Any ideas or tutorials would be helpful
Thank you
You might consider first taking and saving the picture, and then do the transfer.
So this:
https://learn.adafruit.com/ttl-serial-camera/using-the-camera
And then sending the picture:
Arduino WiFi Shield and Web Server Tutorial - Orange County Web Developer
I have allready used the wifi shield but man sending pictures can get really complicated, so I don't think I can help much here.
Hope those 2 tutorials will help. Anyway good luck.
I would first setup the Arduino to capture the picture and save with a name appending date/time as a par on a sd card. With a web server code on the Arduino, The other machine could use html to look at the list of photos and select the latest date/time and download. Reason is the Arduino would not wait for the other computer and several other machines could download . One thing to remember is to clean/delete old pictures say once per day or more often if the pictures are captured more frequently. If you give more information, this could help design better. Good luck and hope this helps.
Thank you all for your helping reply
Mr Clem Martins I want a way to allow the Clint to look at the SD card and check the new photos is that possible via PHP and MYSQL ?
If the SD card is on the Arduino and it has a network interface, it is a relatively simple matter to provide a basic web interface to retrieve and send the file to the caller as a mime attachment
Here is an example of serving up a web graphical page from an Arduino (Albeit without an SD card) but there are plenty of examples of that too and if needed I can post one in a few days
and the root of the tutorials here: http://www.element14.com/community/groups/arduino/blog/2014/06/09/fast-track-to-arduino-programming
it’s a work in progress so new tutorials can be added at any time
hope this helps
Peter
I am working on code that can do what you need in python. Do you have any networking experience? I need to know what your network looks like so I can configure for you...
well , I am trying to do it with php and apache server on my local network . But still I did not progress much, could you tell me how you are planning exactly to upload photo through the shield.
I have coded a web server with 30+ lines in python on RaspBerry Pi. It can server up data from any directory as HTML. I need to code more to upload/download data...
this may help
http://www.element14.com/community/groups/arduino/blog/2014/06/09/fast-track-to-arduino-programming
it has examples of using a web page to pull from a data source like an arduino with a network card
hope it helps
Hi,
Also have a look at this post http://www.theengineeringprojects.com/product/getting-data-webserver-using-arduino-wifi
Here, they have communicated with webserver via GET and POST commands, which I haven't find anywhere else.
Thanks.
Try a few of my tutorials, I include Ethernet adapters etc for web serving, the principal is basically the same as far as the coding for the get and puts are concerned
Hope it helps
Peter