I am making a project and I've explored Arduino just recently. I've made a basic digital water meter using Arduino Uno R3 and an LCD keypad shield. How do I show the data on the LCD in a webpage? Basically, what I want to show is the water usage/total amount every 5 minutes. My LCD is showing the following data:
L/m, total liters consumption, total amount (in our local currency) of the bill.
How do I show this on a webpage and what materials do I need?
You are going to need a network device such as an ethernet or wlan card.
The simplest option is to run a web client to post your data to a remote web server and view it there via a browser.
Another option is to run a web server locally which presents your data to connecting web browsers.
6v6gt:
You are going to need a network device such as an ethernet or wlan card.
The simplest option is to run a web client to post your data to a remote web server and view it there via a browser.
Another option is to run a web server locally which presents your data to connecting web browsers.
So finally, I am using LCD IIC 1602 as my LCD to display the data and wants to use ETHERNET SHIELD DFRDUINO V2.1 SUPPORTS MEGA AND MICRO SD so I can connect it to the internet. I am a blank sheet of paper when it comes to this (our professor just suddenly wanted us to make a project) so I have a few questions that I would be very happy if you could answer:
How to connect this Ethernet Shield when I want to connect the LCD as well?
How to run a web client to post my data to a remote web server?
If your LDC is an I2C type, then it uses only pins A4 and A5 which should leave enough for your Ethernet card. Maybe you put the ethernet shield directly on the Uno and connect the LCD with jumpers.
Once you have solved that, you should find a Web Client sample code, say here to retrieve something from a web page using GET. (The example is not perfect - you can't use Google for testing because it now uses HTTPS:// security ).
Once you do that, progress on to using GET to send data (via a web page) to a web server. There are test services around example: link which you may be able to try without a subscription.
I suggest that you work with a new sketch to start with which is dedicated to testing the ethernet shield, and once you have understood all that, then try to integrate the water usage code into it.
6v6gt:
If your LDC is an I2C type, then it uses only pins A4 and A5 which should leave enough for your Ethernet card. Maybe you put the ethernet shield directly on the Uno and connect the LCD with jumpers.
Once you have solved that, you should find a Web Client sample code, say here to retrieve something from a web page using GET. (The example is not perfect - you can't use Google for testing because it now uses HTTPS:// security ).
Once you do that, progress on to using GET to send data (via a web page) to a web server. There are test services around example: link which you may be able to try without a subscription.
I suggest that you work with a new sketch to start with which is dedicated to testing the ethernet shield, and once you have understood all that, then try to integrate the water usage code into it.
Yes, I've got a talk with the store owner where I bought my Arduino. I am doing it this way:
Arduino then on top of it will be the Ethernet shield then the LCD + the water sensor. I'm planning to use Xively (it's okay if I have to pay a bit as long as it can be seen via Google or like a public network). And I have no idea how to use "GET". I'm also not sure where to put the codes for the ethernet shield when I finally have the code for the others.