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 Fireman Minion: STM330 Temp-Sensor with custom Analog and Digital Input (Part1)
  • Blog
  • Forum
  • Documents
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ravi_butani
  • Date Created: 16 Sep 2014 9:45 AM Date Created
  • Views 1054 views
  • Likes 3 likes
  • Comments 2 comments
  • forget_me_not
  • openhab
  • minions
  • tektronix
  • enocean
  • raspberry-pi
  • iot_homeauto
Related
Recommended

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

ravi_butani
ravi_butani
16 Sep 2014

Table of Contents


If you are looking for interfacing your custom made Analog and Digital Sensor with STM330, This post will be like fireman minion for you.... So this post is dedicated to fireman minion...


image


Introduction :

As like me, may be you are also amazed by ultra low power and energy harvesting capabilities of Enocean Sensors. I have looked at many initial proposals for "forget_me_not design challenge", planned to use STM330 with DIY Sensors, including proposal of mine...


I have progressed well in this direction and came up with fruitful solution for same today with this post.

 

First demonstration of interfacing two analog inputs with STM330...

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image


All the juice of this post is at bottom of post... "Attachment"


image


Lets start...............


Interfacing Possibilities with STM330 As per my attached firmwares...

1. Two Analog Input (ADIO0 and ADIO1)

2. One Analog Input (ADIO0) and One Digital Input (WAKE0)

3. One Analog Input (On Chip Temp-Sensor) and One Digital Input (WAKE0)

4. One Analog Input (On Chip Temp-Sensor) and One Analog Input (ADIO0)



Now its Time for DIY.....

Interfacing Two Analog Input (ADIO0 and ADIO1) with STM330.


What you need for this?


A. EOP350 EnOcean Programmer (We all Have... Thanks to EnOcean)

B. STM330 Temperature Sensor (Obviously!!!)

C. Dolphin Studio (To burn Hex file and Setup configuration Area on STM330..)

D. Attachment with this post (All type of firmware you may need....)

E. Rpi with Enocean Transceiver and OpenHAB Installed (To check results...)


Steps at Dolphin Studio Side....


Step1 : Download Attachment of this post and unzip to any directory

Step2 : Attach STM330 on EOP350 Programmer and Power-up EOP350 from USB port of PC.


image

Step3 : Run Dolphin Studio on your PC.

Step4 : Select EOPX Programmer Tab and set File location from unzipped attachment as per your STM330 Freq and required Interface, finally Execute to burn new firmware to your STM330.


image

Step5: Still Default EEP profile is A5:02:05 (T Only) with Hardware configuration, Change this to A5:04:01 (T-H) and some extra setup to override hardware setting for Redundant transmission and wakeup cycles timing To speed up testing.

  image


image

 


 

image

Step 6: STM330 is ready with new firmware... Now it works with power supply from EOP350... So dont remove STM330 from EOP350 because new firmware send out teligrms quickly and solarcell  cant provide enough for power at this transmission rate...(after testing you can reconfigure redundant transmission and wakeup cycle to control it from hardware to save power by decreasing transmission rate)


Step 7: Hardware Setup for ADIO_0 and ADIO_1 on EOP350


image



image


Now steps to test new firmware at raspberrypi side...


Step 8: As all my STM330 firmware supports EEP profile A5:04:01 with Temperature and humidity sensor, you need to use different bindings with openhab. So move org.openhab.binding.enocean-1.5.1.jar from attachment to addons directory of Runtime OpenHAB Installation and remove org.openhab.binding.enocean-1.5.0.jar from addons directory.


Step 9: add this lines to demo.items with your STM330 Device ID

Number EnOcean_sensor_temp "Temperature [%.1f °C]" <temperature> (enocean) {enocean="{id=00:83:02:70, eep=A5:04:01, parameter=TEMPERATURE}"}
Number EnOcean_sensor_humd "Humidity [%.1f %%]" <humidity> (enocean) {enocean="{id=00:83:02:70, eep=A5:04:01, parameter=HUMIDITY}"}


Step 10: add this lines to demo.sitemap

Text item=EnOcean_sensor_temp valuecolor=[>25="orange",>15="green",>5="orange",<=5="blue"]
  Text item=EnOcean_sensor_humd valuecolor=[>25="orange",>15="green",>5="orange",<=5="blue"]


Step 11: run openHAB ....move pot of ADIO0 and ADIO1 and see the readings on openHAB URL.... ENJOY.....


Note:

** Firmware used for this test shows ADIO0 readings with temperature parameter (mapped between 0 to 40) and ADIO1 readings on Humidity Parameter (mapped between 0 to 100)

 

** You can use any firmware as per your interface requirement.

readme.txt file with each firmware have details for mapping and other hardware specific information

 

All 315MHz firmwares I have tested on my STM330, and other are compiled for 902MHz and 868MHz but not tested...


for any query please let me know....


I have used keil C51 for modify source code of STM330 to interface Analog and digital sensors to STM330.

If you need updated source codes to play with please let me know...


This post is all about Fruits .... My work to get these fruits will come soon....Because This time my daughter is all prepared to welcome "fireman minion " at his new Home in INDIA... and I don't want to miss dead line...

 

In next post I will share step by step working with keil to modify STM330 Sourcecode as per need and some of my custom build sensors working with STM330...

 

Hope this post will be useful to all....your valuable feedback invited here...


<< Previous

Home

Next >>

Attachments:
STM330_with_custom_sensors.rar
  • Sign in to reply

Top Comments

  • DAB
    DAB over 11 years ago +1
    Very good update. I look forward to seeing how this project works out. DAB
  • ravi_butani
    ravi_butani over 11 years ago

    I have edited this post with video demo for interfacing analog inputs with STM330..

    STM330 with External Analog Inputs

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

    Very good update.

     

    I look forward to seeing how this project works out.

     

    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