WRT54G serial project

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
jayvee1971
DD-WRT Novice


Joined: 23 Oct 2007
Posts: 38

PostPosted: Sat May 09, 2009 3:20    Post subject: WRT54G serial project Reply with quote
OK, I will need some community help with this one. My idea is to take my old WRT54G Ver 3 router, install 2 serial ports and an SD card slot, as per projects I have seen online, plug in a 4 port relay board into one of the serial ports, and use the router as a controller for certain power plugs in my house. Basically, I can do the hardware thing, have the stuff ordered, but I am seriously lacking in the software department. I want to be able to access the control program via web interface, and change settings if need be. This seems to be a neat little home automation project, and with the variety of serial interfaced relay boards out there, the possibilities are endless. So, if any of you have any ideas as to the programming aspect, and how to interface it with DD_WRT, that would be great! Eventually, I would like to add inputs, such as temperature, light sensors, motion sensors, etc. But for now, I am starting small...lol. Let me know your thoughts. And thanks.

James
Sponsor
jayvee1971
DD-WRT Novice


Joined: 23 Oct 2007
Posts: 38

PostPosted: Sat May 09, 2009 9:56    Post subject: Reply with quote
Interesting...looks like Nokia beat me to it...and it's using OpenWRT...here's the link to the article, if anyone is interested.

http://www.linuxdevices.com/news/NS3513779569.html
jayvee1971
DD-WRT Novice


Joined: 23 Oct 2007
Posts: 38

PostPosted: Thu May 14, 2009 3:46    Post subject: Reply with quote
Anyone have any good ideas on how I could modify a gui in order to control an external relay board on a serial port run off the wrt54G? I've got all the parts on order, I know that dd-wrt has sd support built in, I just need an easy interface to control the 4-relay board via serial port. I also know that open-wrt has some external gui support available, but I really have no idea how to edit anything like that...any ideas?
jayvee1971
DD-WRT Novice


Joined: 23 Oct 2007
Posts: 38

PostPosted: Fri May 15, 2009 2:23    Post subject: Reply with quote
Bump...
jayvee1971
DD-WRT Novice


Joined: 23 Oct 2007
Posts: 38

PostPosted: Sun May 17, 2009 0:15    Post subject: Reply with quote
wow...no answers at all? Someone out there must have an idea or suggestion...Cascade? Eko? Anyone?
jayvee1971
DD-WRT Novice


Joined: 23 Oct 2007
Posts: 38

PostPosted: Sun May 24, 2009 2:34    Post subject: Reply with quote
Bump Shocked
jayvee1971
DD-WRT Novice


Joined: 23 Oct 2007
Posts: 38

PostPosted: Sat Jun 13, 2009 3:21    Post subject: Reply with quote
Well, I got the serial ports and SD card reader in, did all the soldering and loaded one of Eko's builds onto it. Only to find out the walkthrough I had was for a v3 of the wrt54g, not the v2.2 as I need. That's ok, I did figure out that my gpio3 is not soldered to the correct spot, so I will fix that when I have time, so my sdcard works. Otherwise, project is progressing nicely. Another thing I realized, is that I will probably need another microcontroller to control the 4 relay board I bought, as the control on the relay board has 4 seperate pins, one for each relay. That's ok though, I may end up making one myself, just to control the 4 relays. Anyway, just thought I would update this thread as to the progress. Really, my next big hurdle will be software, but I have found some nice open source that may work. I mean, the router has a 200Mhz processor, more then enough speed to send zero's and one's Very Happy
jayvee1971
DD-WRT Novice


Joined: 23 Oct 2007
Posts: 38

PostPosted: Sat Jul 18, 2009 3:23    Post subject: Reply with quote
Alright, just a quick update. I have installed both the dual serial ports and the SD card slot, loaded up DD-WRT and all is working. Now, on to bigger and better things. Once I have time again....gotta love summer for all the outdoor projects.
I have access via hyperterminal in windows XP through serial connection to the router, which is good, as I wanted this port to be an input port. Haven't tested the second port, as they share an IRQ, and I haven't had a chance to bugger around with the settings. Any ideas on how to separate the 2 com ports? Please let me know.
headinthetrees
DD-WRT Novice


Joined: 02 Feb 2010
Posts: 9

PostPosted: Sat Dec 18, 2010 0:45    Post subject: Reply with quote
Just curious, what serial relay board did you use? How much did it cost and where did you get it? I'm in the research phase of a similar project myself.
iso
DD-WRT Novice


Joined: 31 Aug 2006
Posts: 16
Location: West Chester, PA

PostPosted: Sat Dec 18, 2010 2:09    Post subject: Reply with quote
have you considered arduino route?

http://www.youtube.com/user/nasickle/
headinthetrees
DD-WRT Novice


Joined: 02 Feb 2010
Posts: 9

PostPosted: Sat Dec 18, 2010 2:28    Post subject: Reply with quote
I had, for some reason I dismissed it thinking this would be a cheaper, more veritile approach to my problem. I'll look into this some more.

By the way are those your videos?
iso
DD-WRT Novice


Joined: 31 Aug 2006
Posts: 16
Location: West Chester, PA

PostPosted: Sat Dec 18, 2010 2:44    Post subject: Reply with quote
yea =) shameless shelf-promotion. we might have quite a bit to talk about.

Last edited by iso on Sat Dec 18, 2010 3:01; edited 1 time in total
headinthetrees
DD-WRT Novice


Joined: 02 Feb 2010
Posts: 9

PostPosted: Sat Dec 18, 2010 2:54    Post subject: Reply with quote
For sure, let me first do my homework so I don't annoy you with questions I could easily answer with some reading. Nice vids, I'm thoroughly intrigued.

I'm fairly well versed in various programming and scripting languages, but my electronics knowledge is next to nill.

However playing with some arduino projects might help me out a little.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum