Standalone URF Tx Unit

17 replies [Last post]
brett
Offline
Providence, United States
Joined: 9 Jan 2010

I've been working on a standalone piece of hardware that allows you to put a URF Tx unit directly onto your network without being tethered to your livebox.  Part of my push to isolate all this hardware as standalone things which allows us to move the backend software separately to new platforms.  I have URF and Relays separated now.

I ran aground in my testing as I don't have a spare RF Tx unit and I think the one on my HAH unit is broken.  For hardware you can use an Arduino or the base board and the ethernet component of the ethrelay uni (might have to adjust the PIN in the src).  Just plonk on a RF Tx and you are good to go.

The reason for doing this is so because sometimes you don't get the range you need and its just easier to take the Transmitter closer to where you need it !

The source is in the repository and I have patched up all the libraries in there so they compile correctly for the latest IDE, something I had been meaning to do for a while.   http://livebox-hah.googlecode.com/svn/trunk/userapps/arduino/EthURF/

Anyway if somebody verifies this before I get my new RF Tx from HK that would be cool.

Brett

AndrewJ
Offline
United Kingdom
Joined: 22 Nov 2012
Hi Brett, Sounds

Hi Brett,

 

Sounds interesting.... i like your thinking, would be great if we could we could enable for wifi use for those of us who dont have CAT5 running around the house :)

 

Cheers

 

Andrew

brett
Offline
Providence, United States
Joined: 9 Jan 2010
Wifi would be good and it

Wifi would be good and it should be a short step to go from wires to wireless.  Its all a matter of cost.  I'm trying to keep a lid on that, that and I don't have a wifi shield for my arduino.

Brett

allanayr
Offline
Ayr, United Kingdom
Joined: 25 Sep 2011
Maybe

This:

http://www.argos.co.uk/static/Product/partNumber/1219838.htm

would be a reasonably cheap way to enable an arduino ethernet shield for using with this.

brett
Offline
Providence, United States
Joined: 9 Jan 2010
WiFi Arduino

Allan interesting I was thinking something more like this: https://www.spark.io/

magill
Offline
Joined: 27 Apr 2012
wifi

These 702 units can be bought relatively cheaply on Ebay.

http://www.instructables.com/id/Cheap-and-Easy-Arduino-Wi-Fi-Hack/

John

allanayr
Offline
Ayr, United Kingdom
Joined: 25 Sep 2011
The argos one at £11.99

seems as cheap as any on ebay and I've also ordered one of these:

http://www.ebay.co.uk/itm/321207767813?ssPageName=STRK:MEWNX:IT&_trksid=...

 in order to give it a try.

 

magill
Offline
Joined: 27 Apr 2012
Argos router

Do you know which model Argos are selling 702, 703 ?

John

allanayr
Offline
Ayr, United Kingdom
Joined: 25 Sep 2011
It's the TL-WR702N, so I

It's the TL-WR702N, so I think it cannot be used with just the USB connector; it has to be plugged into the device with a patch cable. I haven't got the ethernet shield yet so I can't say for sure that this works but the nano router works well in client mode for connecting computers to my wireless network so I've no reason to think that it won't work with the arduino shield.

allanayr
Offline
Ayr, United Kingdom
Joined: 25 Sep 2011
Thought I'd have a go at this

Thought I'd have a go at this but it seems unable to get an IP address via DHCP.

My shield does work and I use:

#include <Ethernet.h>  (rather than EtherCard.h)

while (Ethernet.begin(mac) != 1)
{
Serial.println("Error getting IP address via DHCP, trying again...");
delay(15000);
}

in other sketches to get my board connected to my network.

What am I missing?

AndrewJ
Offline
United Kingdom
Joined: 22 Nov 2012
Wouldnt mind giving this a go

Wouldnt mind giving this a go with the ENC28J60 unit if the RFM can be connected...

it appears to have an SPI interface which is whats required

brett
Offline
Providence, United States
Joined: 9 Jan 2010
Alan / Andrew,I'm not sure

Alan / Andrew,

I'm not sure what you are missing.  I take it you are using the official WIZNET chip?
I tend to use the cheaper ENC28J60's on my arduino as they are a dime a dozen, its not that much more coding with the EtherCard.h library which does all the low level SPI stuff for you.  You don't need an RFM module the 433 Mhz RF Tx  is a big banger, the only issue is one of power.   Ideally you would want push 12v into it for maximum range, however 5v does work.

Andrew that module you sited on ebay is the same one that we use on the EthRelay unit.   http://www.dbzoo.com/livebox/ethrelay

In fact you could probably use this pcb as a base and plug in the RF tx unit into it, along with the ENC28J60 and get what you need working.  It was an idea I was floating in my head too.  I thought Derek had listed those in the shop (perhaps not).   I know he has a few pcb's kicking around.

Brett

allanayr
Offline
Ayr, United Kingdom
Joined: 25 Sep 2011
I think I'm using wiznet

Brett

The shield I bought was said to be:

"Network Ethernet Lan Shield Module Board W5100"

and I thought that the W at the beginning meant that it was the wiznet chip set.

As I said above, the board works fine when I connect to my network using the  Ethernet.h and SPI.h include files.

I'll play around a bit more and see what I can find out.

Thanks for looking.

allanayr
Offline
Ayr, United Kingdom
Joined: 25 Sep 2011
 At the risk of showing my

 

At the risk of showing my ignorance, I've been trying to use and arduino on and off for several months to put some data on my HAH xAP network.

All the examples for interfacing with the xAP network use the Ethercard libraries which don't seem to work for my sheild.

The shield is capable of connecting using the SPI & Ethernet library combination but not the Ethercard one.

Has anyone successfully used a Wiznet based shield to work with the SPI, Ethernet and xAP libraries?

 

brett
Offline
Providence, United States
Joined: 9 Jan 2010
You will need to modify the

You will need to modify the xAP library to use the ethernet library that drives the WizNet shield.
I've never owned a WizNet shield due to it being a bit more pricey, that and I'm a cheap skate.

I have based the xAP classes around the Ethercard library which drives the cheaper enc28j60 unit.
You can pick these up these days for a couple of quid.  google: enc28j60 ebay

Brett

allanayr
Offline
Ayr, United Kingdom
Joined: 25 Sep 2011
Cleared up.

Brett

Thanks for clarifying that. I'll have a think about how best to tackle it.

allanayr
Offline
Ayr, United Kingdom
Joined: 25 Sep 2011
Workaround

This may be of no interest to anyone else but in the end I used a workaround.

I use the ethernet libraries with the wiznet shield and generate a udp datagram. I then use the example lua script on the HAH to translate the udp message to an xAP which gives me the required data on my xAP network.

Sorted!

bobonline19
Offline
Joined: 4 Apr 2013
Spark.IO Photon

Brett mentioned Spark.io a while back and I got one from CPC in the UK to have a play with (not successfully yet) but I've just had an email from them, they have launched a new version the Photon for $19! Smaller and better than the original core!

https://www.spark.io/

Hardware Info