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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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 A Very Compact Guide to Energy Harvesting - Part 010
  • Blog
  • Forum
  • Documents
  • Files
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: COMPACT
  • Date Created: 4 May 2013 5:30 AM Date Created
  • Views 437 views
  • Likes 1 like
  • Comments 1 comment
  • energy_harvesting
  • energy_harvesting_challenge
Related
Recommended

A Very Compact Guide to Energy Harvesting - Part 010

COMPACT
COMPACT
4 May 2013

Giant FrankenGecko!

One of the two projects underway is the beating LED heart.

After showing the LED heart prototype to my client they were most impressed and wanted more inprovements.

His original idea was just to have the LEDs in a binary state either on or off.

This meant that the heart could only flash and not look like it is beating.

To make it look a little more realistic, I suggested that we could vary the brightness of the LEDs to get a better result.

 

For testing this concept out I needed;

     A way to vary the brightness of the LEDS

     A way to control the brightness

 

By today's standards controlling LED intensity LED brightness can be controlled using PWM (Pulse Width Modulation).

The Giant Gecko has inbult timers specifically for this capability.

 

Rather than reinventing the wheel, I looked though the EFM32 Lizard Lounge to find an example and sure enough there was one.

I found one at http://forum.energymicro.com/best-content

 

The code is not complete but it had enough to get the point across.

I built a blank template project and workspace and inserted the code verbatim and then added the required #include statements and other required items to get the code working properly.

 

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

As you can see from the video, it blinks rather slowly. The only reason for this is the frequency of the PWM source clock - a one second period.

To get the appearance of variable brightness the frequency must be increased for visual persistence to work.

 

I needed a way to vary the duty cycle of the PWM and since the STK3700 has an inbuilt capacitive sensor I decided to use it for this purpose.

 

To accomplish what I wanted I took the STK3700 CapSENSE example code and add the PWM code elements to it.

The LED lit by touching the capactive slider and its intensity is controlled by the postion touched on the slider.

 

 

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

The dimming effect looks much better in real life.

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

    Hi Monte,

     

    Good start.  I would recommend that you get some actual heart rate signals and sounds off the web.

    Then I would add sound to your heart synchronized to the beat.  The result should be really cool, plus you could set up a PIR sensor to detect when someone comes nearer and raise the heart beat accordingly.

    Then it would be super cool.

     

    Just a thought,

    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 © 2026 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