Send text file and image file from Arduino to webserver

Our project is to capture photos and sense temperature and humidity of a shed and send it to a an external webserver.
We are using an arducam to capture images and DHT11 sensor for humidity and temperature.
Everything is done on a arduino uno.
We have even successfully saved the image and text file on the SD card using a datalogger shield.
Need help sending it to an external server using api integration.
Please suggest how we should proceed.

Are you required to setup the server hardware and software, or does that already exist?

Are you required to use IP networking?

The server exists we have a website with an api endpoint and a sql database to store image and text file.

Are you using a ethernet shield with a SD card interface?

Usually an API is supplied with short example programs that show the basic usage. Have you looked for those?

Is the API defined? That will have to be done before you can send data to it.

I am using a datalogger shield, i am not sure if we can use 2 shields together, can we??

I have a external webserver already existing and a api endpoint defined as well.

It depends, some shields work together OK, some need to be modified using jumper wires to avoid pin conflicts. Some have libraries that use lots of memory and therefore don't work well with other shields.

Post links to the hardware you are currently using.

Arduino Uno-

Datalogger Shield-

ArduCam-

Esp8266-

In addition to that aDHT11 sensor also-

Thats all the hardware i am using currently.

Use the ESP8266 WiFi to make a connection to your server API.

I did get that part, the part where i am confused is how to send image to the webserver after fetching it from the sd card of the datalogger shield.
This is a gray area for me and i am a bit confused on how i should proceed.
How do i transfer images from arduino uno to esp8266?
How to send images?
How to write post request for webserver?
These are some questions that are troubling me

I did get that part, the part where i am confused is how to send image to the webserver after fetching it from the sd card of the datalogger shield.
This is a gray area for me and i am a bit confused on how i should proceed.
How do i transfer images from arduino uno to esp8266?
How to send images?
How to write post request for webserver?
These are some questions that are troubling me

Using this

And words like "FTP client".

Why use an Uno?

https://www.esp8266.com/viewtopic.php?t=13132

Is this a student project?
If so post all the requirements you have been given.

Yes its a student project
Requirements are

  1. to click an image using arducam,
  2. monitor temperature and humidity using DHT11
  3. Save image and sensor values in SD card of datalogger shield, image file in binary format and sensor reading in .txt format.
  4. Fetch these two files from the sd card and post it to an external webserver provided by a client using an api endpoint for remote monitoring.

This is the brief given to us, Step 1,2 and 3 are done need help to complete 4

Are you expected to send files from the Uno to the ESP8266 using the serial port?

The usual way of sending a files via a serial port involves using software such as zmodem ZMODEM - Wikipedia on both ends, however I don't know if there is a version that fits in the small memory available on the Uno. In particular you have to consider that some memory is already being used by your SD card and DHT11 libraries.

An alternative is to ignore the Uno and attempt to use the data logger shield directly with the ESP8266. If the shield is an exact clone of the Adafruit version then internally it is using 3.3v, therefore you can make it work with the ESP8266 by connecting the SPI and I2C pins using jumper leads and applying 5v to the onboard 5v to 3.3v regulator.

Both seem convoluted solutions so I suspect that you have been given hardware that doesn't make sense given the project requirements. Talk to your supervisor and find out if you were supposed to have a data logger that works directly with the ESP8266.

This seems to be a particularly common aspect of such student projects. :face_with_raised_eyebrow:

The "test of fire". :rofl:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.