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 eLDERmon  EnOcean Sensors
  • Blog
  • Forum
  • Documents
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: mcb1
  • Date Created: 3 Oct 2014 1:34 AM Date Created
  • Views 871 views
  • Likes 0 likes
  • Comments 4 comments
  • forget_me_not
  • minion
  • dave
  • b+
  • design_challenge
  • openhab
  • iot_eldermon
  • tektronix
  • eclipse
  • internet_of_things
  • enocean
  • raspberrypi
  • smarthome
  • challenge
  • iot
  • tim
  • enocean_pi
Related
Recommended

eLDERmon  EnOcean Sensors

mcb1
mcb1
3 Oct 2014
Link to other posts
Forget Me Not : eLDERmon Intro
Forget Me Not :  eLDERmon  Electrical
Forget Me Not :  eLDERmon  Outlets
Forget Me Not : eLDERmon Planning
Forget Me Not : eLDERmon Parts 1
Forget Me Not :  eLDERmon  Sponsor Parts
Forget Me Not : eLDERmon Hardware Hacking
Forget Me Not : eLDERmon GNUplot
Forget Me Not: eLDERmon Protocol
Forget Me Not : eLDERmon Hardware Hacking #2
Forget Me Not : eLDERmon Hardware Hacking #3
Forget Me Not : eLDERmon Tim
Forget Me Not : eLDERmon Charts
Forget Me Not : LPG Level

 

 

This week I've been trying to sort out using PIR's and LDR's with the EnOcen sensors.

 

LUX

Here in NZ if you mention Lux, there will be someone asking what soap has to do with the electronics.

However in this case its a measurement of the amount of light.

 

I wanted to have some measure to ensure that curtains and available light was being used.

As I've discovered with the Temperature Graphs, its also a good idea to work out what time they have been getting up ...especially since I'm going to work and they are on School Holidays.

 

Obviously if 'granny' is not opening the curtains for a day or so, and we know the outside light levels are high, then there is something worth checking.

When you combine this with the pantry door not opening around the usual time, its probably time to make that phone call, or surprise visit.

 

I was hoping to have graphed some figures for the illumination but as luck would have it, the header sockets I ordered last week, were non stock, and arrived yesterday.

I'm hoping to sort out some sensors tomorrow, and they can record while I'm away over the weekend.

 

 

Occupancy

There is a very good Application Note for a Wall or Ceiling mounted sensors for room occupancy.

http://www.enocean.com/fileadmin/redaktion/pdf/app_notes/AN311_MOTION_SENSOR_BASED_ON_STM300.pdf

 

The advantage of these is that they are un-powered like the other sensors.

While they are used predominately to keep a light going and this is perfect for the intended purpose, this is not exactly what I wanted.

 

Looking at the code it appears they control a different pin to power the sensor, which then triggers the transmitter into sending a telegram.

If I've read it right the input is ignored for 5 secs after the WAKE0 is driven LOW, which sends the telegram.

 

So in theory I could power the PIR and use the sensor.

I have reprogrammed a STM310 with the code, and I immediately struck an issue with the wrong radio-conformity.

 

I was unable to find the revised XML file the error note referred to, so I edited the configuration to use the correct file.

image

          It seems that changing the last digit to 2F set the radio to ver 1.47 and all was happy.

 

ravi butani  has done a very good job of describing how to use the EOP350 programmer, so I'm not going to repeat it here.

Fireman Minion: STM330 Temp-Sensor with custom Analog and Digital Input (Part1)

 

 

Configuration

The Application Note included a zip file for reprogramming the sensor and was targeted at a STM300, but seems to work on a STM310.

You cannot change any parameters or settings, so don't bother trying.

 

 

Testing

I used Dolphin View and the Programmer with the TCM320 to view the results.

It shows a value of 255 when its triggered but stays quiet when not triggered ... so I might need timer in my rule.

 

 

 

OpenHAB

One thing I cannot find easily is the settings for each of these sensors in OpenHAB.

 

I downloaded a viewer to see the internals of the .jar file based on comments made here windows - How can I open Java .class files in a human-readable way? - Stack Overflow

Java Decompiler

I have to say it is very good and fast.

 

I wanted to see the association with

{ enocean="{id=01:81:8A:B3, eep=A5:04:01, parameter=TEMPERATURE}" }

{ enocean="{id=01:81:8A:B3, eep=A5:04:01, parameter=HUMIDITY}" }

 

Just how does openHAB know which piece is the data is Temperature and which is the Humidity.

How does it know what to do with it, because while I found the one for 'illumination'

{ enocean="{id=00:83:2C:D6, eep=A5:06:03, parameter=ILLUMINANCE}" }

 

I cannot find anything for the occupancy or PIR sensor.

 

 

So my quest is continuing.

 

edit

See Part 2 here
eLDERmon EnOcean Sensors Part 2

 

I've run out of time before going away, and managed to upset two other sensors.

I think I changed their profile remotely using Dolphin View....

 

So I've shut it down and will resume on Sunday night when I return.

 

Mark

 


Oh my remote control of Tim arrived, along with his cousin Dave.
So I might need to look at hacking them both.
  • Sign in to reply
  • mcb1
    mcb1 over 10 years ago

    thanks Ravi

     

    I've added part 2 here

    http://www.element14.com/community/people/mcb1/blog/2014/10/06/eldermon-enocean-sensors-part2

     

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • ravi_butani
    ravi_butani over 10 years ago

    Nice post....

     

    I like java decompiler....

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mcb1
    mcb1 over 10 years ago in reply to DAB

    Don

    Are you looking for just intensity or any spectral component?

    No just an indication that the curtains are open is mostly what it shows.

     

     

    The PIR should get you a reliable human occupancy, but a large dog would potentially set it off

    Yes .. you're correct and this probably needs to be factored into someone looking at monitoring.

     

    A really long time ago we had a family dog, it generally stayed in one area or another, but certainly would influence the readings.

    In the overall scheme, the movement is just another piece of information.

     

     

    Thanks for the comments and thoughts though.

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 10 years ago

    Lux, I thought you said LEXX and wondered how that scifi show fit in with your project.

    Are you looking for just intensity or any spectral component?

     

    The PIR should get you a reliable human occupancy, but a large dog would potentially set it off.

     

    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