Ethernet project using atmega+ENC28J60

Go To Last Post
10 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hey guys
This is a pure concept question (before ordering parts)
I've thought of an idea where "the www" came in mind.
:twisted:

1. I would like to know, if one is able to access an online google-docs excel sheet, and add data from sensors, using a ENC28J60 and a atmega32 to the sheet?
This would save me time as i dont have to generate

2. Have any tryed to talk together with a android device ?
So I could read data, and turn stuff on and off :)

uC's: Atmega16, 32, 64, 128 and Attiny13
Lang.: C
Interests: Small scale robots AND sensor monitoring system

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I've got an iPhone and use it to control the lights in my garage. Seems you can download the same app for Android:

http://www.rawapps.com/71545/iosc/

There's also Control which is open source and a bit more flexible, but I haven't investigated this one fully yet.
http://charlie-roberts.com/Control/

So it's all do-able and quite easy. I use a enc28j60 with a modified version of the tuxgraphics code on a mega162. I've managed to avoid any programming on the iPhone.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

its possible

the problem is, the google API to access and edit google docs is overly complicated to implement in an 8 bit client. basically, you would have to code the AVR HTTP client to push data using some magic Java code. it is complicated enough to do this in PHP using a PC, let alone in an 8bit micro.

a better solution would be to implement a HTTP POST/REQUEST containing PHP data to a server that has connection to a database (such as mysql)

All you would have to do is contruct the POST packet (with your collected data) and the server will handle the database transaction. Then you can use this database data to construct a google graph using regular PHP code running on the server that can be accessed from your computer.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Kartman: thats atlest half of the way then :)

hzrnbgy: If I dont have a "server"part running all time... would it then be better to add onboard data storage (ram) and then store the data-sets and generate a graph on the micro on demand ?
It's just I have no intention of having a computer running all night... and I would like to access my collected data from everywhere (hence NO .exe program)

uC's: Atmega16, 32, 64, 128 and Attiny13
Lang.: C
Interests: Small scale robots AND sensor monitoring system

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

the micro can not generate the graph, it can hold the data that will be on the graph. you would need an external service to poll this data and draw the graph on a webpage accordingly.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If you want to do data logging and some fancy web stuff, hack a wireless router that runs linux and write your code in whatever language you desire. Power consumption is around 4W. I have my weather station running on a dockstar along with a webcam and another webcam in the garage on a dlink dir320.

You can do graphing via the AVR but you need to add storage using a sdcard, dataflash or a big AVR in order to store the webpage. The graphing is done using SVG or html5. The next problem is enough ram in the AVR to store enough data. Once you start getting fancy, your webpages can get to 100k plus by the time you have some background gifs etc. A little linux box running on an ARM or MIPS has enough ram and grunt to run apache as the webserver and php along with sqlite3.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

And its now I have myself for buing the DIR-615 runnning DDWRT, with no USB or RS232

But i saw this guy:
http://www.youtube.com/watch?v=n...

he have running graphs and live updates on a pic18 ... is that just better than our AVR's ?

uC's: Atmega16, 32, 64, 128 and Attiny13
Lang.: C
Interests: Small scale robots AND sensor monitoring system

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If you want to do anything half interesting, then you really need usb on the wireless router -
I have an inkling you can add usb to the dir615 - checkout openwrt.org . Probably the cheapest router with usb to hack is the tp link wr1043.

Pic18 is in a similar class to the AVR. I didnt say it cant be done, but you're pushed for resources. What exactly was done using the pic18? I dare say the person managed the resources carefully or added extra storage. No magic here.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Just looked at the video - the graphs don't have much data and the webpage is pretty plain so obviously he's fitted it into the 64k of flash and 3668 bytes of ram of the pic.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I can see I can add RS232 to my router... but I have no idea of how I come from there to have a webpage polling the data from the AVR, on the router :(

I dont Ask for much design, I just need a really basic page, just like his... would that then be plausible on the AVR ? if I add external ram fx ?

uC's: Atmega16, 32, 64, 128 and Attiny13
Lang.: C
Interests: Small scale robots AND sensor monitoring system