This project is an example of an Ethernet shield.
The user can monitor sensors easily by using the Arduino platform through the Web.
This project would be included in the Sensing & Gathering category of WIZnet Museum.
Google Docs is a great free service that fits the bill perfectly. There are tons of tutorials showing how to do this HOWEVER they are all out of date due to Google changing things up on their forms. So I am here to re-write everything I learned to help you get started and logging real time to the internet. You will need: Arduino R3 Ethernet shield (probably can be done with a YUN or WiFi, but I used Ethernet.) ** I added a screenshot of my dashboard which displays all the data that I am collecting. This is all based on 3 temperature sensors.
Get the Required Account
Get the required accounts:
1. Google. Get a google account. You should probably have one by now. FREE
2. Get a pushingbox account via pushingbox.com. FREE and it uses your google account for user info.
Create a Google Form and Get FORM KEY
- Inside of Google Drive you can create a ‘Form’ . For the sake of making this simple, I will create a single question select the short answer response form as shown. When that is complete, click send form.
- A screen will pop up which will have an option to show URL. Click that(shorten URL) then Copy the URL that spits out.
- Past that into your web browser and you will find yourself in the form you created.
- From here you will need to right click and select ‘Inspect Elements‘. This will load the HTML code for the form. You are looking for the line of code that is defining the Text input box. You will find a section of the code that is “entry.1315919601
” (numbers are dependent on you)Take note of this. I will be referring to this as “FORM KEY”
Pushingbox, Service and Scenarios
- Head over to pushingbox.com and log in with the same google information that you created the form with.
- Go My Services and create a new custom service. You will need to go to your google form and submit a response. This will load the response page of your form. Copy this URL and past it into the pushing box Service URL field. Name it whatever you want and set method to GET. Done.
- Now go to my scenarios.
- Just Give a name and ADD
This is where the FORM KEY will be used. Following my template, past this into the scenarios field to add:
Change the bold text with your FORM KEY that you gathered in step 2. Leave the ? and the other stuff, just replace the bold with your stuff. Now copy that whole string Click ADD ACTION and past into the DATA scenario field. Now click SUBMIT.
- Then it will say nice job! or something positive like that. Then select the Service you created only moments ago. This will give you a DEVICE ID remember this, in fact. write it down or copy and past it into a note pad doc. This will be used in the Arduino code. Congrats, you are done with that and now its time to code the Arduino.
YOU CAN CHECK WHETHER YOU CORRECT
Past below format in your browser
Above will upload 12 to your Google form
CODE THE ARDUINO
I have attached my very simple code to run this example. You will find a section of things to be edited. This code will send responses to the form you created in the form of data. You will see google then creates a spread sheet and logs all the responses WITH time stamps! Use this to create data logs of temperature, light levels, humidity, motion whatever you want!
The example attached uses a analog sensor.
Can easily be modified for something else.
I hope this lets you walk through the steps and get some data posed to the web.
If you want to know more in detail, refer to