Simple Ethernet Board with Register

Hi

For a home automation project, I need to control some devices via an ethernet connection.

I could use a raspberry pi, but I am looking for something simpler. In some cases I just need to set or clear a relay.

Do anyone know of a very simple board with an ethernet Phy on (possibly with a logic output), that can be used for this?

Perhaps something like a W5100 based board.

formatting link

Regards

Klaus

Reply to
Klaus Kragelund
Loading thread data ...

Den tirsdag den 29. oktober 2013 14.59.18 UTC+1 skrev Klaus Kragelund:

this?

formatting link

-Lasse

Reply to
Lasse Langwadt Christensen

Well, almost. Except it costs more than an entire Raspberry Pi board.

I was looking for something in the neighborhood of 5-10USD. Like:

formatting link

But with an output that could be set without the need for the action of an external microcontroller

Cheers

Klaus

Reply to
Klaus Kragelund

This is 6USD with a board, but still needs an external controller (perhaps I need to accept that that's just how it is):

formatting link

Cheers

Klaus

Reply to
Klaus Kragelund

On a sunny day (Tue, 29 Oct 2013 06:59:18 -0700 (PDT)) it happened Klaus Kragelund wrote in :

Simpler than a Raspberry Pi is very difficult, counting price and time. I did this with an ebay ethernet module:

formatting link
I wrote both C code to interface to that chip, and PIC18 asm. But these days I would use the little Raspi Linux computer anytime, better, much more flexible (TCP UDP), and perhaps works out even cheaper. Just make a little 'shield' board for the Raspi with a relay on the GPIO pins.

2 relays, 10 relays... program in C.
Reply to
Jan Panteltje

What is the thread all about... how to generate as much white space as possible ?>:-} ...Jim Thompson

--
| James E.Thompson                                 |    mens     | 
| Analog Innovations                               |     et      | 
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    | 
| San Tan Valley, AZ 85142   Skype: Contacts Only  |             | 
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  | 
| E-mail Icon at http://www.analog-innovations.com |    1962     | 
              
I love to cook with wine.     Sometimes I even put it in the food.
Reply to
Jim Thompson

This is just a pre-programmed micro-controller with interpreter.

Perhaps for parts only.

So, you are talking about addressable node (or endpoint), which is outside the IP framework itself. Can't think of how it can be done without additional processing layer; namely, a microcontroller.

A USD6 micro, for example: PIC32MX675F512 has ethernet phy. You just need the connector. Full IP stack is free from microchip.

Reply to
edward.ming.lee

Looks nice.

Ok, so if I do it the Rasperry way, what would be the easiest for someone who has only use Linux on a user level and never dug deep into the engine?

I found the Webiopi nice:

formatting link

How do I get started, is it just some code in a nice GUI? ...and putting that code in whats simelar to "Startup" in windows, so when it boots it runs that code?

Thanks

Klaus

Reply to
Klaus Kragelund

The reason I am looking for a simple (single device) is that this home automation is just something I would like to do when the kids and wife are asleep, so I am aiming for something that does not involve a lot of hardware, but rarther works out of the box

Cheers

Klaus

Reply to
Klaus Kragelund

but it is simple ;)

several ENC28J60 boards on ebay for 3-4$, pair it with an avr and you can probably find some arduino code the will work with little modifications

-Lasse

Reply to
Lasse Langwadt Christensen

:

possibly with a logic output), that can be used for this?

sheet_v1_1_6.pdf

n of an external microcontroller

ide the IP framework itself. Can't think of how it can be done without add itional processing layer; namely, a microcontroller.

rhaps I need to accept that that's just how it is):

eed the connector. Full IP stack is free from microchip.

tomation is just something I would like to do when the kids and wife are as leep, so I am aiming for something that does not involve a lot of hardware, but rarther works out of the box

PIC32MX675F512 is a single device, until they can build the metal box on si licon. If you need anything like it in PCB, figure about 3x the money.

Reply to
edward.ming.lee

On a sunny day (Tue, 29 Oct 2013 08:04:52 -0700 (PDT)) it happened Klaus Kragelund wrote in :

Looks interesting, but I really do not know Python, cannot even read it.

What you describe is some server running that accepts commands via TCP and then changes the GPIO pins, maybe does things itself too.

Well, there are places (directories) where to put startup scripts that would start that server.

There are 2 possibilities,

1) does your application run its own thing, for example read a pin and set a relay, or read an ADC or some sensor and set some other thing in sort of a loop? Then it needs to run constantly and be started at power up and provide for example a little webserver for users to control things.

2) But if you just want to be able to remotely control a relay, then you can remotely start the application with ssh -Y with for example as command line arguments the relay number and state, from any PC

In both cases or rather in my case I would write some C code.

Writing that stuff is simple, *once you have done it...* These are controlled via ssh:

formatting link
formatting link

I do not have a server example for Raspberry, but there are plenty for PC on my website that should just compile on the Pi.

On the old website I had Apache server running and some cgi scripts to control some I/O. I am sure Apache runs on raspi too.

I also had some script that runs constantly and listens for video stream using netcat on the raspi.

The possibilities are infinite....

So it all depends on your programming abilities and preferences. Could be that link you gave does everything you need.

Reply to
Jan Panteltje

formatting link

Reply to
hamilton

Lazy Googlers who don't edit the quotes. :-(

Reply to
edward.ming.lee

Could you please provide a datasheet? This

formatting link

*USB* PHY and ethernet *MAC*. I.e. nothing special compared to most of ARMs.

Best regards, Piotr

Reply to
Piotr Wyderski

Have not look in detail what are needed for straight ethernet. But we use a $4 USB to ethernet adapter:

formatting link

So, for $10 we have an IP server with ethernet.

Reply to
edward.ming.lee

Look for ENC28J60 based modules. In Germany there exists a board with ENC28J60 and Atmega called avr-net-io which is very popular. Kit price is about 20 EUR.

formatting link

--
Dipl.-Inform(FH) Peter Heitzer, peter.heitzer@rz.uni-regensburg.de 
HTML mails will be forwarded to /dev/null.
Reply to
Peter Heitzer

It's also only got an Ethernet MAC. The PHY has to be added as an external chip with a bunch of connections (between 7 and 16, depending on the type of interface used).

AFAIK, there's only one chip in Microchip's line with an on-board PHY (PIC18F97J60 with a 10M PHY).

Reply to
Spehro Pefhany

Does Microchip provide sample code for this kind of application? I guess you need to allow for both the USB and Ethernet stacks, and some additional software?

Reply to
Spehro Pefhany

OK, it does add $1.20 for the Phy and $4.78 for the Jack. So, the $4 USB/Eth is cheaper and we can also use the USB for something else (flash drive).

QTY(100) PIC32 6.50 DP83848 1.20 SI-60062 4.78

Reply to
edward.ming.lee

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.