web page host on microcontroller system

Discussion in 'Embedded Systems and Microcontrollers' started by max12, Oct 14, 2011.

  1. max12

    Thread Starter New Member

    Oct 14, 2011
    12
    0
    hi,

    any one knows about how web page host on microcontroller system,,

    requirements etc..

    thank you.
     
  2. BMorse

    Senior Member

    Sep 26, 2009
    2,675
    234
    depends on the microcontroller you are using, I had developed an HTTP server based on the PIC32 uC from Microchip, I used their TCP/IP and DHCP libraries to serve the web pages right off of an SD Card...... It is DHCP enabled with a HTTP BSD Server and also able to send out SNMP packets...... I used microchips ENC28J60 Standalone ethernet controller IC for the ethernet interface....
     
    max12 likes this.
  3. max12

    Thread Starter New Member

    Oct 14, 2011
    12
    0
    many thanks for the reply

    so u made a microcontroller which can control over web page isn't it
    did u use a server ???
     
  4. BMorse

    Senior Member

    Sep 26, 2009
    2,675
    234
    the Pic32 microcontroller was the Server....
     
    max12 likes this.
  5. max12

    Thread Starter New Member

    Oct 14, 2011
    12
    0
    so u made a microcontroller which can control over web page??? i want more information for my final year project.. could you please give me information about it ..thank you


    regards.
     
  6. BMorse

    Senior Member

    Sep 26, 2009
    2,675
    234
    Eric007 likes this.
  7. max12

    Thread Starter New Member

    Oct 14, 2011
    12
    0
  8. BMorse

    Senior Member

    Sep 26, 2009
    2,675
    234
    max12 likes this.
  9. max12

    Thread Starter New Member

    Oct 14, 2011
    12
    0
    ok thanks again

    so what language didi you use to programe pic 32 .. c or c++

    regards.
     
  10. BMorse

    Senior Member

    Sep 26, 2009
    2,675
    234
    Embedded C for the pic32 uC from Microchip. Using their IDE.
     
  11. max12

    Thread Starter New Member

    Oct 14, 2011
    12
    0
    ok so ur using micro c ..

    why you choose pic 32 .. i 've learned that there are other microcontrollers like pic18f4620 and enc28j60 can use for web server hosting..

    regards.







     
  12. BMorse

    Senior Member

    Sep 26, 2009
    2,675
    234
    I had chosen that uC because it was a requirement for the contest, it was basically a way for the manufacturer to introduce their line of 32 bit uC's when they first come out.
     
  13. max12

    Thread Starter New Member

    Oct 14, 2011
    12
    0
    ok so how u connect microcoontroller to the pc ??
     
  14. BMorse

    Senior Member

    Sep 26, 2009
    2,675
    234
    via ethernet, since it is a web server that is DHCP enabled, when I plug it into my network, it automatically just connects to it and I access it via its IP address.....
     
  15. max12

    Thread Starter New Member

    Oct 14, 2011
    12
    0
    and if i buy a web server module do i need to programme it ??
     
  16. BMorse

    Senior Member

    Sep 26, 2009
    2,675
    234
    If you mean the Standalone Ethernet IC, yes, you still have to write code to use it and initialize its functions, Microchip provides the C libraries and sample code for you to use as a template to build your own applications.... I had purchased this finished module off of Ebay so I did not have to make my own PCB for the controller, I just had to make a way for it to connect to the pic32 uC

    [​IMG]

    here is a link to the resources page for the Microchip Pic32 uC, here you will find links to their TCP/IP libraries and other connectivity software >>> http://www.mypic32.com/web/guest/resources
     
    max12 likes this.
  17. max12

    Thread Starter New Member

    Oct 14, 2011
    12
    0
    ok ..and from where can i get pic development board????
    regards
     
  18. BMorse

    Senior Member

    Sep 26, 2009
    2,675
    234
  19. max12

    Thread Starter New Member

    Oct 14, 2011
    12
    0
    k thanks .. if i get this one can i programm it using c# visual studio??
    regards
     
  20. thatoneguy

    AAC Fanatic!

    Feb 19, 2009
    6,357
    718
    No.

    You'll need to use MikroC Mikroelectronica, BoostC from sourceboost, or the more limited (non-paid) versions of Hi-Tech C or CCS.

    MikroC and BoostC are very generous with what their "free" versions allow. Though For the webserver, you may run into those limits.

    There are also a few PIC18F series webservers as well, which can use any compiler above, in addition to Microchips C18. Here is an example of a complete board for around $50 US. You'd only need to change the code to fit what you would like your webserver to do, that one is set up for many things, mostly remote sensing.

    --ETA: You'll also need a PICKit 2 programmer to load the .hex program from your compiler on the PC to the PIC on the board to run the code. I'd suggest getting the $35 PicKit2 from Microchip directly instead of a clone. I'd go so far as to suggest getting the 44 pin demo board w/PICKit 2 package for $50, that way you will have a PIC18F board to program and play around with to get the basics of how it all works down, before trying to tackle a much more complex task. You can't get away without getting a programmer, but it is a one time cost. The PICKit 3 supports more devices, especially on the higher end, but the PICKit 2 also has logic analyzer and UART testing functions which the PICKit 3 lacks.
     
    Last edited: Oct 31, 2011
Loading...