Arduino Forum

Topics => Home Automation and Networked Objects => Topic started by: SamirTafesh on Feb 28, 2016, 12:48 pm

Title: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: SamirTafesh on Feb 28, 2016, 12:48 pm
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 

https://github.com/SamirTafesh/ESP8266_Mega_WEBSERVER


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
Title: Re: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: SamirTafesh on Mar 26, 2016, 07:27 pm
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
Title: Re: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: SamirTafesh on Mar 29, 2016, 07:27 pm
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
Title: Re: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: SamirTafesh on Apr 02, 2016, 06:18 am
Hi every body,

https://youtu.be/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
Title: Re: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: ruelj2 on Apr 23, 2016, 05:40 pm
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!
Title: Re: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: SamirTafesh on Apr 27, 2016, 05:32 pm
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://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
 
Title: Re: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: technobucks on May 07, 2016, 08:14 am
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

Title: Re: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: SamirTafesh on May 08, 2016, 11:52 am
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
Title: Re: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: raetser on Aug 23, 2016, 02:56 pm
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:

http://www.instock.pk/power-line-carrier-communication-module-kq-330.html (http://www.instock.pk/power-line-carrier-communication-module-kq-330.html)

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

Erwin
Title: Re: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: SamirTafesh on Aug 24, 2016, 08:29 am
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
Title: Re: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: danpshyco on Sep 27, 2016, 01:15 pm
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
Title: Re: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: danpshyco on Sep 27, 2016, 01:23 pm
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
Title: Re: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: SamirTafesh on Nov 13, 2016, 05:39 pm
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
Title: Re: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: mega-hz on Nov 15, 2016, 08:57 am
great... great!
you got email!
Title: Re: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: mega-hz on Dec 05, 2016, 07:01 pm
any news about your project?
How does it run?
Title: Re: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: SamirTafesh on Dec 05, 2016, 07:37 pm
Dear Mega-hz,
The project is finalized, and it is giving good result, please check the demo
https://www.youtube.com/watch?v=mUbpu3sr3Cc&t=415s

my email samir.tafesh at gmail com

regards
Samir Tafesh
Title: Re: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: mega-hz on Dec 05, 2016, 07:44 pm
i already send a email to you, pls check your spam!
Title: Re: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: SamirTafesh on Dec 09, 2016, 03:03 pm
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
Title: Re: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: mega-hz on Dec 09, 2016, 10:51 pm
i send it again
Title: Re: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: williammatias on Jan 06, 2017, 03:53 pm
bom dia, esse circuito e possivel aplica a outros protocolos de rede
Title: Re: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: hussain53 on Apr 07, 2017, 09:20 am
I bought a esp-01 from w11stop.com and was getting the same problem, the code was not burning in the esp01 but then i came to know that I am making a mistake, to burn the code in esp8266 the 0 pin should be grounded.
Title: Re: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: leocat3 on Jun 27, 2017, 09:01 am
Hi, Samir!
Interest in low-speed PLS modems there still present?
Maybe my modem is interesting?
https://hackaday.io/project/21492-arduino-shield-as-powerline-plc-modem
Title: Re: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: AlessandraP on Sep 15, 2017, 01:26 am
Hi Samir,

Which transformer did you use?
Title: Re: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: mega-hz on Sep 15, 2017, 07:12 am
Hi, Samir!
Interest in low-speed PLS modems there still present?
Maybe my modem is interesting?
https://hackaday.io/project/21492-arduino-shield-as-powerline-plc-modem
That looks really great!
I have big interest in this projekt!
What is the state of the firmware?
How does one setup the adress for each Device?
Title: Re: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: koshala123 on Oct 26, 2017, 11:52 am
Even I did this project , using his  radio head measter code , and the radio head server example , it was a success , didn't test the range still . The problem I have is the range is so low . In our schematic I used a varessistor just in case if there is a voltage spike .
Title: Re: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: Watcher on Nov 04, 2017, 10:57 am
Hi all

I have also been experimenting with the same chip. I have desinged an arduino micro compatible board with built-in PLC module . See picture.

(https://forum.arduino.cc/index.php?action=dlattach;topic=382590.0;attach=232178)

Howver I am getting mixed results when transmitting with the PLC various control packets using software serial port at at 1200 bbs.

Se below a typical example

Code: [Select]


PLC Out Packet:B C FE FF FE EF FD 1 65 52 68

PLC In: Packet 1ST ATTEMPT  : B F FE FF FE EF FD 11 65 52 68 -> wrong - CRC fails
                     2ND ATTEMPT  : B C FE FF FE EF FD 31 65 52 68 -> wrong - CRC fails


PLC Out Packet: F 1 65 1 52 EF FF FF FF 1 FE 1 1 AF EE     
PLC In   Packet: F 1 65 1 52 EF FF FF FF 1 FE 1 1 AF EE   -> correct




The last two bytes of the packets are CRC bytes to check correct reception of the packet.


Anyone has anything to suggest ?





Title: Re: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: ASIF01 on Nov 04, 2017, 02:05 pm
Hello...
I am working on Home automation through power line communication.
Need some help
 
Title: Re: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: Watcher on Nov 04, 2017, 02:09 pm
Hello...
I am working on Home automation through power line communication.
Need some help
 
Very descriptive and to the point your post!


Title: Re: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: koshala123 on Nov 06, 2017, 06:12 am
Hi all

I have also been experimenting with the same chip. I have desinged an arduino micro compatible board with built-in PLC module . See picture.

(https://forum.arduino.cc/index.php?action=dlattach;topic=382590.0;attach=232178)

Howver I am getting mixed results when transmitting with the PLC various control packets using software serial port at at 1200 bbs.

Se below a typical example

Code: [Select]


PLC Out Packet:B C FE FF FE EF FD 1 65 52 68

PLC In: Packet 1ST ATTEMPT  : B F FE FF FE EF FD 11 65 52 68 -> wrong - CRC fails
                     2ND ATTEMPT  : B C FE FF FE EF FD 31 65 52 68 -> wrong - CRC fails


PLC Out Packet: F 1 65 1 52 EF FF FF FF 1 FE 1 1 AF EE     
PLC In   Packet: F 1 65 1 52 EF FF FF FF 1 FE 1 1 AF EE   -> correct




The last two bytes of the packets are CRC bytes to check correct reception of the packet.


Anyone has anything to suggest ?






Mr. watcher , I would like to know what were you range test results , mine were soo poor . I Uploaded the Radio head library and made The same schematic which was made by the person who started this topic on this forum, Any suggestions to increase the Range ?
Title: Re: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: Watcher on Nov 06, 2017, 11:09 am
Mr. watcher , I would like to know what were you range test results , mine were soo poor . I Uploaded the Radio head library and made The same schematic which was made by the person who started this topic on this forum, Any suggestions to increase the Range ?
What do you mean by range in this case? If you mean how far apart they are, I have only tested everything within the same room, connected to different mains outlets.
Title: Re: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: koshala123 on Nov 07, 2017, 04:59 am
What do you mean by range in this case? If you mean how far apart they are, I have only tested everything within the same room, connected to different mains outlets.
In my case I tested inside the room , it didn't go that far(only to the nearest socket) , what's the schematic you made (As in something close to the Data sheet which NXP have provided or something else ?) and the code you uploaded (I used the Radio head library what did you use )?  I'm planning to do this as my final year project in my university hope you'll be able to help with it .
Title: Re: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: Watcher on Nov 08, 2017, 06:55 pm
In my case I tested inside the room , it didn't go that far(only to the nearest socket) , what's the schematic you made (As in something close to the Data sheet which NXP have provided or something else ?) and the code you uploaded (I used the Radio head library what did you use )?  I'm planning to do this as my final year project in my university hope you'll be able to help with it .
I used the sample schematic given in the datasheet. Look for the isolated version with a transformer and with increased input sensitivity.

As for the code, I am using a particular code which supports a certain protocol that I am using.

First of all try to get communication established. For example send simple bytes from one serial port to the other and have it displayed on the PC. Once this is done, then you can move to something more complex.
Title: Re: Home Automation - Via Powerline Modem TDA5051 - I2C
Post by: meysam1979 on Mar 22, 2019, 11:42 am
Hi Dear Samir,

First, I like your post; however, I can understand your code(radioheadmasterhumanentry)
I am new in Arduino and I want to start Tda5051. Could you help me to send a master and slave sample code with Library?
i only want to have one led and one switch in master and slave board.
Looking forward to hearing from you soon with best regards
rmeysam@gmail.com