Electronics-Related.com
Forums

Simple Ethernet Board with Register

Started by Klaus Kragelund October 29, 2013
On Tuesday, October 29, 2013 8:07:38 AM UTC-7, Klaus Kragelund wrote:
> On Tuesday, October 29, 2013 4:01:05 PM UTC+1, edward....@gmail.com wrote=
:
>=20 > > > > > > Do anyone know of a very simple board with an ethernet Phy on (=
possibly with a logic output), that can be used for this?
>=20 >=20 > > > > > > Perhaps something like a W5100 based board. > > > > > > https://www.sparkfun.com/datasheets/DevTools/Arduino/W5100_Data=
sheet_v1_1_6.pdf
>=20 > > This is just a pre-programmed micro-controller with interpreter. > =20 > > > > I was looking for something in the neighborhood of 5-10USD. Like: >=20 > > Perhaps for parts only=20 >=20 > > > > But with an output that could be set without the need for the actio=
n of an external microcontroller=20
>=20 > > So, you are talking about addressable node (or endpoint), which is outs=
ide the IP framework itself. Can't think of how it can be done without add= itional processing layer; namely, a microcontroller.
>=20 > > > This is 6USD with a board, but still needs an external controller (pe=
rhaps I need to accept that that's just how it is):
>=20 > > > http://www.geeetech.com/arduino-enc28j60-ethernet-module-p-263.html >=20 > > A USD6 micro, for example: PIC32MX675F512 has ethernet phy. You just n=
eed the connector. Full IP stack is free from microchip.
>=20 > The reason I am looking for a simple (single device) is that this home au=
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
>=20
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.
On a sunny day (Tue, 29 Oct 2013 08:04:52 -0700 (PDT)) it happened Klaus
Kragelund <klauskvik@hotmail.com> wrote in
<8dac7277-ae6b-4b2b-8474-f270af4cf6fd@googlegroups.com>:

>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: > >http://code.google.com/p/webiopi/
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.
>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?
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: http://panteltje.com/panteltje/raspberry_pi/ http://panteltje.com/panteltje/raspberry_pi_noppp/ 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.
On 10/29/2013 7:59 AM, Klaus Kragelund wrote:
> 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. > > https://www.sparkfun.com/datasheets/DevTools/Arduino/W5100_Datasheet_v1_1_6.pdf > > Regards > > Klaus >
https://www.sparkfun.com/products/7830
> What is the thread all about... how to generate as much white space as > possible ?>:-}
Lazy Googlers who don't edit the quotes. :-(
edward.ming.lee@gmail.com wrote:

> A USD6 micro, for example: PIC32MX675F512 has ethernet phy.
Could you please provide a datasheet? This one says: http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en545644 *USB* PHY and ethernet *MAC*. I.e. nothing special compared to most of ARMs. Best regards, Piotr
On Tuesday, October 29, 2013 9:20:40 AM UTC-7, Piotr Wyderski wrote:
> edward.ming.lee@gmail.com wrote: > > > A USD6 micro, for example: PIC32MX675F512 has ethernet phy. > > Could you please provide a datasheet? This one says: > > http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en545644 > *USB* PHY and ethernet *MAC*. >
Have not look in detail what are needed for straight ethernet. But we use a $4 USB to ethernet adapter: http://www.ebay.com/itm/New-USB-to-Ethernet-10-100-RJ45-LAN-Network-Adapter-USA-/310562865256?pt=US_Internal_Network_Cards&hash=item484efd4068 So, for $10 we have an IP server with ethernet.
Klaus Kragelund <klauskvik@hotmail.com> wrote:
>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?
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. http://www.pollin.de/shop/dt/MTQ5OTgxOTk-/Bausaetze_Module/Bausaetze/Bausatz_AVR_NET_IO.html -- Dipl.-Inform(FH) Peter Heitzer, peter.heitzer@rz.uni-regensburg.de HTML mails will be forwarded to /dev/null.
On Tue, 29 Oct 2013 08:19:34 -0700 (PDT), edward.ming.lee@gmail.com
wrote:

> > >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.
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).
On Tue, 29 Oct 2013 09:29:55 -0700 (PDT), edward.ming.lee@gmail.com
wrote:

>On Tuesday, October 29, 2013 9:20:40 AM UTC-7, Piotr Wyderski wrote: >> edward.ming.lee@gmail.com wrote: >> >> > A USD6 micro, for example: PIC32MX675F512 has ethernet phy. >> >> Could you please provide a datasheet? This one says: >> >> http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en545644 >> *USB* PHY and ethernet *MAC*. >> > >Have not look in detail what are needed for straight ethernet. But we use a $4 USB to ethernet adapter: > >http://www.ebay.com/itm/New-USB-to-Ethernet-10-100-RJ45-LAN-Network-Adapter-USA-/310562865256?pt=US_Internal_Network_Cards&hash=item484efd4068 > >So, for $10 we have an IP server with ethernet.
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?
 
> 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).
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