Loading...
  Show Posts
Pages: 1 ... 21 22 [23] 24 25 26
331  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
332  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
333  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.
334  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
335  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.
336  Community / Exhibition / Gallery / Re: GBCartRead: Arduino based Gameboy Cart Reader on: March 20, 2011, 03:45:45 pm
Cool project.
337  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
338  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.
339  Community / Exhibition / Gallery / Re: Big font and big number on 16X2 LCD Alarm clock example on: March 20, 2011, 06:27:24 am
Hi, very cool. This kind of things make an 16x2 LCD more useful (in my opinion)

So the links as you asked for:

the very first pixel animation: http://arduino.cc/forum/index.php/topic,54195.0.html
the next topic with more pixelart: http://arduino.cc/forum/index.php/topic,54411.0.html

340  Using Arduino / Programming Questions / Re: Large LCD characters on: March 17, 2011, 04:41:46 pm
Hè ke7vng, when your done, are you willing to post your sketch in the exhibition part of the forum? I would love to try your sketch.
341  Community / Exhibition / Gallery / Re: Ethernet Shield setup page on: March 15, 2011, 12:03:52 pm
This time I managed to get SRAM down to 493 by feeding the HTML from flash memory piece by piece to SRAM. This has it's consequences, Flash got over 8000 bytes. Next step is using EEPROM for config.

342  Community / Exhibition / Gallery / Re: Password input panel - a phi-menu example on: March 15, 2011, 04:39:28 am
Very slick. I must say, seeing you use the menu, I like the index menu the most, because you really know where you are in the menu.

What I'm actually interested in, is the memory usage and how big your sketch is (uploaded bytes). You could put this code in your sketch, so you can check on your serial monitor (or you change it to show on your LCD), to show memory usage. (SRAM)

Code:
int availableMemory()
{
  int size = 2048; //set your aruino SDRAM (mine is 2048)
  byte *buf;
  while ((buf = (byte *) malloc(--size)) == NULL);
  free(buf);
  return size;
}

void loop () {
serial.print(availableMemory());
serial.print(" / mem used = ");
serial.print(2048-availableMemory()); //set your aruino SDRAM (mine is 2048)
}

or maybe you better have a look at:

http://www.arduino.cc/playground/Code/AvailableMemory
343  Community / Exhibition / Gallery / Re: Password input panel - a phi-menu example on: March 13, 2011, 03:00:53 pm
No video yet?  smiley-twist yeah, I know, it's sunday.
344  Using Arduino / Programming Questions / Re: (solved) I want to print IP-address on webpage (Ethernet Shield) on: March 13, 2011, 07:05:29 am
It worked as you can see in this topic:

http://arduino.cc/forum/index.php/topic,55044.msg395363.html#msg395363

Thanks bubulindo
345  Community / Exhibition / Gallery / Re: Ethernet Shield setup page on: March 13, 2011, 06:58:54 am
Thanks to bubulindo in my other post http://arduino.cc/forum/index.php/topic,55064.0.html I'm able to show the network information of the webserver. Only the word "static" is just html.



Oh, and I managed to show free and used SRAM. As you can see, not much left. next thing I'll do is putting things into Flash memory and probably I need to put configuration info into EEPROM memory. So that it survives reboot.
Pages: 1 ... 21 22 [23] 24 25 26