Show Posts
Pages: 1 ... 97 98 [99] 100 101 ... 228
1471  Using Arduino / Programming Questions / Re: Adafruit Wave shield button press song on: January 29, 2013, 10:58:21 am
Your play function has a while loop testing wave.isplaying. It won't return until it is false, so your similar setup in loop will always be false and thus your prints are never executed.
1472  Using Arduino / Programming Questions / Re: Cuckoo Clock Project on: January 28, 2013, 05:07:43 pm
In C a subroutine is called a function. Loop and setup are functions. Lloyddean's example above has a number of examples, e.g. millisecs2hms.
1473  Using Arduino / Sensors / Re: Issue getting data into database from DS1820 temperture sensors on: January 28, 2013, 08:32:19 am
I rather suspect that this:
webClient.print( "&TempAddress0=" );

should be before the for loop, not inside it.
1474  Using Arduino / Project Guidance / Re: Pothole data smoothing and detection of accelerometer on: January 27, 2013, 09:51:00 am
I'd try a simple threshold first. More importantly though I'd want to collect a lot more data of driving in different conditions and speeds to see where that threshold lies and whether the method is viable.
1475  Using Arduino / Motors, Mechanics, and Power / Re: emax es08a servo has only 160 degrees of movement on: January 27, 2013, 09:41:09 am
It seems very rare for the vendor to specify the range of movement on a web site - you only really know once you test a particular model. By the sound of it, you've discovered by experiment what the range is for that particular servo - there's no compatibility issue as such, they just have 160 degrees of motion. Some models will have more, others less.

The arduino can't supply enough power directly to run multiple servos; depending on the model, it's generally marginal to run even one - you need a separate power supply - connect the grounds.
1476  Using Arduino / Project Guidance / Re: converting 2 variables into character array variable on: January 27, 2013, 08:26:22 am
is there a reason why putting that for loop in Loop() is a bad idea?

Not exactly, but your example is rather artificial - most arduino sketches will run through loop more than once - they're often used as controllers for some external system. In a learning exercise such as yours it really doesn't matter, but generally, if something will run only once at the beginning, particularly if other people are going to see the code, it should live in setup.
1477  Using Arduino / Project Guidance / Re: Running Arduino Micro 24/7 on: January 27, 2013, 08:19:22 am
Do you know if theres an easy way to take 2 different voltages from 1 power supply?
Add a voltage regulator to reduce the supply to the arduino - you can stick a heat sink on it too.
1478  Using Arduino / Programming Questions / Re: advice needed for arduino as diesel injection brain... on: January 27, 2013, 07:57:09 am
Is there a way to let an interrupt trigger a subroutine so it gets freed immediately and the routine keeps running? (like in bash $command &)

I'm not entirely sure what you're asking here, but with regard to running more than one process like a linux box, the arduino isn't going to do it - it's single core, single threaded. You can fake it to some extent (just like a single core linux box does) but you'll have to code it yourself, there is no operating system to help you manage separate threads.
1479  Using Arduino / Programming Questions / Re: Help with my project for garage door arduino on: January 26, 2013, 10:16:44 am
This doesn't look good:
    digitalWrite(doorOpenAPin, LOW);    // Pusti relej za otvaranje kapije A
  }                                     // sve dok
  while (doorOpenSwitchA != 0);         // kranji prekidac za otvaranje kapije A ne prekine funkciju
Nothing in that loop will change doorOpenSwitchA, so it will loop forever. You need a digitalread in there.
1480  Using Arduino / Programming Questions / Re: any tutorials on this? on: January 25, 2013, 07:03:40 pm
0x3C what does the "C" stand for?
That's hexadecimal notation (q.v.)

Each one of those is eight bits and there are eight of them in your array. That gives you individual control of sixty four bits. There are multiple 0x42s because the pattern being drawn has rows that are the same.

Try making the first byte 0x01 (or indeed 1) and all the others 0. Hopefully a single LED will be lit. replace the 1 with 2, then 4 then 8, then 7. See what is happening?
1481  Using Arduino / Project Guidance / Re: Arduino nonin Spo2 sensor on: January 25, 2013, 01:09:37 pm
You can use softserial or the hardware serial port. Not sure what your second question means.
1482  Using Arduino / Programming Questions / Re: Crash coarse on pointers and references on: January 25, 2013, 09:48:36 am
Here's a link with a number of different explanations:
1483  Using Arduino / Project Guidance / Re: Arduino nonin Spo2 sensor on: January 25, 2013, 08:13:52 am
A quick glance at the datasheet suggests that you can read it at 9600 baud through the serial port.
1484  Using Arduino / Programming Questions / Re: Help with application of Finite State Machine library on: January 25, 2013, 06:31:45 am
getCurrentState returns a state object, not the integer switch expects, so you can't use it. It looks like there was once an id field you could have used for this purpose, but it's commented out in the library. One way to achieve the same thing appears to be through use of a bunch of if tests calling the isInState method on the FSM.
1485  Using Arduino / Sensors / Re: DS18B20 problem bad reading with two or more sensors on: January 25, 2013, 05:45:32 am
Bear in mind that these sensors generate some heat themselves - if they're in close proximity they may affect each other.
Pages: 1 ... 97 98 [99] 100 101 ... 228