element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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
Energy Harvesting Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Energy Harvesting Design Challenge
  • More
  • Cancel
Energy Harvesting Design Challenge
Blog Progress, temperature measurement
  • Blog
  • Forum
  • Documents
  • Files
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: vsluiter
  • Date Created: 29 May 2013 6:20 AM Date Created
  • Views 615 views
  • Likes 3 likes
  • Comments 3 comments
  • energy_harvesting
  • efm32
  • energy_micro
  • energy_saving
  • energy_harvesting_challenge
  • energy_harvesting_source
Related
Recommended

Progress, temperature measurement

vsluiter
vsluiter
29 May 2013

Hello!

 

It's been a bit silent in the Energy Harvesting Blog lately, I think everyone is trying to get their harvesting going... I'll let you know what I did last week

 

Trade fair:

First, a few very dodgy pictures; I went to the Electronics and Automation Trade Fair in Utrecht, and of course Wurth was also there. To my delight they had a table with both RoadTest Challenges: wireless power and Energy Harvesting; very nice to see. The other picture shows 'Energy Harvesting Development On-The-Go'. As I'm very productive while sitting in the train, I took my EnergyMicro board with me.

imageimage

Trade show with Energy Harvesting, and debugging on the train

 

 

Temperature sensor

Because I want to determine whether my egg is ready, I need to measure temperature. I received this thermometerthis thermometer in the mail last week, which I'm going to use in this project. Of course, the first thing to do is to open it up and look what's inside:

 

 

 

image

image

imageimage

I'm going to use the sensor part, and maybe later use the display, but I think I won't be able to finish that in time. Now, I have to find out what sensor it is. That actually was harder than I thougt; at room temperature it was about 100kOhm, so I guessed it was either a 100kOhm PT100, or a thermistor. Dipping the probe in boiling water gave me about 6.7kOhm, which helped me a lot in finding the right sensor type. This chart shows the right resistance-versus-temperature chart.

 

Now I had to hook it up to the demo board. I soldered the thermistor between ADC0_CH1 and GND, and placed a pull-up resistor between ADC0_CH1 and PD0. Now, when I want to do a temperature measurement, I can make output PD0 3V3 (High) and measure the voltage on ADC0_CH1. After the measurement, I turn PD0 low again, and no current will flow through the thermistor and pull-up anymore! This has several benefits:

  • The thermistor won't heat up due to its own dissipation (not such a big problem here, but would be a problem in high precision situations)
  • Energy is only used when it is needed!

 

Writing code

For those interested: here is my code repository

As said before, I'll start out with the 'inttemp' example code for the STK3700. I made the following changes:

  • Remove Fahrenheit calculations (not necessary)
  • Change temperature reading to ADC_CH1 instead of internal sensor
  • Add switching on- and off  of PD0 to power the Thermistor
  • Add calculation to change voltage readout to resistor value
  • Added calculation of temparature based on Beta value, as per this wikipedia link, and based on a Beta value of 3892. Had to include math.h for log() and exp() functions

 

I'm surprised at the ease of coding each time I start with new ARM controllers. So many functions are given in libraries, and example code is really easy to comprehend. Back in the time when I started programming AT90S8535's you had to do a lot of peripheral code writing yourself, and if you didn't, the generic code would always be insufficient for your needs. Great to see that the API's have really changed to great usable material!

Also, using the debugger works like a charm, I'm developping the EFM32 from code::blocks, and use the JLinkGDBserver from Segger. The other great debugging tool is the display on the board, especially because you can simply printf() to it!

Results so far:

Thermistor measurement goes well, I get a good resistor reading. The conversion to temperature also works now! I'll have to make a temperature-to-egg-hardness-algorithm now..... Stay Tuned!

  • Sign in to reply
  • DAB
    DAB over 12 years ago in reply to vsluiter

    Hi Victor,

     

    The IR Thermosensing measures the emmissive IR, not the reflected IR, so the bubbles would have no effect on the overall measurement.

     

    As for interfacing, TI has a launchpad cape that interfaces a Thermal IR module, so you should be able to easily add this hands off measurement device to your setup.

     

    Thanks

    DAB

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

    Hey DAB,

    • Question for you: do you know whether IR thermosensing works when looking into water? I'd guess the IR reflection of water would skew the measurements.
    • Another reason for choosing this thermometer is cost, and ease of interfacing.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 12 years ago

    Hi Victor,

     

    I would have thought you would use a contactless IR sensor for the temperature.

    The probe will work, but it might skew your results by consuming some of the heat, but it will probably be statistically meaningless.

     

    I look forward to seeing your project in operation.

     

    Thanks

    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