Show Posts
Pages: 1 ... 31 32 [33] 34 35 ... 85
481  Using Arduino / Programming Questions / Re: Condensing code on: August 12, 2013, 03:27:04 am
Have a look at the Blink without delay example to get the concept of not using delay and then at my Multiblink sketch in the repository, link below, for data driven programs. Not beginners code but you can learn from it.
482  Using Arduino / Programming Questions / Re: I need a bit of coding help!! on: August 12, 2013, 03:23:13 am
You need to set PWMpin to output.
483  Using Arduino / Audio / Re: Trouble with Midi Shield: Baud Rate? on: August 12, 2013, 03:14:37 am
If it was working then what changed could give you a clue as to the cause? If nothing is changed then something may be broken.
484  Using Arduino / Programming Questions / Re: How to Sync PC time to DS1307 on: August 11, 2013, 06:26:12 pm
Code:
  if (getDate(__DATE__) && getTime(__TIME__)) {
    parse = true;
    // and configure the RTC with this info
    if (RTC.write(tm)) {
      config = true;

This will always reset the date/time to that when the program was compiled. This is probably not what you want every time the Arduino is reset.

Code:
   if( getPCtime()) {  // try to get time sync from pc
Where is this function?
485  Using Arduino / Programming Questions / Re: How to Sync PC time to DS1307 on: August 11, 2013, 06:59:48 am
You will need to post all the code. Errors are often not where you think they are.
486  Community / Exhibition / Gallery / Re: Scrolling LED matrix display - Parola for Arduino on: August 10, 2013, 06:50:29 am
Thanks. I also got lines sometimes and what fixed mine was powering down the display (remove the connector) and then back on again, followed by an Arduino reset.  To me it seems there is some timing issue on the reset at the start, as it appears to happen more frequently when many modules are used.
487  Using Arduino / Programming Questions / Re: Arduino Camera Control on: August 08, 2013, 05:35:12 pm
Quote
dataitem.h:64: error: ISO C++ forbids declaration of 'SimpleTimer' with no type

The first error is the important one. This looks like the compiler cannot find a library and the object declared cannot be defined. Does the software you are compiling use an additional library?

Libraries that are not distributed with the Arduino release should be installed in a 'libraries' subfolder of the sketchbook folder. This makes it easy to have them remain the same when you upgrade the versions of Arduino IDE (ie, no need to reinstall).

488  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.
489  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.
490  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?
491  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.
492  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.
493  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.
494  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.
495  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 
Pages: 1 ... 31 32 [33] 34 35 ... 85