Show Posts
Pages: [1] 2 3 ... 148
1  Using Arduino / Project Guidance / Re: Convert string to char array & write to EEPROM on: Today at 06:43:54 am
Maybe you should look in your other topic on the same subject in this forum.

http://forum.arduino.cc/index.php?topic=257973.0

Mark
2  Using Arduino / Programming Questions / Re: Interrupts & Servos on: Today at 05:47:34 am
Yes but the rest does not. OP needs to learn to read the code ne has writen.

Mark
3  Using Arduino / Programming Questions / Re: Interrupts & Servos on: Today at 04:58:28 am
Code:
void swap()
{
  if (selectedServo == servoPin)
    selectedServo = servoExample;
  else (selectedServo == servoExample)
    selectedServo = servoPin;
}

Sort out your swap function. As it stands it makes no sense at all.

Mark
4  Community / Gigs and Collaborations / Re: Arduino ethernet + sdcard+web interface on: July 30, 2014, 03:49:38 am
NEVER CROSS POST ON THESE FORUMS.

Mark
5  Using Arduino / Programming Questions / Re: x +=y; is the same as x=x; ??? on: July 30, 2014, 03:44:25 am
looks like you are falling into to the integer arithmetic trap. That are the types of bob,  and temp_arv ?.

Mark
6  Using Arduino / Programming Questions / Re: Multiple Interrupts on One Input on: July 30, 2014, 03:30:22 am
You could make i from the ISR global and volatile, or you could just scan through pins[] to find the one that is low.

Mark
7  Using Arduino / Project Guidance / Re: Feedback problem? on: July 29, 2014, 06:07:56 pm
Look up EMI (not the film/record company).

Mark
8  Using Arduino / Programming Questions / Re: How to get Int value ? on: July 29, 2014, 06:18:09 am
Quote
In Server code I did like this

Code:
iny=t distance = data.toInt();

but it gives error while compiling.

Yes f course it does. Just look at it.Have a few of these  ;;;;;;  it looks like you need them.

Mark
9  Using Arduino / Project Guidance / Re: Loop frequency on: July 28, 2014, 02:24:54 pm
Quote
s there something I don't do properly?

Yes, not posting your code!

Mark
10  Using Arduino / Programming Questions / Re: hard core tiny bug on: July 28, 2014, 01:55:18 pm
Example of why you must post all the code

Code:
int buttonPin[6]={
  0,A4,A3,A2,A1}; // Button 1-4
int ledPin[7]={
  0,8,9,10,11,12};   // Led 1-5

Why are you using pin 0 as a button an input, a led an output and for Serial!

Array are numbered from 0 use them that way!

Mark
11  Using Arduino / Programming Questions / Re: hard core tiny bug on: July 28, 2014, 01:33:56 pm
1 Post ALL your code.

2 Clean up  your code!. Use the auto formatter in the ide

3. What do you want it to do and what does it do

Mark
12  Using Arduino / Programming Questions / Re: Too many autotune objects? on: July 24, 2014, 06:12:46 am
Code:
unsigned int aTuneLookBack=20;
Try reducing this to 10 or even 5. Or get an arduino mega

Mark
13  Using Arduino / Programming Questions / Re: Too many autotune objects? on: July 24, 2014, 05:20:57 am
Looks like you are running out of ram, look in the playground for the code to check of the amount of ram being used and insert it in serup().

Mark
14  Using Arduino / Programming Questions / Re: Synchronizing Interrupts and void loop ?? on: July 23, 2014, 01:35:31 pm
Stop using noInterrupts() all over the place, the one at the start of setup() is not required. And so are the ones in each of the interrupt handlers!

Interrupts are disabled by the CPU when you enter the interrupt handler they are automatically turned on again at the end of the handler.

Turning off interrupts stops micros(),mills() and there related functions from working it also makes a mess of serial.

There is no need to turn off interrupts when reading/modifying a boolean!

Mark
15  Using Arduino / Programming Questions / Re: Arduino in build Led on: July 23, 2014, 08:18:53 am
Even if that code where in a loop you would still never see it blink!. You can see individual blinks once the rate is over about 10Hz.

Mark
Pages: [1] 2 3 ... 148