Show Posts
Pages: [1] 2
1  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: delayclockcycle() on: April 06, 2007, 01:16:51 pm
Thank you Jims!
That is exactly what I was looking for.
Really helpful for precise timing protocols.
2  Forum 2005-2010 (read only) / Bugs & Suggestions / delayclockcycle() on: April 04, 2007, 10:29:05 am
Hi!
It would be a nice addition it there would be a delay smaller than delaymicroseconds() that deals directly with clock cycles.
Anybody else thinks so?
3  Forum 2005-2010 (read only) / Bugs & Suggestions / Auto Format erases code on: April 13, 2007, 01:41:26 pm
Hi!
I've noticed that the Auto Format tool option can erase code when a parentheses or bracket is missing. Bug or feature?
4  Forum 2005-2010 (read only) / Syntax & Programs / Re: Rainbow calculator on: March 24, 2007, 01:23:04 pm
Hi Jims,
Altough I'm unfamiliar with dot products and matrix math (I studied math in french, so names and techniques are little bit different at times, vive le Wikipedia!), thanks for this lookup table, I'll try it and comment on it soon. Thanks
5  Forum 2005-2010 (read only) / Syntax & Programs / Rainbow calculator on: March 23, 2007, 01:29:04 pm
Hi!
I'd like to be able to calculate on the fly the RGB values at any point of the color spectrum. So like by using for example a potentiometer, one can sweep the rainbow and generate RGB values. I've tried using the SIN function but would there be a way to do it without using floats to keep the code small. Can the SIN functin be used without using floats? or can someone give me a hint on how to code a simili SIN function using linear integer values (like triangle waves instead of sine waves)?

Thank you.
6  Forum 2005-2010 (read only) / Syntax & Programs / Re: Logical boolean operators on: April 10, 2007, 10:52:19 am
Oh  :-[ yeah... got mixed up with the double negative stuff. I like the clarity of your arlternative! smiley
Thanks
7  Forum 2005-2010 (read only) / Syntax & Programs / Logical boolean operators on: April 10, 2007, 09:54:59 am
Hi arduinos,
I wrote a little piece of code that should increment values until they all reach their target value, but the function stops as soon as one value reaches its target. Shouldn't the WHILE loop stop only when all three values are equal to their respective targets because of the AND operators?
Thanks

Code:
int R = 0;   //actual targets
int G = 0;
int B = 0;

int targetR = 10;  //target values
int targetG = 20;
int targetB = 30;

void setup() {
  Serial.begin(9600);
}

void loop()  {

  while (targetR != R && targetG != G && targetG != B){
    smooth();
    debugout();
  }
}

void smooth(){
  if (targetR > R){
    R++;
  }
  if (targetG > G){
    G++;
  }
  if (targetB > B){
    B++;
  }
}

void debugout(){
  Serial.print("    R ");
  Serial.print(R);
  Serial.print("    G ");
  Serial.print(G);
  Serial.print("    B ");
  Serial.print(B);
  Serial.println();
}  

8  Forum 2005-2010 (read only) / Troubleshooting / Re: Mini not responding nor blinking on: October 19, 2007, 10:02:55 pm
Hi!
It's not related to my other post: different arduino mini. Proper connections. When trying to upload to it, the TX pin of the usb thingy light up once... and thats it. To measure if there's any pin activity, I'll try oscilloscope when i get my hands on one, until then, I'll pray for some voodoouino magik.
9  Forum 2005-2010 (read only) / Troubleshooting / Mini not responding nor blinking on: October 19, 2007, 11:30:16 am
Hi!
I have an arduino mini that seems dead: I cannot upload to it and the LED on pin 13 doesn't light up on power or reset. I tested my wiring connections with another mini and it was fine. So from there, do I conclude to my 1st mini death or is there some hope for a revival? Some tests that could point to the problem?

Thanks!
10  Forum 2005-2010 (read only) / Troubleshooting / Re: Mini pin problem on: October 19, 2007, 09:58:26 pm
Thanks for the info!
I can't figure how a permanent short could happen on the chip by mistake, no solder drop, so maybe a factory defect?

have a good weekend!
11  Forum 2005-2010 (read only) / Troubleshooting / Mini pin problem on: October 19, 2007, 02:23:14 pm
Hi!
I've been troubleshooting an arduino mini which has a strange problem:

I've connected some switches on multiple digital pins with resistors.
While doing a digitalRead and pressing on buttons,
pin 9 and 10 (physically 12 and 13) act as if they're the same:
whenever I press on one of these two, they both trigger.

I thought I had a short somewhere but after lots of tests, I think it might be the mini.
So after puuling it out of the circuit, I tried measuring the resistance between the two pins and I get 60 ohm, which is much lower than any two other digital pins which is approx. 800ohm or more

What could cause that?

12  Forum 2005-2010 (read only) / Bugs & Suggestions / Re: math.h bug on: March 22, 2007, 01:59:20 pm
Hi!
I also needed to use the sin function, and didn't suceed because the sin function expects degrees in radians and putting the radians function returned the following error:
DEG_TO_RAD was not declared in this scope
also the sin function always returned a zero value, maybe because I was using an integer instead of a float. By the way what's the status on floats, is it supported by Arduino? the reference webpage lacks information on it.
Thanks!
13  Forum 2005-2010 (read only) / Bugs & Suggestions / Arduino mini IO7? on: June 28, 2007, 04:13:45 pm
Hi!
What is the function of the IO7 pin on the Arduino mini, I didn't find info on it? (located at the top left; see image http://www.arduino.cc/en/uploads/Guide/arduino_mini_pinout.png )

Thanks
14  Forum 2005-2010 (read only) / Bugs & Suggestions / Arduino pin spacing on: March 23, 2007, 12:51:00 pm
Hi!
I have a suggestion concerning the pin spacing between D7 and D8: remove it or accentuate it so that the pin spacing becomes standard with generic proto pcbs. I understand that this would become a problem with current shields, but it would make prototyping easier for those of us who have no access to etching our own pcbs.
Thanks
15  Forum 2005-2010 (read only) / Interfacing / Re: Dimming AC lights on: May 30, 2007, 08:35:09 pm
Hi Oori,
For this project, I wanted to control normal house lamps and not rely on DMX equipment.
I've gone the DMX way and had my share of DMX problems, btw search for my posts on DMX for a more precise code for Arduino DMX if your DMX lamps are picky.

also Thanks Tomski for the velleman kit reference.
Pages: [1] 2