Show Posts
Pages: 1 ... 306 307 [308] 309 310 ... 411
4606  Using Arduino / Programming Questions / Re: Question about pin13 (when not using it) on: October 03, 2011, 11:29:22 am
Resets also occur anytime the Arduino's serial port is opened or closed.

There could be software on your PC that is "scanning" for Serial Ports.  This behavior will cause the Arduino to reset.  Often, software associated with cellular-broadband adapters do this type of scanning.
4607  Using Arduino / Programming Questions / Re: Why are there so many global variables in the examples? on: October 03, 2011, 11:24:48 am
This is probably the start of a flame war (which I doubt was your intent.)

The Arduino platform appeals to a large audience.  Some people just want to make some kind of flashy blinky project, some people want to build robots, and others are do things nobody ever thought possible.

The examples tend to be simplified to make them more readable than to teach programming concepts.  Not everyone who uses an Arduino is (or wants to be) a programmer...
4608  Using Arduino / Programming Questions / Re: trouble using millis() for timing less than 0.5sec on: October 03, 2011, 11:16:49 am
1.  Please use the code tags when posting code (or press the '#' in the editor.)
2.  Integer contants will result in integer math.

Code:
  lcd.print(boardTime/1000);
Is not the same as:
Code:
  lcd.print(boardTime/1000.0);
4609  Using Arduino / Project Guidance / Re: Powering an Arduino on: October 03, 2011, 10:58:52 am
Quote
But why do others say that using a 9V will fry my Arduino?

Nobody said that.  We were making the point that 9Vs are very lousy choices for most projects because of their low current capacity.  After using one your next question was sure to be "why doesn't this work for very long?"
4610  Using Arduino / Programming Questions / Re: PORTA,PORTB, PORTC on: October 03, 2011, 10:41:10 am
Quote
How can you sample all of the pins, using PORTF ect, does the register some how return the A-D value?

The register ADMUX determines which pin is muxed to the A/D.  The result of the conversion would be in ADCL and ADCH.

PORTF,etc (assuming that is the right PORT) would only be used when the A/D pins are used as digital I/O.
4611  Using Arduino / Project Guidance / Re: Powering an Arduino on: October 03, 2011, 09:25:39 am
Quote
I hope you have deep pockets.
The next one-line out of context question will be, "Why does Arduino stop working after a few minutes?"
4612  Using Arduino / Project Guidance / Re: Passionate about trash on: October 02, 2011, 10:07:00 pm
Quote
I figure if there was a bunch of intelligent folk anywhere able to do this, it's here
There is no shortage of good ideas in the world.  There is, however, a shortage of people to execute those ideas.
4613  Using Arduino / Installation & Troubleshooting / Re: Shorted out Uno while successfully running soleniod actuation sketch on: October 02, 2011, 09:53:42 pm
Quote
Initially, the chip on the arduino is very hot to the touch.
Which chip?  The ATmega?

If your ATmega is removable, remove it.  If the PC recognizes a Uno is attached, then the board and 8u2 (serial to usb) is working.

If anything on the board is hot (or even warm) to the touch, when connected to usb and no other hardware is connected, then that chip is likely dead.
4614  Using Arduino / Programming Questions / Re: Problem Connecting Arduinos Over Serial on: October 02, 2011, 05:52:13 pm
Keep in mind that if you Serial.write(), binary numbers are sent.  Unless those are in the range of 32-127, the serial monitor won't have anything to print.
4615  Using Arduino / Programming Questions / Re: pin mapping ? on: October 02, 2011, 05:48:58 pm
Quote
I thought it needed to set as input for it to work
Nope.  If the pin is set as output, the value of the port's register is returned.  A handy way for code to find out the status of an output pin.

As already mentioned, there is some overhead involved.  But as you have learned, anytime there is mapping involved there is going to be overhead.
4616  Using Arduino / Programming Questions / Re: Problem Connecting Arduinos Over Serial on: October 02, 2011, 04:23:33 pm
Can you draw a block diagram of how you have hardware connected?  (Illustrating which TX and RXs are going where.)
4617  Using Arduino / Programming Questions / Re: Can someone tell me what I am doing wrong? on: October 02, 2011, 01:42:16 pm
Quote
Your code looks terrible from that link.  Could you save your code as a pdf or something and attach it at the bottom " Additional Options "

Why should the OP do that?  Save the pde file and load it in the Arduino editor.
4618  Using Arduino / Project Guidance / Re: First Project need help please :/ on: October 02, 2011, 01:40:25 pm
1.  So are we just suppose to guess what "doesn't work" means?
2.  When posting code please wrap it in code tags (the "#" symbol in the editor)
3.  Is this a Processing sketch, Arduino sketch, or combination?

4619  Using Arduino / Installation & Troubleshooting / Re: 9V power supply issue on: October 02, 2011, 01:00:14 pm
How many volts in a single AA cell?  (Hint:  About 1.5V)
6 * 1.5V = ?
4620  Using Arduino / Installation & Troubleshooting / Re: 9V power supply issue on: October 02, 2011, 12:55:57 pm
Would it still safely work with an Arduino if there were 6 AAs?

Why wouldn't it be safe?
Pages: 1 ... 306 307 [308] 309 310 ... 411