Show Posts
Pages: 1 ... 26 27 [28] 29 30 ... 80
406  Using Arduino / LEDs and Multiplexing / Re: Pulsing a HIGH then LOW to pin while blinking LED on: August 08, 2013, 05:23:05 pm
Would the quickest way to determine this be to measure the voltage at the various devices with a multimeter to see if it is enough?

Extend the timing signals to a few seconds instead of milliseconds and you should be able to read the values.
407  Using Arduino / General Electronics / Re: Solder does not stick to iron after cleaning on: August 04, 2013, 08:37:39 pm
If your solder has flux in it you should not need to get separate flux to tin the tip.
408  Using Arduino / Project Guidance / Re: help on: August 03, 2013, 05:53:07 pm
This is not very specific, so the help you will get is not specific.

The 'period of time' will need to be defined somehow. If you are changing the value every second, when you change the value you should check if it has changed. If it has not, increment a variable. Once the variable hits a specific value you can turn on the LED.

At some point you will need to turn the LED off. Have you thought about that?
409  Using Arduino / General Electronics / Re: Custom Wire Size on: August 03, 2013, 05:48:44 pm
I would guess anything that fits in the headers. It is worth tinning (with solder) the end of the wires to make them stiffer if you are not using single strand wire.
410  Using Arduino / Sensors / Re: cant get clock to work on: August 03, 2013, 04:13:37 am
I have a different library that you can try with a bunch of test code. See the repository address in my signature below.
411  Using Arduino / Programming Questions / Re: Need help inverting an action upon recieving same input on: August 01, 2013, 07:31:19 am
Your logic is not as you intended

Code:
  if(results.value == 0xFF22DD)
  {
    if  (digitalRead(led)==LOW)
    {
      delay(5);
      digitalWrite(led, HIGH);
      delay(5); 
    }
    else
    {
      digitalWrite(led,LOW);
      delay(5);
    }
}

It really helps if you get into the habit of putting brackets and indentations in the right way. The flow of the program becomes much clearer.
412  Using Arduino / Programming Questions / Re: Need help inverting an action upon recieving same input on: August 01, 2013, 06:23:28 am
Just tried this code

Code:
void setup()
{
  pinMode(13,OUTPUT);
}

void loop()
{
  digitalWrite(13, !digitalRead(13));
  delay(500);
}

and it does what I expect - flash a LED with a 1 second cycle.
413  Using Arduino / Programming Questions / Re: Need help inverting an action upon recieving same input on: August 01, 2013, 05:55:47 am
Have you got brackets around the new 'if' statement? This groups it under the check for the IR code.

The logic is pretty simple here so not much else to suggest. Maybe repost the modified code? Use the # button when posting to get code tags 
414  Using Arduino / Programming Questions / Re: Need help inverting an action upon recieving same input on: August 01, 2013, 05:40:02 am
You can try a longer version

if  (digitalRead(led)==HIGH)
  digitalWrite(led, LOW);
else
  digitalWrite(led,HIGH);

Serial monitor resets the board when turned on.
415  Using Arduino / Programming Questions / Re: Need help inverting an action upon revieving same input on: August 01, 2013, 05:00:42 am
digitalWrite(led, !digitalRead(led))
416  Using Arduino / Programming Questions / Re: Finding a number in a large array on: July 30, 2013, 03:18:27 am
All good advice so far but the quick- and binary- searches are designed to return the exact match for what you are looking for.

As I understand you want to find the next lowest and the next highest to the value you are looking for, so you will need to modify the algorithms presented.
417  Using Arduino / Programming Questions / Re: how to scroll text on 8x8 dot matrix on: July 30, 2013, 03:14:04 am
How do you want to scroll it? Left or Right? Do you just want to move it off the screen or rotate through?

You need to understand the << and >> operators in C - this will move the bits in a byte/word/long to the left or right by the specified number of positions. Scrolling is just moving bits the way your characters are defined.
418  Using Arduino / Sensors / Re: i want to check the time on: July 29, 2013, 02:11:00 am
Look at your watch?
419  Using Arduino / Audio / Re: Serial <--> MIDI not always same result on: July 27, 2013, 04:00:47 am
Contact bounce could be an issue but I would expect you see multiple messages in the printing.

I don't have any experience with your computer based software, so can't help there.
420  Using Arduino / Audio / Re: Serial <--> MIDI not always same result on: July 27, 2013, 12:23:11 am
Instead of send the midi messages out the serial port, try printing them out to the serial monitor of the arduino. This will eliminate the comms line and beyond as a source of errors. If the messages are right at that pint, then you know where to look. If they are not right, then it is all in the Arduino code ...
Pages: 1 ... 26 27 [28] 29 30 ... 80