Show Posts
Pages: 1 ... 285 286 [287] 288 289 ... 405
4291  Using Arduino / Programming Questions / Re: 1 volt? on: November 07, 2011, 05:59:42 pm
Power the motors directly. There is no (or little) value in providing them regulated power.
4292  Using Arduino / Programming Questions / Re: How to execute 2 functions in a simple sketch? on: November 07, 2011, 01:09:50 pm
What does "no work" mean?  You must explain what you expected to happen and what DID happen in order to get the best possible help.
4293  Using Arduino / Programming Questions / Re: board reset on: November 07, 2011, 09:23:22 am
eventhough i have pressed the reset button, why is that?

The RESET button restarts the microcontroller.  It doesn't do anything with the code in Flash memory. 

Maybe an error is occurring on upload, so the code isn't actually changing.
4294  Using Arduino / Project Guidance / Re: xbee full duplex on: November 06, 2011, 10:22:28 pm
http://lmgtfy.com/?q=xbee+full+duplex
4295  Using Arduino / Programming Questions / Re: noob can't add library on: November 06, 2011, 08:09:50 pm
can i open and edit the cpp file in the arduino ide? if so, how?
I would just use Notepad or whatever Text editor you wish to use and make the change directly.

Or I guess if you aren't comfortable making a small change, attached is the file with correction.
4296  Using Arduino / Programming Questions / Re: noob can't add library on: November 06, 2011, 07:36:44 pm
Sorry to mis-understood th OP, so to my understanding, the OP has on of those mis-match h file, I wonder if the cpp file has the same problem ... a mis-match bug.
Oops, I made a mistake.  I meant to say edit "TimerOne.cpp".  I'm going to edit the original post to reduce confusion.
4297  Using Arduino / Programming Questions / Re: 1 volt? on: November 06, 2011, 07:21:32 pm
I also said you are probably drawing too much current through the Arduino's 5V regulator.  I wouldn't power the motors from the 5V pin.
4298  Using Arduino / Programming Questions / Re: noob can't add library on: November 06, 2011, 07:19:24 pm
The download of the library has a bug in it.  I get the same error.

Open up the TimerOne.cpp file and change the line:

#include "TimerOneTesting.h"  //to
#include "TimerOne.h"


Edit: Fixed the file name that needs to be changed.
4299  Using Arduino / Project Guidance / Re: Arduino propely booting only if usb powered on: November 06, 2011, 05:57:29 pm
Heavy duty?  What is the current capacity of the battery?

USB doesn't use a regulator.  The 5V is provided from the USB rail.
4300  Using Arduino / Installation & Troubleshooting / Re: [Sketch] [Tool] [Help] not shown in Sketch-window with Mac-OSX on: November 06, 2011, 05:54:54 pm
Are you also new to Mac OS X?

The bar you describe is the menu bar.  As with every other Mac application, it is at the top if the screen, not the window.
4301  Using Arduino / Programming Questions / Re: 1 volt? on: November 06, 2011, 05:37:26 pm
im using a 9 volt battery
ou are likely drawing too much current through the Arduino's on-board regulator.  It is a wonder the board doesn't reset when you turn on the motors.

Agree with Paul.  If you're talking the PP3 style battery, that isn't going to work for powering a motor.  You'd need 3 or 4 of them in parallel.  6 AAs would make much more sense.
4302  Using Arduino / Programming Questions / Re: How would i take a serial array and split it for an rgb led on: November 06, 2011, 04:38:36 pm
well that won't wait for 13 characters, that'll fire even when Serial.available() is 0.
4303  Using Arduino / Programming Questions / Re: 1 volt? on: November 06, 2011, 04:34:05 pm
I dont have one what do you recommend I use? Oh and the transistors are the standard ones you get at radio shack, part number 2N3904.
A 100ohm or 1kohm is generally a good idea.  It helps to prevent too much current from flowing between the I/O pin and the transistor.  You have to be careful to pick a value small enough so that there is enough current to turn on the transistor but large enough to limit it.  I'd start with a 1k.

Oh and I don't know if this helps or not but I'm powering the two dc motors from the 5v pin on the arduino
And how are you powering the Arduino?
4304  Using Arduino / Programming Questions / Re: How would i take a serial array and split it for an rgb led on: November 06, 2011, 04:12:23 pm
You need to understand that Serial only transfers 1 byte at a time.  So even if you type "255,255,255" into the Serial Monitor the Arduino sees a '2', then a '5', then a '5', then a ',' and so on.

So the first step is to get the string of characters transfered correctly.  There are examples on how to do this in the forum.  Start there and then you'll have actual code you can ask questions about.
4305  Using Arduino / Programming Questions / Re: 1 volt? on: November 06, 2011, 02:23:15 pm
When posting code, is helpful to use the "#" button to wrap the code in code tags.


If a PIN is set to HIGH and it isn't at 5V it is usually because of two reasons:
1) The pin wasn't set to OUTPUT (which you did.) and
2) Too much current is being drawn. 

What value resistor do you have between the pin and the base of the transistor?
Pages: 1 ... 285 286 [287] 288 289 ... 405