Jump to content
Sign in to follow this  
jacamo

Can not get LED to fade from Energia example

Recommended Posts

I cannot get this led to dim. It will flash on and off but no PWM as far as I can see. I copied the code right from the website here. http://energia.nu/Tutorial_Fading.html and wired everything the way it should be. Using a 220Ohm resistor instead of the 10k they had in there BOM. 

What am I doing wrong? I am using the MSP430G2231 chip and have all my settings in energia set accordingly 

I really don't know what I am doing wrong or if I have a faulty chip?  Looking for someone to point me in the right direction. 

Share this post


Link to post
Share on other sites

> What am I doing wrong?

@Jacamo, really hard to say.  However, looking at the code (it always help to actually post what you wrote - saves time for looking things up...), you might want to explore increasing the delay interval so the steps, if occuring, are easier to see.  FWIW, looking at the schematic in the page you referenced, the resistor is 220 Ohm, not 10K.  Also, another FWIW,  P1.6 (pin 14) is factory connected to the green LED2 on the board.  You needn't actually add an external LED.  I had a spare LP with a G2553 (same pinout for the first 14 as your G2231, so same code works) available, pasted the code, added the jumper for LED 2 and ran the code; all works as promised.  Do you have the jumper on the LED2?  If so, that might interfere...

Share this post


Link to post
Share on other sites

I ended up just getting some of the 2553 ICs ang now I don't have that problem anymore. I also updated the drivers for the board it self so that might have done the trick. 

Thanks for your response! 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×