Show Posts
Pages: 1 ... 796 797 [798] 799 800 ... 1169
11956  Using Arduino / Installation & Troubleshooting / Re: Arduino Uno and PWM on 11 & 3 on: January 29, 2011, 11:41:07 am
 I suspect that the <IRremote.h> library may be utilizing some of the timers that the PWM command uses to control pins 3 & 11.
Why don't you just load the example program Fading from the Arduino IDE file menu. Then modify the
int ledPin = 9;    // LED connected to digital pin 9  line to use pin 3 and then pin 11 and see if the pins work properly. Be sure to use series current limiting resistor with an LED if that is how you are testing for PWM outputs.

Lefty

Code:
/*
 Fading
 
 This example shows how to fade an LED using the analogWrite() function.
 
 The circuit:
 * LED attached from digital pin 9 to ground.
 
 Created 1 Nov 2008
 By David A. Mellis
 Modified 17 June 2009
 By Tom Igoe
 
 http://arduino.cc/en/Tutorial/Fading
 
 This example code is in the public domain.
 
 */


int ledPin = 9;    // LED connected to digital pin 9

void setup()  {
  // nothing happens in setup
}

void loop()  {
  // fade in from min to max in increments of 5 points:
  for(int fadeValue = 0 ; fadeValue <= 255; fadeValue +=5) {
    // sets the value (range from 0 to 255):
    analogWrite(ledPin, fadeValue);         
    // wait for 30 milliseconds to see the dimming effect   
    delay(30);                           
  }

  // fade out from max to min in increments of 5 points:
  for(int fadeValue = 255 ; fadeValue >= 0; fadeValue -=5) {
    // sets the value (range from 0 to 255):
    analogWrite(ledPin, fadeValue);         
    // wait for 30 milliseconds to see the dimming effect   
    delay(30);                           
  }
}


11957  Using Arduino / Project Guidance / Re: Using Arduino with Matlab and Simulink to build a controller? on: January 29, 2011, 11:35:15 am
I have no experiance with Matiab or Simulink, however assuming that they can communicate via USB serial then it should be possible. The tricky part is that an Arduino does not have a true analog output function. The analogWrite() command generates a PWM TTL voltage level square wave signal the varies it's duty cycle from 0-100%. You have to wire the pwm output pin to a low pass filter (a simple series resistor followed with a capacitor to ground. The junction of the resistor and cap will then show a true analog voltage of 0-5vdc. This could then be wired back to a analog input pin and it's value sent back out via USB serial link to your PC.

However this would seem redundant unless you were actually using the true analog output voltage to control something physical. Otherwise just send the PWM value signal used inside the program, with proper scaling and send it back to your PC ?

That make sense?

Lefty
11958  Using Arduino / Installation & Troubleshooting / Re: Arduino Uno and PWM on 11 & 3 on: January 29, 2011, 11:18:34 am
We would have to see the code you use to determine those two pins are not working with analogWrite(). They should if you are using a mega328 based board. http://arduino.cc/en/Reference/AnalogWrite

11959  Community / Website and Forum / Re: Karma on: January 29, 2011, 10:58:34 am
Quote
It's an indication of how many arseholes there are here

I would have thought there were a lot more then just two out there?

Lefty
11960  Community / Bar Sport / Re: Is the magic smoke toxic? (and other questions) on: January 29, 2011, 10:54:37 am
Putting 100+ vdc to the input of a +5vdc regulator will do that. You probably took out some filter caps around the regulator also before the flames subsided.

 About the only thing worth trying is to remove what remains of the regulator from the board and see if the board will operate on USB power. If so then you have a chance of repairing it, if not you got a nice wall hanging conversation piece.

Lefty
11961  Community / Website and Forum / Re: Karma on: January 29, 2011, 10:44:00 am
Just eliminate the negative karma, leave the positive karma count, and leave it at that.

11962  Community / Exhibition / Gallery / Re: How I mounted my Seeeduino V2.2 (ATmega328P)... on: January 28, 2011, 11:56:45 pm
If you do ever get a Seeeduino mega board, you will find that it wires up 16 additonal I/O pins from the mega1280 chip that the Arduino mega board doesn't even wire up to any connectors.

Lefty

11963  General Category / General Discussion / Re: Missing Forum on: January 28, 2011, 10:06:20 pm
I'm still waiting for the "It doesn't work" subforum.  smiley
Or how about a "Why must I use resistors with leds" subforum.  smiley

Of course Grumpy_Mike has probably earned the right for his own subforum Called "Arduino the S&M way"

11964  Community / Exhibition / Gallery / Re: How I mounted my Seeeduino V2.2 (ATmega328P)... on: January 28, 2011, 10:01:35 pm
Very nice. I really like the Seeeduino boards, they have lots of features missing or different from the Arduino standard. I own two of their Mega boards.

Lefty
11965  Community / Website and Forum / Re: Smilies on: January 28, 2011, 09:59:29 pm
  smiley-eek-blue   That one looks like Homer Simpson.
11966  Community / Bar Sport / Re: Your latest purchase on: January 28, 2011, 09:54:52 pm
Looks like there will be a lot of mercury inside it.

http://en.wikipedia.org/wiki/Ignitron
11967  Community / Website and Forum / Re: Smilies on: January 28, 2011, 09:30:02 pm
But where is the I have to go to the bathroom soon smiley?
11968  Development / Other Hardware Development / Re: Mega 2560 Solder Bridge on: January 28, 2011, 09:26:18 pm
Wow, and on a genuine Arduino board too. Will the Asian cloners copy that.  smiley
11969  Development / Suggestions for the Arduino Project / Re: if(a=b) is not if(a==b) could IDE check this b4 upload? on: January 28, 2011, 09:22:44 pm
Quote
That's the oldest gotcha in the C book. Welcome to the club


Indeed. In my case it's the gift that keeps on giving.  smiley
11970  Community / Bar Sport / Re: New post notification question. on: January 28, 2011, 09:06:45 pm
Little light inside aside, don't most men suffer from refrigerator blindness, can't find anything unless it's in front?

That's from a Rita Rudner routine, funny as hell.

Lefty
Pages: 1 ... 796 797 [798] 799 800 ... 1169