Page 1 of 1

Arduino Ethernet – Pushing data to a (PHP) server

Arduino Ethernet – Pushing data to a (PHP) server
462

In a previous article, I demonstrated how to use “Data Pull” to read sensor data over a computer network using an Arduino ENC28J60 Ethernet shield/module and some sensors (DS18B20 for example). In this article we will do the opposite: Data Push.

This means that we will make the Arduino send data to our server, which stored the results in a database. For this we will use an Apache, MySQL and PHP setup, which can be a full-size web-server or an easy to install “WAMPServer” setup on your desktop or laptop computer.

Some basic experience with PHP and web-servers will be helpful when working your way through this article.

Arduino Ethernet – Pulling data from your Arduino

Arduino Ethernet – Pulling data from your Arduino
35

Playing with the Arduino is definitely fun, specially when you start looking into fun little add-ons like the Arduino ENC28J60 Ethernet shield/module we will looked.

Now sending a “Hello World!” message might be cool, but it’s hardly functional and since the Arduino is great with all kinds of sensors (like the DS18B20 temperature sensor), why not combine the two to retrieve Arduino Data over a network connection? With that comes the question … how the heck do I get my data? Obviously the “see it my web-browser” is one option, but how about a server application that is to store the sensor data?

In this article we will look at a trick we can use to “Pull” data to our server, server-application or even web-browser. This is probably the easiest way to get your data.

How to measure temperature with your Arduino and a DS18B20

How to measure temperature with your Arduino and a DS18B20
107

In this example project we will be combining an Arduino and a DS18B20 temperature sensor.

The DS18B20 is a so called 1-wire digital temperature sensor. The words “digital” and “1-wire” make this sensor really cool and allows you, with a super simple setup, to read the temperature of one or more sensors. You can even connect multiple devices together, utilizing only one pin on your Arduino.

The more I play with the Arduino, the more fun it gets