OpenWrt Forum Archive

Topic: Openwrt Home Automation

The content of this topic has been archived on 25 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello,

I am working on a project to control lights and devices from the internet.
My goal is to fit a 433mhz transmitter in a wrt54gl to control some wireless powerswitches. (http://www.gadgetgarden.nl/archives/gggkktt_klik0.jpg)

These switches have a 433mhz receiver and come in different types (on/of , dim , sunscreen (up/down) )
thanks to a dutch forum ( http://gathering.tweakers.net/forum/lis … es/1077675 ) i now have a 433mhz transmitter hooked op to a serial port.
and a config file for LIRC. It's working fine with WinLIRC and this config file.

The second stage was the linksys,

I bought a WRT54GL, installed Openwrt, and used 'esteevens' LIRC package from this thread http://forum.openwrt.org/viewtopic.php?id=735'
I also had to install libgcc (ipkg install libgcc) for it to work
if i send the 'irsend SEND_ONCE klik J1ON' command the DMZ Led starts flashing and the goes off again.
So far so good.

So i took out my soldering iron and removed the DMZ led. then i connected a wire to GPIO7. (the pin closest to the WLAN led of the DMZ Led)
http://nanl.de/nanl/bildchen/gpio_7_increased.jpg
And added 2 wires to power the 433mhz transmitter from the serial port header, ( pin 1 and 10)

I attached a Led on the wire from the GPIO 7 and the Ground, But somehow the led is now INVERTED.
if i execute 'gpio enable 7' the led goes ON, en 'gpio disable 7' turns it off again.
Same goes for LIRC, if i start lirc the led goed on, while sending the command it flashes rapidly and the stays on again.
I connected the 433mhz transmitter anyway but of course it ont word because teh signal is now inverted.

So i have the following Questions

1. Did i used the correct pins, or do i need to solder to other points on the wrt54gl
2. Can i invert the signal in lirc, (winlirc has this option but i can't find this option in LIRC)
3. With which language can i execute shell commands from a webpage in OpenWRT, PHP is probely to big for its memory ? (Third stage, creating a WebUI)

(Last edited by jjanse85 on 10 Mar 2007, 11:30)

switch the wires?

jjanse85 wrote:

3. With which language can i execute shell commands from a webpage in OpenWRT, PHP is probely to big for its memory ? (Third stage, creating a WebUI)

Start with shell script. Microperl can also be installed via ipkg, but shell script might be all you'll need.

The discussion might have continued from here.