View previous topic :: View next topic |
Author |
Message |
churrinfunflais
Joined: 30 Sep 2011 Posts: 11
|
Relays through ethernet |
Posted: Wed Dec 07, 2011 3:15 pm |
|
|
Hi !!!
I have searched the forum and have not found an example on how to make communication over ethernet. I only have to switch on a Relay when I send a signal over the network.
Something like this:
Code: |
if (network_signal == ON){
output_high(PIN_A0);
}else {
output_low(PIN_A0);
}
|
How can I make a Network listener with a static IP? |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9245 Location: Greensville,Ontario
|
|
Posted: Wed Dec 07, 2011 4:15 pm |
|
|
Well, you'ld have to tell us which PIC and what ethernet interface you're using for a start...
Then again, for $50 ,you could buy one of CCS's EZWebLynx modules and be 'up and running' in an hour
I doubt you can build one for that price! |
|
|
churrinfunflais
Joined: 30 Sep 2011 Posts: 11
|
|
Posted: Wed Dec 07, 2011 4:57 pm |
|
|
I have a 18f4550 a 18f46j11 and 18f14k50 i can use any of these pics and for module i have a ENC28J60 in a module.
What do you recommend??? |
|
|
asmallri
Joined: 12 Aug 2004 Posts: 1635 Location: Perth, Australia
|
|
Posted: Thu Dec 08, 2011 6:51 am |
|
|
churrinfunflais wrote: | I have a 18f4550 a 18f46j11 and 18f14k50 i can use any of these pics and for module i have a ENC28J60 in a module.
What do you recommend??? |
IP stack applications are large both in terms of program memory requirements and RAM.
If you must use one of these three PICs, then realistically, only the PIC18F46J11 is viable.
In the PIC18F family the PICs for best general purpose Ethernet (TCP/IP) applications are PICs with large amounts of program memory. In order of preference, 128K, 96K, 64K (if desperate). From a RAM perspective, do not waste time with a PIC less than 3800 bytes.
If you are not tied to the PIC18F family then the PIC24/dsPIC33 is a much better platform. _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
|
|