# Home Automation - Via Powerline Modem TDA5051 - I2C

**URL:** <https://forum.arduino.cc/t/home-automation-via-powerline-modem-tda5051-i2c/368726>\
**Category:** Home Automation\
**Created:** [February 28, 2016, 11:48am UTC](https://forum.arduino.cc/t/home-automation-via-powerline-modem-tda5051-i2c/368726 "2016-02-28T11:48:21Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![SamirTafesh](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/samirtafesh/32/224599_2.png) [@SamirTafesh](https://forum.arduino.cc/u/SamirTafesh)\
**Post date:** [February 28, 2016, 11:48am UTC](https://forum.arduino.cc/t/home-automation-via-powerline-modem-tda5051-i2c/368726/1 "2016-02-28T11:48:21Z")

</div>

Hi to All,

I am currently working on a prototype for Home Automation, I have tested my prototype using ESP01-8266 it is giving good results (my code is posted on github

> **[GitHub - SamirTafesh/ESP8266\_Mega\_WEBSERVER: Complete Home Automation...](https://github.com/SamirTafesh/ESP8266_Mega_WEBSERVER)**
>
> Complete Home Automation WebServer over WIFI module ESP8266-01 and Arduino Mega - GitHub - SamirTafesh/ESP8266\_Mega\_WEBSERVER: Complete Home Automation WebServer over WIFI module ESP8266-01 and Ard...

My interest now is to Communicate between Master Arduino and the sensors using I2C protocol over power line (using existing power wires at home)

Now i am communicating between two Arduinos Using Wires (Arduino to Arduino connection using SDA and SCL connectivity, it is working fine (my test is done between Nano and mega)

I have done my research regarding power line communication (PLC), and my conclusion is to use TDA5051 modem chip (NXP) originaly by Philips.

My question is: did any one tried to connect Arduino (Any Type) to TDA5051, and if yes please can you help with the Schematic, and i will share my project details and findings on the forum

Thank you  
Samir Tafesh

---

<div class="post-metadata">

**Author:** ![SamirTafesh](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/samirtafesh/32/224599_2.png) [@SamirTafesh](https://forum.arduino.cc/u/SamirTafesh)\
**Post date:** [March 26, 2016, 6:27pm UTC](https://forum.arduino.cc/t/home-automation-via-powerline-modem-tda5051-i2c/368726/2 "2016-03-26T18:27:10Z")

</div>

Hi to all,

My project of PowerLine communication (PLC) is now working perfectly,  
i am able to send data between two Arduinos over AC power lines

Cheers

---

<div class="post-metadata">

**Author:** ![SamirTafesh](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/samirtafesh/32/224599_2.png) [@SamirTafesh](https://forum.arduino.cc/u/SamirTafesh)\
**Post date:** [March 29, 2016, 5:27pm UTC](https://forum.arduino.cc/t/home-automation-via-powerline-modem-tda5051-i2c/368726/3 "2016-03-29T17:27:25Z")

</div>

Dears,

attached is my first working prototype of PLC comunication,

i am sending data from Arduino - TDA5051 - Powerline - TDA5051 - Arduino  
The results are as expetected

Cheers  
Samir Tafesh

 ![IMG_2370.JPG](https://europe1.discourse-cdn.com/arduino/original/4X/6/a/7/6a7fbe68f36a096f47814a9f3beb1f8a25cc292e.jpeg)

![IMG_2371.JPG](https://europe1.discourse-cdn.com/arduino/original/4X/2/e/d/2edb55fb19d66959d9cef1850b3d7005ffd7c8d3.jpeg)

---

<div class="post-metadata">

**Author:** ![SamirTafesh](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/samirtafesh/32/224599_2.png) [@SamirTafesh](https://forum.arduino.cc/u/SamirTafesh)\
**Post date:** [April 2, 2016, 4:18am UTC](https://forum.arduino.cc/t/home-automation-via-powerline-modem-tda5051-i2c/368726/4 "2016-04-02T04:18:39Z")

</div>

Hi every body,

[![](https://europe1.discourse-cdn.com/arduino/original/4X/7/5/b/75b7f3b96527e0bc6ee080a2d6c67960139e053f.jpeg "Powerline communication (PLC)") ](https://www.youtube.com/watch?v=ITzsOVux5es)

The link above is a small presentation of the modem using tda5051  
I presented in it a communication between two arduinos over power lines.

The setup is as follows:

Arduino - tda5051 - powerline - tda5051 - arduino

Having any inquiries please reply back

Samir tafesh

---

<div class="post-metadata">

**Author:** ![ruelj2](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@ruelj2](https://forum.arduino.cc/u/ruelj2)\
**Post date:** [April 23, 2016, 3:40pm UTC](https://forum.arduino.cc/t/home-automation-via-powerline-modem-tda5051-i2c/368726/5 "2016-04-23T15:40:19Z")

</div>

Great project Mr Tafesh, very useful! Do you get a lot of noïse over long distance (house lenght)?  
Could you share with us the shematic of your pcb and its components? Finaly, what is the data transfert speed?

Thank you so much!

---

<div class="post-metadata">

**Author:** ![SamirTafesh](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/samirtafesh/32/224599_2.png) [@SamirTafesh](https://forum.arduino.cc/u/SamirTafesh)\
**Post date:** [April 27, 2016, 3:32pm UTC](https://forum.arduino.cc/t/home-automation-via-powerline-modem-tda5051-i2c/368726/6 "2016-04-27T15:32:18Z")

</div>

Dear Mr. Ruelj,

Thank you for your reply and inquiry,  
in fact after my tests in my Home, it is giving very good results with low noise even on Generator power.  
the rate of the IC is 600 to 1200, in my applications i do not not need very high speed, the lower is the more accurate, most of my tests are done over 1200.

Please review my presentation on my YouTube channel: Samir Tafesh

[![](https://europe1.discourse-cdn.com/arduino/original/4X/e/2/6/e260fc3f18d773c4e091348afee631a58625a407.jpeg "IOT & M2M, Serial Communication Over Powerline (PLC)") ](https://www.youtube.com/watch?v=mUbpu3sr3Cc)

in this presentation i am showing how we can address Multiple Slave over Serial and PLC modem

Attached the Schematic and photos of the Board,  
Having any inquiry, please do not hesitate to contact me back

Samir Tafesh

 ![schematic0.3.png](https://europe1.discourse-cdn.com/arduino/original/4X/0/0/3/0033882c1e12708821320c527eb67934da6d10c1.png)

---

<div class="post-metadata">

**Author:** ![technobucks](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@technobucks](https://forum.arduino.cc/u/technobucks)\
**Post date:** [May 7, 2016, 6:14am UTC](https://forum.arduino.cc/t/home-automation-via-powerline-modem-tda5051-i2c/368726/7 "2016-05-07T06:14:23Z")

</div>

Dear Mr. Samir,

I am interested in developing more on your project. Currently I am working on a Lighting control system and would like to include PLC as the mode of communication.

Could you please let me know the codes that you prepared for your demo setup.

I also noticed that you have not used any Power regulators in your design. I would like to know how you are managing to get the 5V required for the Arduino Pro Mini.

Please contact me on technobucks at gmail dot com

---

<div class="post-metadata">

**Author:** ![SamirTafesh](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/samirtafesh/32/224599_2.png) [@SamirTafesh](https://forum.arduino.cc/u/SamirTafesh)\
**Post date:** [May 8, 2016, 9:52am UTC](https://forum.arduino.cc/t/home-automation-via-powerline-modem-tda5051-i2c/368726/8 "2016-05-08T09:52:42Z")

</div>

Dear technobucks,

Thank you for your interest in the project, and for your reply as well,

As for the Code it is based on RadioHead Serial library (former VirtualWire)  
I customized it to work with PLC (powerline communication).

As for the presentation, since the main goal was the PLC modem, Sorry, i did not mention that the arduino is powered normally through a TTL adapter, but definitly we can use any 5v power converter to power up the Arduino, eg: mobile charger or your own design of power converter.

Attached is the Master Code used for the demo

Having any inquiry, please do not hesitate to reply back on the forum, so every body will profit from our experience, or by email samir.tafesh at gmail dot com

Regards  
Samir Tafesh

[RadioHeadMasterHumanEntry.ino](https://forum.arduino.cc/uploads/short-url/qwvPQyGZoSkECFEUCyo069fSdgW.ino) (3.88 KB)

---

<div class="post-metadata">

**Author:** ![raetser](https://avatars.discourse-cdn.com/v4/letter/r/ebca7d/32.png) [@raetser](https://forum.arduino.cc/u/raetser)\
**Post date:** [August 23, 2016, 12:56pm UTC](https://forum.arduino.cc/t/home-automation-via-powerline-modem-tda5051-i2c/368726/9 "2016-08-23T12:56:17Z")

</div>

Hello Samir,  
I have been reading about your project with interest. I am looking for a solution to the following problem.  
I want to make a setup that reads the total amperage used on the incoming cables in my electric cabinet. (using 3 amp pickups connected to arduino for 3-phase), and then I would like to send that information over an electrical connection to another arduino that will control the consumption of some heavy electrical equipment depending on the info that it gets from the arduino in the electric cabinet.  
I have stumpled upon this modem:

> **[Power Line Carrier Communication Module KQ-330](https://instock.pk/power-line-carrier-communication-module-kq-330.html)**
>
> Power Line Carrier Communication Module KQ-330

Is this a good option you think? I am kind of new to all this stuff, but I find it very exiting...

Erwin

---

<div class="post-metadata">

**Author:** ![SamirTafesh](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/samirtafesh/32/224599_2.png) [@SamirTafesh](https://forum.arduino.cc/u/SamirTafesh)\
**Post date:** [August 24, 2016, 6:29am UTC](https://forum.arduino.cc/t/home-automation-via-powerline-modem-tda5051-i2c/368726/10 "2016-08-24T06:29:29Z")

</div>

Dear Raetser,

Thank you for your message, in fact it is a good device, and it should do the job,  
Having any inquiry, please do not hesitate to contact me back

regards  
Samir Tafesh

---

<div class="post-metadata">

**Author:** ![danpshyco](https://avatars.discourse-cdn.com/v4/letter/d/a5b964/32.png) [@danpshyco](https://forum.arduino.cc/u/danpshyco)\
**Post date:** [September 27, 2016, 11:15am UTC](https://forum.arduino.cc/t/home-automation-via-powerline-modem-tda5051-i2c/368726/11 "2016-09-27T11:15:26Z")

</div>

Hello,U use the schematics,but the transformer doesn,t exist on the pcb.U use the 2 wire to make short between the pins from transformer.The tranfomer must be 1:1 but i don,t know the tension.In your schematic work without tranformer in the main with 220v or u use only 2 wire without any tension to do the tests?Thanks

---

<div class="post-metadata">

**Author:** ![danpshyco](https://avatars.discourse-cdn.com/v4/letter/d/a5b964/32.png) [@danpshyco](https://forum.arduino.cc/u/danpshyco)\
**Post date:** [September 27, 2016, 11:23am UTC](https://forum.arduino.cc/t/home-automation-via-powerline-modem-tda5051-i2c/368726/12 "2016-09-27T11:23:50Z")

</div>

I wonder if u implement this project for the Blynk application.U can post even the ino code for a slave?  
I want to make a project contolled by the blynk application over the network(internet) and i don,t know how to to do exactly the communication between the master and the slaves arduino,s.I must put some id on the slaves?If u have some ideas.Thanks

---

<div class="post-metadata">

**Author:** ![SamirTafesh](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/samirtafesh/32/224599_2.png) [@SamirTafesh](https://forum.arduino.cc/u/SamirTafesh)\
**Post date:** [November 13, 2016, 4:39pm UTC](https://forum.arduino.cc/t/home-automation-via-powerline-modem-tda5051-i2c/368726/13 "2016-11-13T16:39:37Z")

</div>

Dear danpshyco,

thank you for the messages, and in fact the transformer is a 1:1 and it is used for isolation, the design can fully function baring in mind that it is not isolated, and at the time of the presentation my transformers were not arrived yet, so i presented without them, and yes there was 220V ac connected, you can check on my second video on youtube, you can see the graph on the oscilloscope

As for the client, yes we need to give each client an address

attached are the client and master source code, as well as the Radiohead library i used

Regards  
Samir Tafesh

[RadioHead-1.57.zip](https://forum.arduino.cc/uploads/short-url/qo2JasSxrYBXk2ULDQzialwOE8K.zip) (355 KB)

[RadioHeadClient.ino](https://forum.arduino.cc/uploads/short-url/1bCSN15EktHln4Zwjc0qf2t0NDh.ino) (3.4 KB)

[RadioHeadMasterHumanEntrySelect.ino](https://forum.arduino.cc/uploads/short-url/xIrCB1GtfaWkPlm7IyO1sRFnCBt.ino) (4.2 KB)

---

<div class="post-metadata">

**Author:** ![mega-hz](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/mega-hz/32/217848_2.png) [@mega-hz](https://forum.arduino.cc/u/mega-hz)\
**Post date:** [November 15, 2016, 7:57am UTC](https://forum.arduino.cc/t/home-automation-via-powerline-modem-tda5051-i2c/368726/14 "2016-11-15T07:57:32Z")

</div>

great... great!  
you got email!

---

<div class="post-metadata">

**Author:** ![mega-hz](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/mega-hz/32/217848_2.png) [@mega-hz](https://forum.arduino.cc/u/mega-hz)\
**Post date:** [December 5, 2016, 6:01pm UTC](https://forum.arduino.cc/t/home-automation-via-powerline-modem-tda5051-i2c/368726/15 "2016-12-05T18:01:28Z")

</div>

any news about your project?  
How does it run?

---

<div class="post-metadata">

**Author:** ![SamirTafesh](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/samirtafesh/32/224599_2.png) [@SamirTafesh](https://forum.arduino.cc/u/SamirTafesh)\
**Post date:** [December 5, 2016, 6:37pm UTC](https://forum.arduino.cc/t/home-automation-via-powerline-modem-tda5051-i2c/368726/16 "2016-12-05T18:37:38Z")

</div>

Dear Mega-hz,  
The project is finalized, and it is giving good result, please check the demo

[![](https://europe1.discourse-cdn.com/arduino/original/4X/e/2/6/e260fc3f18d773c4e091348afee631a58625a407.jpeg "IOT & M2M, Serial Communication Over Powerline (PLC)") ](https://www.youtube.com/watch?v=mUbpu3sr3Cc)

my email samir.tafesh at gmail com

regards  
Samir Tafesh

---

<div class="post-metadata">

**Author:** ![mega-hz](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/mega-hz/32/217848_2.png) [@mega-hz](https://forum.arduino.cc/u/mega-hz)\
**Post date:** [December 5, 2016, 6:44pm UTC](https://forum.arduino.cc/t/home-automation-via-powerline-modem-tda5051-i2c/368726/17 "2016-12-05T18:44:45Z")

</div>

i already send a email to you, pls check your spam!

---

<div class="post-metadata">

**Author:** ![SamirTafesh](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/samirtafesh/32/224599_2.png) [@SamirTafesh](https://forum.arduino.cc/u/SamirTafesh)\
**Post date:** [December 9, 2016, 2:03pm UTC](https://forum.arduino.cc/t/home-automation-via-powerline-modem-tda5051-i2c/368726/18 "2016-12-09T14:03:29Z")

</div>

Dear mega-hz,

Sorry, i have not received any email from your side, would you please resend  
samir.tafesh at gmail dot com

regards  
Samir Tafesh

---

<div class="post-metadata">

**Author:** ![mega-hz](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/mega-hz/32/217848_2.png) [@mega-hz](https://forum.arduino.cc/u/mega-hz)\
**Post date:** [December 9, 2016, 9:51pm UTC](https://forum.arduino.cc/t/home-automation-via-powerline-modem-tda5051-i2c/368726/19 "2016-12-09T21:51:01Z")

</div>

i send it again

---

<div class="post-metadata">

**Author:** ![williammatias](https://avatars.discourse-cdn.com/v4/letter/w/dfb087/32.png) [@williammatias](https://forum.arduino.cc/u/williammatias)\
**Post date:** [January 6, 2017, 2:53pm UTC](https://forum.arduino.cc/t/home-automation-via-powerline-modem-tda5051-i2c/368726/20 "2017-01-06T14:53:20Z")

</div>

bom dia, esse circuito e possivel aplica a outros protocolos de rede

[Next page](https://forum.arduino.cc/t/home-automation-via-powerline-modem-tda5051-i2c/368726.md?page=2)
