element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Forget Me Not Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Forget Me Not Design Challenge
  • More
  • Cancel
Forget Me Not Design Challenge
Blog "Remember Me Always" - Part 026
  • Blog
  • Forum
  • Documents
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: COMPACT
  • Date Created: 23 Oct 2014 12:27 AM Date Created
  • Views 614 views
  • Likes 0 likes
  • Comments 1 comment
  • forget_me_not
  • raspberry
  • pi
  • remember_always
Related
Recommended

"Remember Me Always" - Part 026

COMPACT
COMPACT
23 Oct 2014

The X Files - Do you want to Believe?

 


That X10 originated in Scotland? Well apparently it did in 1975.

For those who don't know X10 of a power line and radio protocol that is used for controlling home lighting and appliances.

For power line transmission a parasitic signalling regime that is sent over domestic electrical wiring. The radio protocol was introduced later to support wireless remote control and operates on the 433MHz band (310MHz in the USA).

The powerline method is an ancient ancestor of the Ethernet powerline adapters but very much simpler for simple and slow transfers (that doesn't need the use of orthogonal frequency-division multiplexing (OFDM)).

X10 uses the zero crossing point of the host single to synchronise communications and sends bits of information in 1ms bursts of 120kHz. The presence of a 120kHz signal at a zero crossing represents a '1' and its absence represents a '0'

These bits are built up into datagrams that are easily decipherable to represent HOUSE network address, DEVICE address, desired function and so on and so forth.

X10 signals are easily generated by microprocessors and microcontrollers but to make interfacing simpler dedicated X10 gateway products such as the CM11A and CM12 are used to present a simple RS232 interface.

 


I can think of at least three ways to connect up X10 to the Raspberry Pi and OpenHAB especially if you have an CM11A or CM12.

The hardware consideration is using a RS232 interface driver to get the signalling levels correct.

There are at least three methods of software integration. One method is to use a dedicated binding, another is to use the Serial Binding with some associated CM12 driving control and thirdly is to make use of a PSoC to act as an CM12 gateway.

I don't consider getting the Raspberry Pi to bit bash as a feasible method because of the overhead involved (especially if you also want to bit bash a 1-wire interface as well).

 


The Raspberry Pi only has one available serial port /dev/ttyAMA0 and this normally used as a console port.

By simple system reconfiguration its use as a console port can be easily disabled.

However if you wish to use an EnOcean PI you'll have to dream up of some way to make both systems co-exist on the same serial bus in a multi host fashion or provide another serial port for the X10 gateway.

 


I've taking an alternative approach by using a separate Raspberry Pis for Remote X10 and EnOcean Gateways. This means that I can have as many as I want without having to worry about Serial port contention or adding more serial ports to a Raspberry Pi.

  • Sign in to reply
  • DAB
    DAB over 10 years ago

    Hi Monte,

     

    Neat way to integrate different systems into home automation.

    It is very realistic to consider that new technology will evolve and you will want to enhance your installation over time.

    Building in the capability to interface new devices is a very nice touch.

     

    DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube