Show Posts
Pages: 1 ... 285 286 [287] 288 289 ... 590
4291  Using Arduino / Installation & Troubleshooting / Re: avrdude: verification error, first mismatch at byte 0x000 0x0c != 0x62 on: September 29, 2012, 12:42:38 pm
If the verbose output doesn't help you, you can always paste it here and maybe someone with more experience will notice something that you missed.

4292  Using Arduino / Motors, Mechanics, and Power / Re: Controlling 4 steppers + 2 servos with an Arduino MEGA on: September 29, 2012, 07:43:39 am
Each servo uses 1 data pin.

Each stepper driver uses 2 (Step/Direction), 3 (Step/Direction/Enable) or 4 (Windings 1/2/3/4) pins.

Four steppers will take as few as 8 and as many as 16 pins.

16 stepper pins plus 2 sevo pins is 18 pins.  You could even use an Arduino UNO.
4293  Using Arduino / Motors, Mechanics, and Power / Re: Mounting a 5 VDC relay on a breadboard on: September 29, 2012, 07:39:16 am
Why is this component designed so as to NOT fit into a prototyping board?

Because it is a metric part with pin spacings in half-millimeter increments.

The prototype board has a 1/10th inch spacing.
4294  General Category / General Discussion / Re: Using arduino for rotogravure printing register sensor on: September 29, 2012, 07:30:45 am
You will have to supply a LOT more information.  You can start by telling us exactly how the "manual type register control" works.
4295  Using Arduino / Programming Questions / Re: PWM Programming Help on: September 29, 2012, 07:17:25 am
If you use analogWrite() on a non-PWM pin you get LOW for values below 512 and HIGH for higher values.

128, not 512.

Code:
case NOT_ON_TIMER:
default:
if (val < 128) {
digitalWrite(pin, LOW);
} else {
digitalWrite(pin, HIGH);
}


Oops.  I got analogWrite (0-255) and analogRead (0-1023) confused in my brain.  Sorry.  128 is the correct cut-off.
4296  Using Arduino / Programming Questions / Re: PWM Programming Help on: September 28, 2012, 10:14:10 pm
Code:
int ledPin = 2;    // LED connected to digital pin 2

Pin 2 is not a PWM pin.  Only 3, 5, 6, 9, 10, and 11 on the UNO.  There is a little '~' next to the PWM pins on the board.

If you use analogWrite() on a non-PWM pin you get LOW for values below 512 and HIGH for higher values.
4297  Using Arduino / Programming Questions / Re: Problem including pitches.h in tone tutorial under digital in arduino.cc on: September 28, 2012, 10:00:49 pm
Is that the same code as: File->Examples->02.Digital->toneMelody?

I think by "click on NEW tab in the upperright" they mean "Click on the little triangle at the right end of the tab line and select 'New Tab' from the menu that drops down".
4298  Using Arduino / Networking, Protocols, and Devices / Re: EM406 GPS led on: September 28, 2012, 09:24:57 pm
The 6th field of the GGA message will indicate if there is a valid fix or not (0=invalid).  You may have to look into the TinyGPS library to see if/how that data is presented.

Similarly the 6th field of the GLL message is 'V' for invalid fix and 'A' for valid fix.

Similarly the  2nd field of the RMC message is 'V' for invalid and 'A' for valid.
4299  Using Arduino / Installation & Troubleshooting / Re: avrdude: verification error, first mismatch at byte 0x000 0x0c != 0x62 on: September 28, 2012, 08:24:39 pm
I think that means it was trying to verify that the memory had been written correctly and it either read 0x0C when it expected 0x62 or the other way around.  If you turn on verbose output during uploading (in Preferences) you will get to see all the programming steps, including the data being written and what area of memory was being verified when the error occurred.
4300  Using Arduino / Motors, Mechanics, and Power / Re: PID Library MISHAP!(Pls Help longTime problem) on: September 28, 2012, 07:26:19 pm
I suspect that your PID parameters are WAY off. You should probably read up on PID tuning.
4301  Using Arduino / Programming Questions / Re: Need better timer resolution on: September 28, 2012, 08:31:37 am
Timer1 has an Input Capture Trigger Source (ICP1, PORTB pin 0).  This is a pin that saves the current timer value into ICR1H and ICR1L. You can then use the corresponding Input Capture Interrupt service routine to save the timer value and grab a byte of input bits to tell you which event occurred.  I think the only external hardware you would need is a six-input OR gate so that all the inputs can connect to the Input Capture pin and a set of latches so that you can keep track of which inputs have occurred.

This should get you 62.5 nanosecond resolution.
4302  Using Arduino / Installation & Troubleshooting / Re: How to upload while externaly powered ? on: September 28, 2012, 07:23:01 am
As long as your hardware doesn't interfere with Pin 0 and Pin 1 (Serial I/O) you should be able to plug in the USB cable and upload new sketches even while the external power is still selected.  The power jumper only changes the power source and doesn't disable USB when you select external power.
4303  Using Arduino / Programming Questions / Re: is there a function triggered by certain input voltage change? on: September 28, 2012, 07:19:43 am
The ATmega328P has two external interrupt inputs on pins 2 and 3.  You assign a function to them with the attachInterrupt() function.

http://arduino.cc/en/Reference/AttachInterrupt
4304  Using Arduino / Project Guidance / Re: Board with placement identification & piece recognition (for game or something) on: September 27, 2012, 10:05:25 pm
My first guess would be using a single RFID reader with many selectable antenna coils.  This might be hard since the antenna coils are generally tuned for the frequency being used.
4305  Community / Bar Sport / Re: WAY OFF TOPIC, but I would like some help getting my head around this. on: September 27, 2012, 09:42:54 pm
The answer is relative to your frame of reference.

Relative to the dog, the dog has run "all the way" into the forrest when the tip of the dog's tail crosses the forrest boundary.

Relative to the forrest, the dog runs into the forrest "half way".  After passing the middle point on the path from forrest boundary to forest boundary the dog is no longer running "in to" but "out of" the forrest.
Pages: 1 ... 285 286 [287] 288 289 ... 590