Show Posts
Pages: 1 ... 329 330 [331] 332 333 ... 591
4951  Using Arduino / Installation & Troubleshooting / Re: 12V power source for Arduino on: July 25, 2012, 05:54:18 pm
Which pins?  If you use the Vin pin (+) and Ground (-) that should work the same as the power jack.
4952  Using Arduino / Programming Questions / Re: Serial send and receive - timing or coding issue? on: July 25, 2012, 05:50:06 pm
You should take out the lines where you send inRead before you enable the transmitters.
Code:
    Serial.write(inRead);    ///////// Get rid of this line
    digitalWrite(pinEnable, HIGH);
    Serial.write(hello);
    digitalWrite(pinEnable, LOW);

You can probably take the pinEnable line out of check() an put it in setup() since it only has to be done once.
4953  Using Arduino / Programming Questions / Re: serial send and receive - timing issue? on: July 25, 2012, 02:17:57 pm
How are the two connected?  What RS485 buffer are you using?  Are the grounds connected?
4954  Using Arduino / Networking, Protocols, and Devices / Re: Listing of the Hydrogen's features on: July 25, 2012, 02:10:09 pm
Perhaps something like the Quickstart Guide or the Datasheet referenced here: https://diysandbox.com/our-products/arduino-shields/hydrogen
4955  Topics / Robotics / Re: 14 wire stepper motor on: July 25, 2012, 08:40:45 am
Maybe you can find a matching motor at the manufacturer's site: http://www.minebea.co.jp/english/product/index.html
4956  Using Arduino / Networking, Protocols, and Devices / Re: Cheap Wireless com for disposable device. on: July 25, 2012, 08:26:41 am
The way Disney does it with their "Glow With The Show Mickey Mouse Light-Up Ears" is IR with a repeater in each pair.

http://hackaday.com/2012/07/10/tearing-down-disneys-glow-with-the-show-props/
4957  Topics / Home Automation and Networked Objects / Re: Champion IR Remote Control (IR Codes) on: July 25, 2012, 08:22:08 am
IR Remotes are typically modulated at 38 kHz.  You should use a demodulating receiver to receive the signals.  One such module is the Radio Shack 276-640:
http://www.radioshack.com/product/index.jsp?productId=2049727

You can also pull one out of almost any dead piece of AV equipment (VCR, DVD player, TV).  Typically they have three pins: Power (+5) Ground and Signal.
4958  Using Arduino / Installation & Troubleshooting / Re: Burning bootloader to Atmega 328-PU on: July 25, 2012, 07:53:45 am
That's because an ATmega328-PU is NOT the same chip as the ATmega328P-PU.  It has a different signature.  To use it you need a different boards.txt entry with the 'mcu' set to atmega328 instead of atmega328p:

Code:
unononp.name=Arduino Uno (Non-P 328)
unononp.upload.protocol=arduino
unononp.upload.maximum_size=32256
unononp.upload.speed=115200
unononp.bootloader.low_fuses=0xff
unononp.bootloader.high_fuses=0xde
unononp.bootloader.extended_fuses=0x05
unononp.bootloader.path=optiboot
unononp.bootloader.file=optiboot_atmega328.hex
unononp.bootloader.unlock_bits=0x3F
unononp.bootloader.lock_bits=0x0F
unononp.build.mcu=atmega328
unononp.build.f_cpu=16000000L
unononp.build.core=arduino
unononp.build.variant=standard
4959  Using Arduino / Microcontrollers / Re: problems programming standalone 328 on: July 25, 2012, 07:02:10 am
> My understanding was that the upload program had to hold the Reset pin LOW while the chip was
> being programmed.

ONLY when using an ISP.  If you hold the Reset low the processor is held in reset and the bootloader isn't running.

> I dont know the meaning of 'DTR'.

"Data Terminal Ready"

> I connected the RST/DTR pin direct to pin 1 (RST) on the 328.

You need a capacitor in that line so the Reset is PULSED, not held low.

> Was this an awful mistake and would it give the same error code I get ( avrdude....sync error...0X00 )

I think so.
4960  Development / Suggestions for the Arduino Project / Re: Benevolent dictator or democracy? on: July 24, 2012, 06:02:47 pm
> Why is the Arduino group organized as a benevolent dictatorship and not in a more open democratic way

Because the Benevolent Dictator created it that way.
4961  Using Arduino / Microcontrollers / Re: problems programming standalone 328 on: July 24, 2012, 06:00:10 pm
Did you burn a bootloader?  Which one?

Does your board have a 16 MHz crystal and load capacitors or a 16 MHz ceramic resonator?
4962  Using Arduino / Programming Questions / Re: SD file.println() on: July 24, 2012, 03:45:16 pm
Remember that when you upload a sketch it will run.  Then when you start Serial Monitor it will reset and run again.  Perhaps something else is causing it to reset a couple more times.  Each time it runs it will write a line.
4963  Using Arduino / Installation & Troubleshooting / Re: Loading Blink on the Leonardo error on: July 23, 2012, 09:00:52 pm
You could be selecting the wrong serial port.

The Leonardo firmware could be bad.
4964  Using Arduino / Programming Questions / Re: using micros() issue on: July 23, 2012, 08:59:25 pm
> I got it to work by removing the variable name and just using micros() instead of timer.
That's because 'timer' should have been an unsigned long instead of int.

> can micros() be used in certain sections of the program to see how long it takes for a certain loop to execute?
When you want to start timing you say:
Code:
unsigned long startTime = micros();
Then you are done timing you say:
Code:
unsigned long endTime = micros();

You can then use the time difference (endTime-startTime) to calculate how many microseconds between the start and end.

> Also is there a way to get micros() to pause?

No.  If you want to skip some of the time you just measure it and subtract it.
4965  Using Arduino / Programming Questions / Re: using micros() issue on: July 23, 2012, 05:22:27 pm
Your loop is too slow to catch the single microsecond when micros() == 20000000.  Try >= 20000000.
Pages: 1 ... 329 330 [331] 332 333 ... 591