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 Part 3
  • 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: 14 Oct 2014 7:13 AM Date Created
  • Views 1647 views
  • Likes 1 like
  • Comments 9 comments
  • forget_me_not
  • minion
  • dave
  • b+
  • design_challenge
  • openhab
  • iot_eldermon
  • tektronix
  • rpisoc
  • eclipse
  • internet_of_things
  • enocean
  • raspberrypi
  • smarthome
  • challenge
  • iot
  • tim
  • enocean_pi
Related
Recommended

eLDERmon  EnOcean Sensors Part 3

mcb1
mcb1
14 Oct 2014

eLDERmon  EnOcean Sensors

 

This post follows my last posts on sensors, and integration into openHAB

 

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
eLDERmon EnOcean Sensors
eLDERmon EnOcean Sensors Part 2

 

I managed to work out that these were the settings that openHAB could use

{ enocean="{id=00:83:1D:FA, eep=A5:07:03, parameter=MOVEMENT}" }

{ enocean="{id=01:81:7B:88, eep=A5:07:03, parameter=ILLUMINANCE}" }

 

and I changed the configuration to reflect this, fired it up and image

 

 

It seems that no matter what I did, the STM310 would not allow a variable setting.

 

 

 

FIRMWARE

After consulting the EnOcean manual for the STM310 and the STM330 it became apparent that they use the same hardware.

The STM330 manual states

    If you want to connect other generic sensors to STM 33x (former STM 310 applications), you can download STEMSEN Software from following link: http://www.enocean.com/en/download/


So armed with that information I did some other checks


 
imageimage

                    STM310 Features                                                                                                        STM330 Features


So it seemed that you could program a STM310 with STM330 firmware and providing you didn't want a calibrated Temperature Sensor, it should work.



The next problem was what profile to program it with.

Looking at Dolphin Studio, under STM330 you have the following :-

image


None of these align with openHAB A5-07-03


The manual (Ver 1.15) shows a different version of Dolphin Studio and has these options


image

              STM330 Ver 1.15 Page 20


Since our version and the manual don't match, that wasn't going to help me.



If you check the manual, it shows the connections for the Set point and Occupancy Control


image

                    Set Point and Occupancy connections (page 25)

and from the manual

image

image

 

This gives me some connection points,

If you look at profile A5-10-05 it allows for Temperature, Set Point and Occupancy

image

 

At this stage there was little to lose, since I'd spent a lot of time already and didn't want to resort to external devices.

 

 

Test

I decided to program 2 units, and I hedged my bet and programmed  them differently, just so I didn't need to stop and start openHAB.

 

I' happy to report it worked, and I could obtain a reading, which also updated at regular intervals.

The results were as expected, considering they were on the programmer with a fixed value to simulate the LDR.

image

          I massaged this image to include both labels

 

As the graph shows, the 'raw' Light level reading is large compared with the temperatures, and while the graph scales, it will not show what I wanted.

 

I could either use hardware and adjust the range using a few resistors, or add a rule.

 

I searched and struggled with the correct syntax for the rule to work  ...  for far too long.

Since I'm not a software guru, I was getting stuck.

 

In the end I reached out to fvan who came back very quickly with the required code ..... so it looks like I owe him big time.

 

rule "Update Living Light Level"
when
    Item Living_Light_Level received update
        then
        var new_Living_light_level = Living_Light_Level.state as DecimalType
        var modified_Living_light_level = new_Living_light_level.floatValue/20
        postUpdate(Living_Light_Graph, modified_Living_light_level )

end

 

The value is divided by 20, to give a much better picture, when coupled with the cause.

image

While this is artificial, it shows the movement, and then the light level change as a result of the movement.

ie Granny is up and has opened the curtains.  image

 

Ignoring the times in this simulation, we can check if was earlier or later than normal, but we can see that it was good light (ie not a cloudy miserable day), and we can expect the temperature to climb.

 

 

Sensor connection

For my testing I have simply used the EOP350 programmer.

I connected a jumper across the WAKE0 (STM 3xx pin 2) to GND (pin 5) and set the firmware for a 'falling edge' trigger.

A variable resistor wheel between ADIO0 (pin 9) and SWPWR (pin 8) simulates the LDR and I fully expect the range to change.

 

For my application, I'm not after accurate figures, just a reading that is meaningful.

 

Best of all this one is self powered.

 

 

Mark

  • Sign in to reply

Top Comments

  • DAB
    DAB over 10 years ago +1
    Hi Mark, Good update. I didn't know you were a graphics masseuse. DAB
  • mcb1
    mcb1 over 10 years ago in reply to jw0752

    Thanks John.

    Age is a great teacher ... I was under no illusion that there would be road blocks along the way.

     

    Mark

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

    Thanks

     

    My persistence is pretty broad, but could be reduced later on.

    Rather than fixed graphs, its very flexible and you can chose what to view and then zoom in.

     

    The 'Teach in' is where pressing the button sends the ID and the profile it is programmed with.

    I've seen reference in some forums, where you press the 'Teach-in' three times and the software sets it up.

     

    The Dolphin Studio allows quite a bit of configuration settings, and is generic across the whole range.

    EnOcean have generously allowed it to be downloaded at no cost, which reinforces their support for the technology.

     

    Mark

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

    IP

    I used the org.openhab.binding.enocean-1.5.1.jar as suggested by verrverr in this post.

    Pas Home / OpenHAB + HSM 100 Humidity sensor

     

    It appears to use the same underlying eep profiles, but maybe other bits are different.

     

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mcb1
    mcb1 over 10 years ago in reply to DAB
    I didn't know you were a graphics masseuse.

    Not exactly, but I have been known to alter the odd image.  image


    Mark

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

    Hi Mark,

     

    Good update.

     

    I didn't know you were a graphics masseuse.

     

    DAB

    • Cancel
    • Vote Up +1 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