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.
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.
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.
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?
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
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.
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.
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.
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).
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?
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.