LaFonera Hardware Controlling AC-Loads

From DD-WRT Wiki

Revision as of 07:39, 2 October 2007 by Sboger (Talk | contribs)
Jump to: navigation, search

You are here: DD-WRT wiki mainpage / LaFonera / Hardware / Controlling AC-Loads

Contents

Controlling AC-Loads with your LaFonera

I found a nice way to control any AC-load with your LaFonera.

What you need:

  • some technical skills to build this modification
  • some electronical stuff
  • programming skills to control your modification

I will show you some pictures of the build process, maybe we could create a controlling application together.

Hardware

Ready to start

image:LaFonera_Hardware_Controlling_AC-Loads_-_01_ready_to_start.jpg

view in high resulution


The board is powered and tested

image:LaFonera_Hardware_Controlling_AC-Loads_-_02_the_board_is_powered_and_tested.jpg

view in high resulution


Semi assembled board

image:LaFonera_Hardware_Controlling_AC-Loads_-_03_semi_assembled_board.jpg

view in high resulution


"converting" a 14 pin socket into 2 6 pin sockets

image:LaFonera_Hardware_Controlling_AC-Loads_-_04_converting_a_14pin_socket_into_2x6pin_sockets.jpg

view in high resulution


Triacs, photo triacs, leds

image:LaFonera_Hardware_Controlling_AC-Loads_-_05_triacs,_photo_triacs._leds.jpg

view in high resulution


GPIO connection details

image:LaFonera_Hardware_Controlling_AC-Loads_-_06_gpio_connection_details.jpg

view in high resulution


on the fly schematic diagram of the power interface and la fonera with wires connected to SW1 GPIO

image:LaFonera_Hardware_Controlling_AC-Loads_-_07_shematic_diagram.jpg

view in high resulution


another view

image:LaFonera_Hardware_Controlling_AC-Loads_-_08_another_view.jpg

view in high resulution


This fonera (cron)job :-) now is to control the lawn irrigation valves

image:LaFonera_Hardware_Controlling_AC-Loads_-_09_ready_build_inside.jpg

view in high resulution


La fonera housed in a water proof box

image:LaFonera_Hardware_Controlling_AC-Loads_-_10_water_proof_box.jpg

view in high resulution


Software

You should find some possibilities to control this modification...

Cron Job

e.g.

Web-Interface

e.g.

A starting place is to look at this users scripts: LaFonera_Hardware_Controlling_AC-Loads_via_webinterface. Note that both these users are using the built-in GPIO calls - no magic here.

Example:

  • # turn gpio pin on
  • echo 1 >/proc/gpio/3_out
  • # displays the status of the switch, 1 on, 0 off
  • cat /proc/gpio/3_out

Command Line

Example:

  • # turn gpio pin on
  • echo 1 >/proc/gpio/3_out
  • # displays the status of the switch, 1 on, 0 off
  • cat /proc/gpio/3_out

The original Idea

came from http://www.flickr.com/photos/zef67/388449098/in/set-72157594533848196/


Other Circuits

The easiest way to do this is with a solid state relay (SSR). Please note, relaying DC is VERY DIFFERENT from relaying AC.

Note, there are mechanical relays that can do DC or (BE CAREFUL, ONLY IF YOU KNOW WHAT YOU ARE DOING) AC. SSR's can only do AC, and will not switch DC current.

The diagram below shows how to connect an AC load, a AC LAMP to a solid state relay, and the relay to your FON. Substitute the FONs i/o pins for "pin 12" in the picture. You can use the same (very simple) scripts provided by this user to control this circuit.

Image:Relay lamp.gif

Here is an example of a solid state relay. It can be purchased directly from Parallax[1].

Image:Crydom-D2W203F.gif


(added by sboger on 2007-10-01)



this page was originally made by wildblue!