Skip to main content
Topic: Web server build with live site (Read 16362 times) previous topic - next topic

Web server build with live site

Hi Guy's, new to this board but have a Micro Server up and running fine. See below post from the Hack A Day site.

Well the beast is up and running, due to our local ISP we had to rework the code to run on port 81  to access it cos of dynamic IP suppied by said provider (Telus) here in Vancouver area of Canada.
Check it out live at: http://75.154.246.246:81
Thanks to Ian Lesnet and Hack A Day for hosting his wonderful little project.
Dave (VA7DB)


Posted at 6:59 pm on Aug 5th, 2009 by Dave
Dave (VA7DB)

Web server build with live site

Reply #1
hi,

very nice. good to see it working.

the link to the ip address didnt work for me but that might be my end.

also any chance of posting the code changes you have made to get it running on port 81. i had a search when i was looking at it but i couldnt find it.

also what are the changes you have made. it looks like the cd card is different and the board on the bottom, what is it?

Peter

Web server build with live site

Reply #2
Great build. I thought it deserved its own thread, so I moved it here.

I think the SD card holder he could get probably didn't fit the original footprint, so he wired it to the bottom.

I'm curious if you bought a totally different SD card holder, or if you got the new one SparkFun sells under the same product number?

That looks like a homemade PCB too, great work.
Got a question? Please ask in the forum for the fastest answers.

Re: Web server build with live site

Reply #3
yes it does look like a well done home made board.

I must say i was impressed how easy the board is to make for what it is. sure you need to be carefull but there is nothing on there most people couldnt do.

The SD card was probably the hardest from memory and even that isnt to bad.

Re: Web server build with live site

Reply #4
It's nice to see that it works so well. The one thing about it though is that it was slow. I don't know whether if that was due to server load or connection speed but maybe a textonly site would be a bit more apt for it.

Re: Web server build with live site

Reply #5
With respect to the going slow problem...

As I remember the original code was slower that it could be because it didn't initialize the clock divider to work at full speed. Just having a quick look at the copy of the source I use for my server I have the following line in the "InitializeBoard" function:

CLKDIVbits.RCDIV0=0;

This enables the pic to run at the full 32MHz (16mips) rather than the default 16MHz (8mips).

Re: Web server build with live site

Reply #6
Thanks indeed for the kind words guys...it is a fun project for sure......I noticed a whack of activity on the LED's this weekend so I assume some folks were getting into the little beastie.
Yes it was a home made board, done with that blue iron on stuff....works for me better than the old photographic method I used for many years.   Yes, also on the daughter board under the SD card holder,  that was necessary because the holder Sparkfun shipped us was the same as the original part number but a different footprint with the connections right under the middle of the device which would've made soldering it onto the board would have covered the .1uF capacitor (C8) that sits right behind the holder.    So a hurriedly conceived board with just plain little strips of copper to bring the connections out to the back was made up and a hole drilled to pass the wires through to the other side.
Not sure how to go about posting the code we changed to allow it to operate on port 81 so will wait till I hear from one of you as to how to proceed.     
The fan is obviously a bit over over kill but a little mechanical rotating thingy along with different colored flashing LED's adds a bit of appeal to us gizmo gearhead types  :-)
Without either a fan or heatsink the datapump I/C does run quite hot as did the V regulator when run off a 6 volt wall wart so I went with a 5 volt cell phone supply (switching regulator type) which runs nice and cool and allows the Micro Server to run at a much more reasonable temp. 
Being an electronics tech I dislike hot I/C's with a passion  :-)

Dave
Dave (VA7DB)

Re: Web server build with live site

Reply #7
[quote author="Scorpia"]...
also any chance of posting the code changes you have made to get it running on port 81. i had a search when i was looking at it but i couldnt find it...[/quote]

At the top of FATHTTP.h you'll find:
Code: [Select]
#define HTTP_PORT               (80u)

Change to 81u (or whatever port number you like) and bob's your uncle ;)

Re: Web server build with live site

Reply #8
If you click 'reply', and then expand the 'Additional Options' menu below the text editor you can upload files with your post. Feel free to upload source in the forum, I'll move interesting code to the SVN with the author's permission.
Got a question? Please ask in the forum for the fastest answers.

Re: Web server build with live site

Reply #9
Quote
Yes, also on the daughter board under the SD card holder,  that was necessary because the holder Sparkfun shipped us was the same as the original part number but a different footprint...

That was the primary reason why I didn't publish v2. I was horrified that they did this, and I stopped sourcing from them immediately after. I wish they had changed the part number and left a place holder page with a link to the new one. I felt extra bad because I had just specified the same part on the DIY photo frame article a few months earlier when I found out, but fortunately it seems like nobody tried to make that ;)
Got a question? Please ask in the forum for the fastest answers.

Re: Web server build with live site

Reply #10
[quote author="ian"]
Quote
Yes, also on the daughter board under the SD card holder,  that was necessary because the holder Sparkfun shipped us was the same as the original part number but a different footprint...

That was the primary reason why I didn't publish v2. I was horrified that they did this, and I stopped sourcing from them immediately after. I wish they had changed the part number and left a place holder page with a link to the new one. I felt extra bad because I had just specified the same part on the DIY photo frame article a few months earlier when I found out, but fortunately it seems like nobody tried to make that ;)
[/quote]

Damn, I just ordered four MicroSD sockets at the SparkFun site, can't I used those now?

Re: Web server build with live site

Reply #11
I'd complain and ask for a refund. Can't hurt, especially if they haven't shipped them yet.
Got a question? Please ask in the forum for the fastest answers.

Re: Web server build with live site

Reply #12
Hmm got a message yesterday that my items have been shipped.. :(

Re: Web server build with live site

Reply #13
Yeah It's not easy to use the one they now supply as the capacitor (C8) is in the way and even if you move that to someplace else the mounting and soldering of the new part is tricky cos the solder tags are under the shell of the holder itself,  I managed it OK cos being a tech I have the correct tools handy (stereo microscope and fine tipped iron)
Simplest thing I could think of was to make a tiny daughter board just a few mm bigger than the card holder and epoxy it on the back of the Server pcb, drill a little 3mm hole and run the wires through to the top.   All I did on the daughter board was to make a series of thin strips of copper to allow the connections to come out the back end of the holder to attach me wires.
The only missing part is the switch for Card Detect,  as it is located right in the way of the wires.....so I just cut off the contacts (2) so as not to interfere with the wire attachment.
The Card Detect is left open circuit when the card is in place anyway so no real need to worry about that connection as when the card is out the unit is switched off anyway so the PIC won't care about an O/C (floating) pin.
Dave 
Dave (VA7DB)

Re: Web server build with live site

Reply #14
does sparkfun have the correct footprint for the part in the eagle parts libary that they run?

if so it would be possible to modify the current layout a little to help it fit if you wanted to etch your own board.