Page 1 of 1

Cheap programmable Serial to Ethernet converter

Posted: Mon Jun 16, 2014 12:30 am
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 15482 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 15482 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)

Re: Cheap programmable Serial to Ethernet converter

Posted: Mon Jun 23, 2014 12:12 am
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 15247 times
http://blog.hekkers.net/2014/06/22/addi ... ibaro-hc2/

Re: Cheap programmable Serial to Ethernet converter

Posted: Mon Jun 23, 2014 8:25 am
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

Re: Cheap programmable Serial to Ethernet converter

Posted: Mon Jun 23, 2014 7:05 pm
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.

Re: Cheap programmable Serial to Ethernet converter

Posted: Tue Dec 01, 2015 3:12 pm
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

Re: Cheap programmable Serial to Ethernet converter

Posted: Wed Dec 02, 2015 10:45 pm
by Digit
No problem.
I'll try to post it here on the forum when I have the time.

Re: Cheap programmable Serial to Ethernet converter

Posted: Fri Dec 04, 2015 12:36 pm
by samuelb
Thanks, waiing for your reply

Re: Cheap programmable Serial to Ethernet converter

Posted: Tue Dec 15, 2015 3:53 pm
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?