SparkFun Forums 

Where electronics enthusiasts find answers.

Search found 7 matches

 Go to advanced search

Re: Setting up arduino Pwm for 25khz at 50% duty cycle

 by Ozwurld ¦  Thu May 15, 2014 2:15 pm ¦  Forum: Arduino ¦  Topic: Setting up arduino Pwm for 25khz at 50% duty cycle ¦  Replies: 6 ¦  Views: 7633

Sure!... glad to.

Re: Switching Supplies For A Microcontroller

 by Ozwurld ¦  Tue May 13, 2014 3:54 pm ¦  Forum: Projects ¦  Topic: Switching Supplies For A Microcontroller ¦  Replies: 9 ¦  Views: 1111

Thanks for the reply Mee_n_Mac:

Just out of curiousity, what would happen when both the Cap and the Battery are both at 5V.. will i get zero out??

Re: Switching Supplies For A Microcontroller

 by Ozwurld ¦  Tue May 13, 2014 11:01 am ¦  Forum: Projects ¦  Topic: Switching Supplies For A Microcontroller ¦  Replies: 9 ¦  Views: 1111

Mee_n_Mac wrote:SRY, your link requires that I login.

What voltage (range) is your battery pack ? Is it getting recharged from the panel ?
-Thanks for letting me know i have uploaded the image!

Re: Switching Supplies For A Microcontroller

 by Ozwurld ¦  Tue May 13, 2014 4:30 am ¦  Forum: Projects ¦  Topic: Switching Supplies For A Microcontroller ¦  Replies: 9 ¦  Views: 1111

Thanks for the reply,

Is the circuit in the image link below along the lines of what you had in mind?

[img]
http://i1307.photobucket.com/albums/s58 ... 73177a.png
[/img]

Re: Setting up arduino Pwm for 25khz at 50% duty cycle

 by Ozwurld ¦  Tue May 13, 2014 4:16 am ¦  Forum: Arduino ¦  Topic: Setting up arduino Pwm for 25khz at 50% duty cycle ¦  Replies: 6 ¦  Views: 7633

Got it working, This is the code i am using, thanks everyone.. Note that i changed my frequency to 50KHz /* 50Khz PWM for the Buck Converter */ #include <PWM.h> int led = 9; int32_t frequency = 50000; // desired frequency in Hertz void setup() { //initialize all timers except for 0, to save time kee...

Switching Supplies For A Microcontroller

 by Ozwurld ¦  Tue May 13, 2014 1:32 am ¦  Forum: Projects ¦  Topic: Switching Supplies For A Microcontroller ¦  Replies: 9 ¦  Views: 1111

Hello all, I am currently busy with a project that involves powering a micro controller from a 7V solar panel. I would like for the Micro controller to be able to switch to a back up battery pack whenever the Solar Panel doesn't provide enough output voltage to power the micro controller i.e at nigh...

Setting up arduino Pwm for 25khz at 50% duty cycle

 by Ozwurld ¦  Wed May 07, 2014 2:23 am ¦  Forum: Arduino ¦  Topic: Setting up arduino Pwm for 25khz at 50% duty cycle ¦  Replies: 6 ¦  Views: 7633

Hello all, I found what is called the PWM library in the arduino playground. Could someone please plase check my code and see if it does what the comments say, i dont have an oscilloscope at the moment and theres no way i know of that i can use to see if the code really does output a PWM. /* Aurthor...