Cheap programmable Serial to Ethernet converter

Show or discuss your existing Home automation project here, so a detailed explanation!.....
Post Reply
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Cheap programmable Serial to Ethernet converter

Post by Digit »

Eh, project? Well, sort of... :wink:

Last Friday I received some goodies from China: an Arduino Nano + Ethernet Shield:
DSC_9883r.jpg
DSC_9883r.jpg (55.65 KiB) Viewed 15078 times
Really very small, cheap (17 euro) and programmable, since there's an ATMega328P on it.
Whether you want it to upload sensor data from the Nano with http, or do http calls to the Nano, it doesn't matter.
Want your smart meter data presented in the Fibaro HC2? Just change the sketch for the Nano and you're done :)
I (almost) did that :lol:
nanouptimeKnipsel.PNG
nanouptimeKnipsel.PNG (9.03 KiB) Viewed 15078 times
Here's what I've been doing with it last weekend:
http://blog.hekkers.net/2014/06/15/flex ... n-20-euro/

PS
Thanks to Rene for bringing this really cheap solution to my attention 8)
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Re: Cheap programmable Serial to Ethernet converter

Post by Digit »

I finished what I (almost) did a week ago: adding a smart meter to the Fibaro HC2. With hardware costing only 17 Euro (and a free port on a switch)
P1 Smart meter in Fibaro HC2.png
P1 Smart meter in Fibaro HC2.png (13.8 KiB) Viewed 14843 times
http://blog.hekkers.net/2014/06/22/addi ... ibaro-hc2/
User avatar
Phaeton
Advanced Member
Advanced Member
Posts: 573
Joined: Wed May 19, 2010 12:44 pm
Location: Wassenaar
Contact:

Re: Cheap programmable Serial to Ethernet converter

Post by Phaeton »

Nice. I see you use the hc2. Just for fun? Or do you have great things in mind for that device? Because I haven't read anything about mqtt support ;)

Verstuurd vanaf mijn Nexus 5 met Tapatalk
groeten,
Harry
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Re: Cheap programmable Serial to Ethernet converter

Post by Digit »

Mostly for fun. It's fun to explore the HC2, but it would be a lot less fun if I'd have to buy the HC2 myself :wink:
No big plans, I'm just searching for answers for someone else and thought it would be nice to try a combination of the Ethernet-Nano and HC2.
I don't have enough Zwave hardware to focus on that so this was a fun alternative way of working with the HC2, that's it.
samuelb
Starting Member
Starting Member
Posts: 3
Joined: Tue Dec 01, 2015 3:04 pm

Re: Cheap programmable Serial to Ethernet converter

Post by samuelb »

Hi Robbert,

I bought an arduino nano and i got the serial out, by means of the serial monitor on the laptop, but i don't know who to apply the last bit of code from your website in my script, to show up in the fibaro hc2, virtual device.

void loop() {
c = mySerial.read();
switch (c) {
case '/':
receiving = true;
...
break;
case '!':
receiving = false;
...
break;
}
...
if(!receiving) {
if (ether.packetLoop(ether.packetReceive())) {
...
ether.httpServerReply(readingsPage());
}
}
}

Because some code is missing and my programming in arduino is not outstanding.
Would you mind to share your code?

That would be much appreciated

Thanks
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Re: Cheap programmable Serial to Ethernet converter

Post by Digit »

No problem.
I'll try to post it here on the forum when I have the time.
samuelb
Starting Member
Starting Member
Posts: 3
Joined: Tue Dec 01, 2015 3:04 pm

Re: Cheap programmable Serial to Ethernet converter

Post by samuelb »

Thanks, waiing for your reply
samuelb
Starting Member
Starting Member
Posts: 3
Joined: Tue Dec 01, 2015 3:04 pm

Re: Cheap programmable Serial to Ethernet converter

Post by samuelb »

Hi Robert,

It would be awesome to post the source code from the smartmeter before Christmas :-)
Or did you post the source code already?
Post Reply

Return to “Home Automation Projects”