Show Posts
Pages: 1 ... 69 70 [71] 72 73 ... 266
1051  Using Arduino / Motors, Mechanics, and Power / Re: Using high power sensors on: January 19, 2014, 01:15:35 pm
Well I hope you're not new to electricity, since that  is some hefty power and you'll need to know what you're doing on the power side, never mind the micros.
1052  Using Arduino / Motors, Mechanics, and Power / Re: controlling stepper for a period of time rather than number of steps on: January 19, 2014, 12:55:35 pm
Well I said I didn't know anything about it.... now I at least realise why its called accelstepper....
1053  Using Arduino / Project Guidance / Re: Temp sensor is incorrect? on: January 19, 2014, 12:52:12 pm
Code's correct... analog pins don't need the "A" when they're being used for analogReads, only when they're used for digital.

But yeah.... it's plugged into a digital pin so that's wrong.

I asked y'day if it was in the right hole- I should have been more specific.
1054  Using Arduino / Networking, Protocols, and Devices / Re: The Ethernet shield's 4 connections.... on: January 19, 2014, 12:46:32 pm
Thanks ST, I'll give it a whirl.
1055  Using Arduino / Programming Questions / Re: How to get ds3231 to keep time when not plugged into arduino uno on: January 19, 2014, 12:45:06 pm
Well as far as I can see from the datasheet, it should switch to the battery of its own accord, no coding necessary.
1056  Using Arduino / Networking, Protocols, and Devices / Re: The Ethernet shield's 4 connections.... on: January 19, 2014, 12:30:21 pm
But meantime, having got 2x servers going, I want to get a Server and a Client going simultaneously.

Before I get too involved... I'm going to look at combining the WebServer and WebClient sketches as a start, is there anything I need to consider? Any "gotchas"?
1057  Using Arduino / Programming Questions / Re: Servo moves when not prompted to on: January 19, 2014, 12:20:50 pm
The sweep code with just the servo works fine and if I write a simple code that just attaches the servo and does nothing with it is fine. Ill start commenting out sections.

I really can't think of anything else to try, other than chop it down and try to identify the code (or hardware.... like the LCD) that's causing the problem.

But, at least, you do know the servo itself, and its power and connection is good.

Hang in there.....
1058  Using Arduino / Programming Questions / Re: Servo moves when not prompted to on: January 19, 2014, 11:41:01 am
Have you tried the servo by itself using just say the sweep code from the ide, and nothing else connectged.... no LCD etc. That would at least tell us the servo and its connections & power are good.

Then, assuming they are good, there would presumably be some conflict with the other parts of your actual sketch. Troubleshoot by commenting out parts of that until the problem goes away.
1059  Using Arduino / Project Guidance / Re: hey guys. how do i combine 2 different codes??? on: January 19, 2014, 11:08:39 am
Yeah the delays will probably be an issue when you join the sketches.

With the delays in the one sketch, they're not a problem as such since they don't stop anything else becasue there is nothing else. But I'm sure they will cause a problem in the combined sketch since they will stop the other stuff.

Difficult to tell though, since you only posted snippets......
1060  Using Arduino / Programming Questions / Re: Download file via HTTP-request/response on: January 19, 2014, 08:03:14 am
Quote
Here's an example (that dosen't  work):

The Zen-inclined among us may wonder if an example that doesn't work is actually an example?
1061  Using Arduino / Programming Questions / Re: Is there such a thing as fast Serial.println? on: January 19, 2014, 07:51:46 am
I'm hoping that my answer, which has to be the best one  smiley-cool, and is about taking the serial prints out of the thing to be timed, has not been lost to the OP in the clutter arcane discussion.
1062  Using Arduino / Programming Questions / Re: Delete EEPROM every time Arduino is turned ON on: January 19, 2014, 07:37:56 am
Each address has a limited life. The key is knowing when one has worn out. Moving data around extends the life of the cell, but you also need to keep track of where the data is now, without wearing that address out.

Thanks Paul.

Quote
The key is knowing when one has worn out.

The real key, would be knowing when one has almost worn out, save its contents elsewhere, and remember never to use that cell again!

1063  Using Arduino / Networking, Protocols, and Devices / If you want to learn HTTP... on: January 19, 2014, 07:33:53 am
Hey good people wherever you are....

I came across this HTTP tutorial which looks useful. It has a link for a pdf download, and also to a QRG.

I found I was picking up odds and ends in various sketches, but not really understanding HTTP. I hope this will help me implement my HTCPCP RFC2324 compliant server.

Jim
1064  Using Arduino / Motors, Mechanics, and Power / Re: controlling stepper for a period of time rather than number of steps on: January 19, 2014, 06:50:11 am
Cheers jumbo will give it a whirl.

That's jImbo  smiley-wink, but you're welcome
1065  Using Arduino / Programming Questions / Re: Storing multiple values and then take average on: January 19, 2014, 06:11:11 am
You don't to store all the values read individually. Take the first reading and store it. Add all subsequent readings to the stored value. Finally, divide the stored value by the number of times the reading was taken. - Scotty

Yep that's what I do here:

Code:
// read and calc the temp
          temptotal=0;
          for(int x = 0; x < 100; x++) {
            rawVal=analogRead(5);    //Connect LM35 on Analog 5
            temp=(500 * rawVal) /1024;
            temptotal = temptotal + temp;
          }
          temp=temptotal/100;

Pages: 1 ... 69 70 [71] 72 73 ... 266