Introduction: F.i.c.s. - Fonera Internet Controlled Switch (ON/OFF)
I got my first FON router for free a couple of months ago.
First thing i did was flash dd-wrt firmware on it. Since FONera router has gpio pins i decided to use one of those pins to control AC loads or turn a switch ON/OFF remotely.
There's a similar/better way of controlling AC loads - check out dd-wrt wiki..
So i decided to build a small circuit that will turn a switch ON and OFF thru the Router's Web Interface. Now i can turn anything ON/OFF from anywhere in the world.....
Also published at my site: cryptonoid.blogspot.com
Step 1: Parts Needed
check back later i will post a new circuit or check my site for updates
Step 2: SCHEMATICS
new circuit will be posted soon
Step 3: Software
YOU MUST HAVE DD-WRT firmware installed
- Log on to your router (ex: http:192.168.1.1)
- Go to Administration > Management
- JFFS2 Enable
- Go to 'Services'
- Enable SSH
- Go to Administration > Commands
echo 1 > /proc/gpio/3_dir
rmdir /tmp/www; ln -s /jffs/www /tmp
- Click 'Save Startup'
- Now log on to your router using ssh
chmod +x on.sh off.sh index.sh blink.sh
-then go to http://192.168.1.1/user/index.sh
-Now you can control the switch simply by clickin ON or OFF from your favorite browser (i use my cell phone to activate the switch thru the web interface). Since my linux kung-fu skills are not developed yet, it took me some time to get familiar with .sh scripts.
Step 4: DONE
On the video above you can see circuit and the router. the circuit is connected to a multimeter to detect short circuit. You can hear a *beep* when i turn the switch on from the web interface. Also, when i run blink.sh from the web interface you can hear 10 *beeps* (the switch turns on/off 10 times). The red LED indicated the status of the switch (on or off). to display the status of the switch on the web interface i wrote a small loop inside each .sh script.
-Hook it up to your car's door switch and open your car with your wifi enabled cellphone.
-If you have Remote Start System installed on your car you can hook up the remote control of the system to your f.i.c.s. (fonera internet controlled switch) and turn ON/OFF your car from the internet
-Open your house/garage door.
-Turn ON/OFF your POOL PUMP.
-Restart additional routers with f.i.c.s.
- Steve's Bourne / Bash shell scripting tutorial
NOTICE: I am not associated with the company/product(s) mentioned in this post. BEFORE YOU TRY THIS YOU MUST KNOW WHAT YOU'RE DOING....if you get electrocuted, executed, kidnapped, burn your house down dont blame it on me....
since im not very good in programming shell scripts can someone write a Shell script where the user will be able to schedule the f.i.c.s. to go ON/OFF at certain times thru the web interface.