Cheap programmable Serial to Ethernet converter

Show or discuss your existing Home automation project here, so a detailed explanation!.....

Cheap programmable Serial to Ethernet converter

Postby Digit » Sun Jun 15, 2014 11:30 pm

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 8929 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 8929 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)
User avatar
Digit
Global Moderator
Global Moderator
 
Posts: 3388
Joined: March 2006
Location: Netherlands

Re: Cheap programmable Serial to Ethernet converter

Postby Digit » Sun Jun 22, 2014 11:12 pm

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 8694 times


http://blog.hekkers.net/2014/06/22/addi ... ibaro-hc2/
User avatar
Digit
Global Moderator
Global Moderator
 
Posts: 3388
Joined: March 2006
Location: Netherlands

Re: Cheap programmable Serial to Ethernet converter

Postby Phaeton » Mon Jun 23, 2014 7:25 am

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
User avatar
Phaeton
Advanced Member
Advanced Member
 
Posts: 573
Joined: May 2010
Location: Wassenaar

Re: Cheap programmable Serial to Ethernet converter

Postby Digit » Mon Jun 23, 2014 6:05 pm

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.
User avatar
Digit
Global Moderator
Global Moderator
 
Posts: 3388
Joined: March 2006
Location: Netherlands

Re: Cheap programmable Serial to Ethernet converter

Postby samuelb » Tue Dec 01, 2015 2:12 pm

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
samuelb
Starting Member
Starting Member
 
Posts: 3
Joined: December 2015

Re: Cheap programmable Serial to Ethernet converter

Postby Digit » Wed Dec 02, 2015 9:45 pm

No problem.
I'll try to post it here on the forum when I have the time.
User avatar
Digit
Global Moderator
Global Moderator
 
Posts: 3388
Joined: March 2006
Location: Netherlands

Re: Cheap programmable Serial to Ethernet converter

Postby samuelb » Fri Dec 04, 2015 11:36 am

Thanks, waiing for your reply
samuelb
Starting Member
Starting Member
 
Posts: 3
Joined: December 2015

Re: Cheap programmable Serial to Ethernet converter

Postby samuelb » Tue Dec 15, 2015 2:53 pm

Hi Robert,

It would be awesome to post the source code from the smartmeter before Christmas :-)
Or did you post the source code already?
samuelb
Starting Member
Starting Member
 
Posts: 3
Joined: December 2015


Return to Home Automation Projects

Who is online

Users browsing this forum: No registered users and 1 guest