Show Posts
Pages: 1 ... 916 917 [918] 919 920 ... 1169
13756  Forum 2005-2010 (read only) / Troubleshooting / Re: Lot of noise on my encoder on: April 06, 2009, 01:02:19 pm
My guess is you have a mechanical encoder. The one (from china) I tried had contact bounce problems and the mechanical detents did not always seem to be spaced properly to switching transistion points. Anyway you might see if you can add some contact debouncing code, see the Arduino reference and playground for information on that topic.

I solved my problems with finding some affordable optical encoders that do not exibit any contact bounce problems at all.

Good luck
Lefty
13757  Forum 2005-2010 (read only) / Troubleshooting / Re: Pins reading "HIGH" with no input on: April 08, 2009, 01:59:36 am
A digital input pin that is wired to a normally open switch contact will cause a floating or non-defined input state. One should use an external pull-down or pull-up resistors, or enable the internal optional software pull up resistor to force the input value to a known state.

The easiest way is to enable the internal pull-up resistor and wire the other end of the switch to ground. This will require you to reverse your 'logic' on what value a 'pushed' switch is. There is much posted on this subject and in the reference documents.

Lefty
13758  Forum 2005-2010 (read only) / Troubleshooting / Re: URGENT please help!!! on: April 03, 2009, 06:05:04 am
If time is a big factor just buy a preprogrammed chip. Maybe buy two as you really don't know what caused it so it might happen again. If you have the time then having a programmer will allow you to be a bit more self reliant.

Lefty
13759  Forum 2005-2010 (read only) / Troubleshooting / Re: Bootloader hosed? Serial.println() still works.... on: April 02, 2009, 03:23:54 am
I think your guess about having a hosed bootloader is the most likely cause. Why and how did it get hosed, who knows.

It's a good excuse to get a USBtinyISB programmer kit from Adafruit. It will burn a fresh copy of the bootloader from the Arduino IDE and if your running windows there is now a GUI wrapper for AVRDUDE avalible so you don't have to learn all the command line options and variables to utilize AVRDUDE. This would also allow you to burn in a sketch without having a bootloader resident in memory so you can reclaim that extra memory space for your application.

See, every cloud has a silver lining  smiley-wink

Lefty
13760  Forum 2005-2010 (read only) / Troubleshooting / Re: Gah! Arduino troubles. on: March 29, 2009, 05:19:16 pm
Quote
I don't think (by looking at the price) the atmega 328 from sparkfun comes with the bootloader on it.
(In the description there is also no reference to a bootloader.)

They seem to sell them in both flavors, with and without bootloader:

http://www.sparkfun.com/commerce/product_info.php?products_id=8846

http://www.sparkfun.com/commerce/product_info.php?products_id=7957

Lefty
13761  Forum 2005-2010 (read only) / Troubleshooting / Re: What was your biggest struggle or revelation? on: March 14, 2009, 10:01:21 pm
Keeping the Arduino IDE from writing all that red sh*t in the bottom window when I try to compile or upload. It sure is fussy about details  smiley-wink

Lefty

13762  Forum 2005-2010 (read only) / Troubleshooting / Re: arduino with sharp IR sensors on: March 23, 2009, 03:31:55 am
Sorry Brad, I have no experiance with that type of sensor. Seems like does output a analog voltage. Perhaps you could use a digital volt meter to see if there is valid voltage coming out of the sensor(s).

Lefty

13763  Forum 2005-2010 (read only) / Troubleshooting / Re: arduino with sharp IR sensors on: March 23, 2009, 02:36:23 am
Can you provide the part number of your sensors or a link to a data sheet for them? The 3 terminal IR receiver devices I am familiar with output a digital signal not a analog signal. Here is a project using such a sensor from the playground.

http://www.arduino.cc/playground/Code/InfraredReceivers

Lefty
13764  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino with MAX232 not transferring data properly on: January 18, 2009, 08:56:36 pm
That's a good suggestion. Just wire pins 9 to 10 on the 232 chip together and just use Hyperterminal or other basic PC serial communications program to see if the data loops back properly or not. That should isolate the problem somewhat. Also make sure your serial cable is wired correctly as there are some that are wired as a null modem so they swap send and receive signals. Of course a scope if available would make short work of isolating the problem  smiley-wink

Lefty

13765  Forum 2005-2010 (read only) / Troubleshooting / Re: Arduino with MAX232 not transferring data properly on: January 18, 2009, 08:25:54 pm
My Arduino serial clone board uses a HIN232CP and is using .1mfd caps. Here is the data sheet:

http://www.intersil.com/data/fn/fn3138.pdf

Lefty
13766  Forum 2005-2010 (read only) / Troubleshooting / Re: Sending data via usb back to the 0014 program on: March 13, 2009, 12:58:37 am
Yes, once your sketch is finishing uploading then hit the serial monitor icon on the IDE (last icon on the right). Then you should see a baud rate selection window at the top of the monitor screen, set this to whatever baud rate you selected in your sketch, example:

 Serial.begin(57600);

You can of course also use instead a general purpose serial program on your PC to do the same thing for example Hyperterminal if using Windows.

Lefty
13767  Forum 2005-2010 (read only) / Troubleshooting / Re: Atmega168 IC heating up on: March 12, 2009, 02:10:43 pm
Yep, sounds like it's time to give it a burial in the back yard.  :'(

Lefty
13768  Forum 2005-2010 (read only) / Troubleshooting / Re: Atmega168 IC heating up on: March 12, 2009, 12:00:44 pm
Wiring error? You really haven't provided enough information to help so all I can suggest is to double check the wiring.

Lefty

13769  Forum 2005-2010 (read only) / Troubleshooting / Re: Why, (voltage) on: March 12, 2009, 12:53:28 pm
val != val3 ?

13770  Forum 2005-2010 (read only) / Troubleshooting / Re: No pullup resistor on pin 13 on Duemilanove? on: March 11, 2009, 11:48:52 pm
The pin 13 LED and it's serial current limiting resistor is acting like a pull down load. One would have to pull up with a pretty low value resistor to over come this, much lower then the 'weak' pullup that can be activated in software.

Pin 13 is best used as an output pin. To use it as an input pin the source sending the signal would have to be able to source at least a couple of milliamps at 5v as the LED and it's resistor represents a load that otherwise a AVR high impedance input pin does not exhibit.

Of course one is free to just cut or unsolder one of the resistor legs to disconnect this pull down load.
 Lefty
Pages: 1 ... 916 917 [918] 919 920 ... 1169