Power-line communication. Part 2 - Main blocks of the device

Part 1 - Fundamentals of Power Line Data Transmission





In the first part of the article, we briefly familiarized ourselves with the basic concepts of data transmission over power lines. We learned what a β€œuseful signal” is, how it can be used to encode the transmitted information. But there was not a word about how this device should be made physically, how it would generate a signal, and how it would generally be connected to a 220 V.





In this and the next parts of the article, we will describe what basic blocks should be in the simplest PLC data transmission device . Gradually, as a constructor, we will add block by block to the overall picture and figure out what each block is for and how it works.





-

- β€”

-

-

-





: . , , , , . - , , .









1, . . , . (FSK ).





β€” β€” , / . ( ) .





: β€œ0”, β€œ ” 74 . β€œ1”, , , 80 . , . , .









β€œS”, . . β€œS”, . β€œ0” β€œ1”.





β€” β€œzero cross ”.





, β€” , PLC (). / ZC .





, ZC β€œ ” . 74 80 .





, , PLC . . β€œ ”.





β€” , ZC , β€œ ” PLC , .





, β€œβ€ . β€œ ” β€œ ”.





, , .





220 , ZC , .





β€”

β€” , : , , , ..





β€” -, (), ( ), - . , : . β€œβ€, .





   digikey.com
digikey.com

. , , (, , ). , . USB .





. . , , , Linux, β€œATtiny”. , , .





. , .





, : β€œ0” β€œ1”. . .





, 10 , . .





, (). .





, , .





74 80 . 74 , β€œ0”.





80 , β€œ1”.





, - : β€œ0” β€œ1”, . β€” β€” .





β€” , , β€œ0” β€œ1” , . .





. . .





, , , . , -.





, :













  • ( USB CAN, , , , - ..)





10 . 100%, - . .





β€” . , . β€œ ” .





: , , . , ( ).





, . , . . .





[ ].





, . - β€” 4-5. .





, , 80 . 80 1/80000 = 12,5. 5 2.5 .





. .





? , ? .





, , .





.





, , , β€œ ”.





. , ( , ).





80 , 12.5 . 4 . 3.125 .





, .





. 1.56 .





, . , 80 , 1.5 . , .





β€œ ”.





, 8- AVR Atmel ATmega8, . . .





, β€œβ€ . 2.5, β€œ1”, 2.5, β€œ0”. .





β€œ ” . , .





ATmega8 . , .





, R-2R. .





   easyelectronics.ru
easyelectronics.ru

0 1 , β€œOUT”. , . R-2R .





ATmega8 , . , STM32. β€” STM32F103 β€” 32- ARM Cortex-M3 ( 72 MHz).





, , , . , .





, .





?

72 MHz, 8- 20 MHz . .





?

40-50 . 100 . .





?

, 72 MHz. , 80 , .





STM32 , : ( 1.5 ) 12.5 . 14 .





14 MHz. , 14 14 MHz β€” 1 .





! 100 , 10 . , .





80 .





?

80 . , , , 1.5 , .





, , STM32F103 1 MSPS. 1 .





80 .





STM32F103 β€” USB. COM . , USB-UART.





- .





PLC , ASCII , . - 220 .





, , . , , .





, , . , .





. β€œβ€ β€” β€œ ”, .





β€œ ”, EEPROM - UART .





β€” . ( ).





: , β€œ ” . , , .





10 1 .





. , β€” . , . . - , , , .





, .





1 -

β€” .





β€œGND” β€” . - .





β€œβ€ (, EEPROM ..) , β€œDGND”.





β€œ ” , , β€œAGND”. .





2 -

. , Datasheet .





    allexpress.com
allexpress.com

, , .





, :).





β€œβ€ β€œReset” , Datasheet. . , .





3 -

, , .





.





   caxapa.ru " ,  "
caxapa.ru " , "

.





. .





. . . .





: , zc 220 . . : , ..





/ - PLC :)





https://nag.ru/articles/article/24485/strasti-po-plc.html - PLC

https://www.electronshik.ru/catalog/interfeys-modemy-plc - PLC datasheet ( )

https://ru.wikipedia.org/wiki/_ - FSK

http://www.atmega8.ru/ - ATmega8



STM32

https://www.st.com/en/microcontrollers-microprocessors/stm32f103.html - STM32F103

https://themagicsmoke.ru/courses/stm32/led.html - β€œ ” stm32

https://blog.avislab.com/stm32-clock_ru - stm32

https://habr.com/ru/post/312810/ - stm32

https://blog.avislab.com/stm32-adc_ru/ - stm32

https://blog.avislab.com/stm32-usb_ru/ - USB stm32





http://easyelectronics.ru/parallelnyj-cifro-analogovyj-preobrazovatel-po-sxeme-r-2r.html - R-2R

http://caxapa.ru/lib/emc_immunity.html - " ",

https://www.ruselectronic.com/passive-filters -








All Articles