jgoat
Posts: 24
Joined: Wed Oct 02, 2013 12:11 pm

Here's my first RPi project: The Yeodem.

Fri Oct 11, 2013 12:32 pm

My DSL modem gets hung up frequently, and requires rebooting, which is done by unplugging it, waiting 20 seconds, and plugging it back in. Exactly the sort of thing a robot should do. Here's my robot:

https://github.com/jimmyyeo/Yeodem (writeup in the readme, though that needs updating already)

http://www.youtube.com/watch?v=hIoNMuOyTOI (demo)

gmc
Posts: 123
Joined: Fri Mar 09, 2012 11:31 am
Location: Cheshire, UK
Contact: Website

Re: Here's my first RPi project: The Yeodem.

Fri Oct 11, 2013 12:40 pm

Nice. You could have done the same thing with a 555 timer :D

PiGraham
Posts: 3932
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: Here's my first RPi project: The Yeodem.

Fri Oct 11, 2013 1:14 pm

gmc wrote:Nice. You could have done the same thing with a 555 timer :D
How does a 555 timer know if the internet is inaccessible?

A change of ISP or a new modem might be better options. ;)

gmc
Posts: 123
Joined: Fri Mar 09, 2012 11:31 am
Location: Cheshire, UK
Contact: Website

Re: Here's my first RPi project: The Yeodem.

Fri Oct 11, 2013 2:05 pm

Whoops - my bad. :oops:

Forget why I said.

PiGraham
Posts: 3932
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: Here's my first RPi project: The Yeodem.

Fri Oct 11, 2013 2:28 pm

An alternative could be to slightly hack the router hardware. If it has a "connected" LED then the drive to that could trigger something like a 555 to cut power for a few seconds. A 556 dual could provide the 30 minute lock-out as well. (maybe that's pushing it with an RC circuit. 10 mins is supposed to work)

jgoat
Posts: 24
Joined: Wed Oct 02, 2013 12:11 pm

Re: Here's my first RPi project: The Yeodem.

Fri Oct 11, 2013 3:16 pm

gmc wrote:Nice. You could have done the same thing with a 555 timer :D
I actually built it with a 555 first. I'm teaching myself electronics, linux and Python, all at once, because there are many other things I want to do with the Pi. This, so far, is a handle for learning command line arguments, SQL access (I've also worked with MySQL on an earlier thing)... I've had serious problems comprehending time functions, but I'm getting there...

but anyways, my initial thought was to use the 555 to time how long the circuit stayed open, but eventually realized it was just simpler to use two major parts and move the timing to the software. But I've been playing with the 555 anyways. :>

jgoat
Posts: 24
Joined: Wed Oct 02, 2013 12:11 pm

Re: Here's my first RPi project: The Yeodem.

Fri Oct 11, 2013 3:19 pm

PiGraham wrote:An alternative could be to slightly hack the router hardware. If it has a "connected" LED then the drive to that could trigger something like a 555 to cut power for a few seconds. A 556 dual could provide the 30 minute lock-out as well. (maybe that's pushing it with an RC circuit. 10 mins is supposed to work)
I plan to have the server check with the clients before it resets the modem - if any report successfully communicating, no reboot.

Eventually, I'm adding a GSM module, and the server will also be a gatekeeper for external admin access to my network - the router will not accept remote logins unless the Pi gets a text message from my number first, and then login will be enable for five mins, or some such.

Return to “Automation, sensing and robotics”