Show Posts
Pages: 1 ... 88 89 [90] 91 92 ... 321
1336  Using Arduino / Networking, Protocols, and Devices / Re: How can I change variables over network.... from web page form? on: June 03, 2014, 01:45:29 am
You could save it in EEPROM and read it back each time the Arduino starts up.

Are you new to using the Ethernet card? I'm looking for the address of a tutorial I used, I'll post if I find it.

Or maybe zoomkat has a bit of code in his seemingly infinite library of awesome goodies....

EDIT... have a look at this tutorial
1337  Using Arduino / Project Guidance / Re: need help beginner for aurdino on: June 03, 2014, 12:04:05 am
Quote
  after knowing the angle, i would like to use the angle for this equation:   

So ? You have the equation.
Why don't you write the code ?
http://arduino.cc/en/Reference/Cos 

I think this is more a maths question than a coding one, since he has yet to isolate delta from the equation

cos(teta) = cos (delta)cos (alpha)cos(omega) + sin(delta)sin(alpha)

which if you know the other angles and therefore their sins and cosines reduces to

p = cos (delta) qr + sin(delta)s

But my trig skills are a little rusty to solve that for delta unfortunately.
1338  Using Arduino / General Electronics / Re: anyone tried these "spring" vibration sensors? on: June 02, 2014, 11:48:49 pm
Is there a maker's part number on there anywhere?
1339  Using Arduino / Motors, Mechanics, and Power / Re: Stepper motor not responding on: June 02, 2014, 11:38:54 pm
Cheers team, the driver was bust. But  my stepper motors still arent performing too well unfortunately.

Ok well at least you've got some part isolated.

Are the drivers the right ones for the stepper hardware? I'm no expert (read: just about clueless) but I do know that modern motors need modern driver boards, which I believe are called choppers. If you use a non-chopper, old-school board with a motor that's expecting a chopper, then they do turn but don't perform too well.

So you should post details of the drivers and motors, and let the gurus (guri?) here tell you if they match. Better yet, from a learning pov, investigate the match between motors and drivers via their datasheets.
1340  Using Arduino / Project Guidance / Re: Measuring 2 voltages on: June 02, 2014, 10:47:56 pm
it gets real funny when I try to measure both at the same time.

Funny "ha ha" or Funny "peculiar"?
1341  Using Arduino / General Electronics / Re: Micro-Servo don't work when using 7.4V Battery + diodes on: June 02, 2014, 10:33:46 pm
Why don't you just get a 7806 regulator.....
1342  Using Arduino / Motors, Mechanics, and Power / Re: Stepper motor not responding on: June 02, 2014, 10:29:43 pm
This might be able to help someone troubleshoot it. When i turn the axle of the stepper motor the power light on the driver flashes on

I doubt if that's mysterious: a motor and a generator are two sides of the same coin.

But does it happen for both motors?

You really should try the techniques suggested, especially the combinations of driver / stepper so as to help isolate the fault. And raschemmel makes a good point...

Quote
We need to see how you [actually] wired it up. We need to see how you thought you wired it up.

...you might have a simple wiring error. I've often stared at wiring convincing myself it's the same as the schematic, or the same as I had it last time, only to find it's not.

Using long breadboard?- on some makes the power rails are split in the middle. Does your meter say you're getting power everywhere you should be?

1343  Using Arduino / Programming Questions / Re: PIR-controlled stepper motor project on: June 02, 2014, 09:30:25 am
I'm with Paul on that.... you're trying to do much at once. Sometimes that's difficult enough even with experience, but for a neophyte it's a recipe for frustration and stomping on your Arduino.

As a starting point, have a look at this tutorial at Adafruit. It might not be your exact PIR but should help.

The tutorial section Testing a PIR will help you understand what's going on with the PIR without even an Arduino. I did that exact experiment when I first used a PIR. Then the section Using a PIR will help you get it working on the Arduino. It switches the built-in  LED on pin 13 on and off. TAKE YOUR TIME to unsderstand the concept of "state" in that tutorial, as embodied in the pirState variable and you'll save yourself a heap of trouble as you progress.

Only once you have this fully understood, should you think of driving a motor.

EDIT .... if you didn't already, you should work through some of the examples in the IDE (File > Examples) which are also available on this very website here

1344  Using Arduino / Programming Questions / Re: How do I add additional sensors? on: June 02, 2014, 03:32:51 am
Or perhaps more sensibly, an array.

Indubitably, but I thought it might be an idea to leave that for another day's discussion.
1345  Using Arduino / Programming Questions / Re: How do I add additional sensors? on: June 02, 2014, 03:25:34 am
Look at these lines, which PaulS already suggested you examine...

Code:
sensorPinValue = analogRead(sensorPin1);
sensorPinValue = analogRead(sensorPin2);
Serial.print("Value from 1:");
Serial.println(analogRead(1));
Serial.print("Value from 2:");
Serial.println(analogRead(2));
sensorPinValue = analogRead(sensorPin3);
sensorPinValue = analogRead(sensorPin4);
sensorPinValue = analogRead(sensorPin5);

You have only one variable, sensorPinValue, but you do analogRead() from 5 different pins. So as soon as you store sensorPin1's reading in sensorPinValue, you immediately overwrite that with the reading from sensorPin2; and so on until the only value you have stored is the last one in the list, ie sensorPin5.

You need a few more variables, perhaps sensorPinValue1, sensorPinValue2 etc.
1346  Using Arduino / Installation & Troubleshooting / Re: Is there something wrong with the output pins on my Arduino? on: June 02, 2014, 01:18:04 am
An alternative is to get some headers to push in- they are usually very firm, and then solder wires to the other side of the headers.

Or get a screw shield
1347  Using Arduino / Installation & Troubleshooting / Re: Is there something wrong with the output pins on my Arduino? on: June 02, 2014, 12:24:55 am
Jumpers come in varying qualities... different thickness and flexibility. You should probably try a different brand.
1348  Using Arduino / Programming Questions / Re: Pin 0 on Arduino UNO board won't stay LOW on: June 01, 2014, 11:29:19 pm
If you look at the markings on the board, you'll see that pins 0 and 1 and both used for serial comms: Rx and Tx respectively.
1349  Using Arduino / Project Guidance / Re: how to make a delay function that makes the program work once per day on: June 01, 2014, 09:19:02 pm
But remember millis() will reset to 0 if the Arduino loses power or resets for any other reason.
1350  Using Arduino / General Electronics / Re: Hot to calculate voltage drop ? on: June 01, 2014, 02:28:32 pm
Quote
If your 'load' at that point has a high impedance (resistance), you get a good approximation of the voltage as Vout = (R1 / (R1+R2) * Vin.  Or using your values Vout = (9000 / (25000) * 5 = 1.8V

Should have the 16 on top, not the 9.

But good that you both explained the difference between my assuming it was a "current free" voltage divider and a real load on the output.
Pages: 1 ... 88 89 [90] 91 92 ... 321