Show Posts
Pages: 1 ... 21 22 [23] 24 25 26
331  Using Arduino / Project Guidance / Re: Set/Change IP Address Web Form - Ethernet Shield on: March 24, 2011, 03:03:01 am
Aha, I See. Well I found a way to do the same, but I'm using the avr/pgmspace.h library. This way I can put every thing in The Flash Memory with PROGMEM and I let it flow through a buffer of let's say 100 bytes (SRAM).

This should mean I could use your HTML code for the forms. Could you filter them out and post them? Especially t he part where you get the info out of the forms.

Thanks.
332  Using Arduino / Project Guidance / Re: Set/Change IP Address Web Form - Ethernet Shield on: March 23, 2011, 04:46:29 pm
Ah, then it must be a different Ethernet Shield.  smiley

Now you're sending HTML in a different way then I do, I use:

Client.print("<HTML><body>some text or other HTML code</body></HTML>");

Now I was hoping to get help out of your sketch for the forms part, but I can't  smiley-confuse

I'll have to figure it out myself  smiley-sad
333  Using Arduino / Project Guidance / Re: Set/Change IP Address Web Form - Ethernet Shield on: March 23, 2011, 03:02:34 pm
Meanwhile I found out your working on a different Arduino version (mine is 0.22) also I have the new Arduino Ethernet Shield. But the Idea remains the same.

FYI: I thanks to your sketch, I managed to use EEPROM for storing mac, ip, gw, sub and type (static, dhcp or unknown) and showing this info in the webpage.

The sketch starts with setting the pre-sets the first time and writes a knowing bit. The next time it runs, the sketch doesn't use pre-sets, but reads EEPROM: when type is stored as static, it takes static otherwise it takes dhcp.

Now I need to work on the GET forms in html. I haven't found out how to do that yet, but I'll get there.
334  Using Arduino / Programming Questions / Re: Any one know openWRT on: March 23, 2011, 03:50:20 am
Why don't you buy an Ethernet Shield or Wifi Shield and send your data over the network to your computer. Lot's of sketches out there to show you how to.
335  Using Arduino / Project Guidance / Re: Sound recognition. on: March 23, 2011, 03:08:03 am
My guess is, you'll need a full blown computer to have the calculation power. But hey, I have been stunned before with projects I've seen.
336  Using Arduino / Project Guidance / Re: Not sure where to start or what board to get on: March 23, 2011, 03:06:02 am
Just buy a starters kit, you'll find plenty stores in:

http://arduino.cc/en/Main/Buy

And certainly buy the Arduino Cookbook (as mentioned before). You'll have more then enough to start with.

If you want to do web-based stuff, buy an Ethernet Shield
if you want to measure, buy sensors
if want to make stuff move, look into motors ans arduino driven robots
if want to lighten things up, buy leds
and so on ...
337  Using Arduino / Project Guidance / Re: Set/Change IP Address Web Form - Ethernet Shield on: March 23, 2011, 02:58:59 am
@robtillaart

I know  smiley But it really helps to write down this kinds of things. Otherwise I get lost in my own coding  smiley-confuse
338  Using Arduino / Project Guidance / Re: A Must Have: Arduino Cookbook on: March 22, 2011, 06:41:25 am
I bought the book yesterday on Amazon.com and downloaded it on the iPad Kindle app. ($22.53). Already I found what I needed. Great book indeed and yes, I too would like downloadable sketches.  smiley-lol
339  Using Arduino / Project Guidance / Re: Set/Change IP Address Web Form - Ethernet Shield on: March 22, 2011, 06:34:29 am
Ok, got your code, reading it right now.  smiley-eek

Did you change Ethernet.cpp to get this working? And what exactly did you change?

The first thing I'll be doing is to try remaking you sketch, so I understand everything happening. Then I'll put all your HTML in Flash memory, so we have more SRAM. Also I want to have a separate SETUP page, which won't be to hard, because I bought the Arduino Cookbook (amazone kindle for ipad). It has a sketch that just does that.

This way you can have the SETUP page at http://IP-address/setup and your normal webpage at http://IP-address.

If you don't mind, I'll be posting this in my own Topic and If I make progress I'll post it here too.

So this is the idea I would use (this is not a sketch):

READ EEPROM "TYPE"
   IF "type" = "" (empty)
      THEN USE PRESET (IP=192.168.1.2, MASK=255.255.255.0,GW=192.168.1.2,MAC=DE:AD:BE:EF:FE:ED)
   ELSE
      IF "type" = "STATIC"
         IF "IP" = "" (empty)
            USE PRESET AND SET TO USE AND PUBLISH
         ELSE READ EEPROM "IP" AND SET TO USE AND PUBLISH

         IF "MASK" =""  (empty)
            THEN USE PRESET AND SET TO USE AND PUBLISH
         ELSE READ EEPROM "MASK" AND SET TO USE AND PUBLISH

         IF "GW" = "" (empty)
            THEN USE PRESET AND SET TO USE AND PUBLISH
         ELSE READ EEPROM "GW" AND SET TO USE AND PUBLISH

         IF "MAC" = ""(empty)
            THEN USE PRESET AND SET TO USE AND PUBLISH
         ELSE READ EEPROM "MAC" AND SET TO USE AND PUBLISH

      ELSE USE DHCP AND SET TO USE AND PUBLISH (on the setuppage)

START WEBPAGE
   IF URL= IP
      GOTO WEBPAGE (made by user, and what if user wants multiple pages?)
   ELSE
      IF URL = IP/setup (like in http://192.168.1.2/setup)
         GOTO SETUPPAGE
      ELSE SHOW ERROR PAGE

SETUPPAGE
   USE TYPE, IP, MASK, GW, MAC AND PUBLISH
   SHOW FILLOUT FORM FOR TYPE, IP, MASK, GW, MAC AND PUBLISH
   SHOW SUBMIT BUTTON

WEBPAGE
   USE TYPE, IP, MASK, GW, MAC
   SHOW WEBPAGE (made by user)

SUBMIT BUTTON
   WRITE TYPE, IP, MASK, GW, MAC AND PUBLISH TO EEPROM
   RESET ARDUINO
340  Using Arduino / Project Guidance / Re: Set/Change IP Address Web Form - Ethernet Shield on: March 21, 2011, 08:13:28 am
Hi, I'm very interested in the complete code of this sketch. As you can see in my own post, I'm working on this too:
http://arduino.cc/forum/index.php/topic,55044.0.html

Now maybe we can merge both our sketch. You'll get credit for the code and I'll get credit for the layout  smiley-grin
The only thing I'm struggling with, is the forms and the way to submit them.
341  Using Arduino / Project Guidance / Re: Configuring Arduino ethernet shield IP (not MAC) via web browser on: March 21, 2011, 08:06:17 am
It seems like I'm not the only one trying to do this. I've also been reading the post above. I''l try to merge your findings and the ones in the topic posted above.

This is my post on my progress: http://arduino.cc/forum/index.php/topic,55044.0.html
342  Community / Exhibition / Gallery / Re: Big font and big number on 16X2 LCD Alarm clock example on: March 21, 2011, 02:51:33 am
uehm, I don't see the URL, you probable made a mistake.
343  Community / Exhibition / Gallery / Re: GBCartRead: Arduino based Gameboy Cart Reader on: March 20, 2011, 03:45:45 pm
Cool project.
344  Community / Exhibition / Gallery / Re: An embedded web page with image on: March 20, 2011, 02:57:02 pm
Yes, true, but I'm thinking on something different. Actualy all of my projects so far have been for learning on the parts I'll need for my real project: measuring the level of our diesel tanks. It will have an LCD screen showing the level in percentage, but also a webpage showing the 2 tanks with an image and the actual percentage shown in the picture. So that will look like your battery.  smiley-grin
345  Community / Exhibition / Gallery / An embedded web page with image (not using SD) on: March 20, 2011, 12:25:12 pm
While working on another project (http://arduino.cc/forum/index.php/topic,55044.0.html, I've been looking for a way to get an image and HTML code into the Arduino sketch (NOT on a SD-card) with the minimal use of SRAM and I pulled it off.

You can read about this project on my website: http://www.jo3ri.be/arduino/arduino-projects/an-integrated-webpage-with-image and the blog I wrote about it: http://www.jo3ri.be/arduino/blogduino/usinglesssramonthearduino

This is the result:



The original GIF image with 32 colours is about 7884 bytes, but we are using a buffer of only 250 bytes. The image has been divided in 8 smaller images of approximately 1K. Those smaller images are being put next to each other when the client request the page. Now each image has been put in an array of 8 (again). The buffer has to be as big as the longest prog_char + 1, but I have put about 10 bytes more in the buffer (250 bytes).

Now If you're smart, you can even reduce Flash memory, when you have a picture with repeating parts in it.

I hope this is helpful for al those people using a webpage for there Adduino projects with buttons and other small images.

The sketch is on my project page, but I have attached here too.
Pages: 1 ... 21 22 [23] 24 25 26