Show Posts
Pages: 1 ... 281 282 [283] 284 285 ... 411
4231  Using Arduino / General Electronics / Re: Motor control through USB Joystick on: December 04, 2011, 07:37:59 pm
In looking around, I've figured that to power my several servos and one DC motor, I'll need a motor shield, so I can't use a shield to connect the USB joystick to the Arduino board.
Why?  Does the motor shield consume every available I/O pin and/or the pins used by the USB Host shield?

So my thought is to connect the Arduino board to my laptop, and the laptop to the joystick. Is there any way to do this?
Yes.  Write a program on your PC that reads the Joystick's status and then communicates with the Arduino over Serial.
4232  Using Arduino / General Electronics / Re: Too much current for the Arduino to handle? on: December 04, 2011, 07:32:00 pm
The resistor isn't the only resistance, the lights themselves are resistance limiting the flow of current
Except that when LEDs have their forward voltage dropped, their resistance is practically 0.
4233  Using Arduino / Programming Questions / Re: EEPROM Question on: December 04, 2011, 02:55:03 pm
This was pointed out but you seemed to ignore it.

Your array is 96 elements wide:
Code:
byte bled[96] = {

This means the index of the first element is 0 and the last element is 95.

Then you write to EEPROM using this loop:
Code:
for (int i=1; i<97; i++)  {
So the last value i will be is 96.  The last element is 95.  wled[96] is going to be undefined.

4234  Using Arduino / General Electronics / Re: Too much current for the Arduino to handle? on: December 04, 2011, 02:38:21 pm
Either I'm seriously messing up my calculations or I'm missing something here.

Yes you are.  You are missing proper measurements taken with a multimeter.  You can't reverse engineer something with just guesswork and math.
4235  Using Arduino / Installation & Troubleshooting / Re: Can't see a port for Arduino Ethernet on Mac on: December 04, 2011, 02:30:33 pm
Quote
In all seriousness, in the couple of years I've had this machine, I've never had to update or add drivers manually. Up to today, it's always been a case of it just works - this is spoiling the illusion.

Okay well, you need to install the FTDI drivers.  Either directly from FTDI's site or they are included on the Arduino disc image.
4236  Using Arduino / Installation & Troubleshooting / Re: Can't see a port for Arduino Ethernet on Mac on: December 03, 2011, 09:32:33 pm
Have you installed the latest version of the FTDI drivers?

What shows up in System Profilier when the FTDI cable is plugged in?
4237  Using Arduino / General Electronics / Re: PS1 Controller Questions on: December 03, 2011, 09:14:02 pm
http://www.arduino.cc/playground/Main/PSXLibrary
4238  Using Arduino / Project Guidance / Re: Can a Mega be powered by a 12V lead acid battery? What is the easiest way? on: December 02, 2011, 11:19:34 pm
Using an external regulator to step down to 9V and then use the on-board regulator for 5V is one way to effectively divide the heat between the two.
4239  Using Arduino / Programming Questions / Re: Working with byte datatypes in version 1.0 of the IDE on: December 02, 2011, 10:35:58 pm
Code:
Serial.print( ( unsigned ) 0x00 );

You really need to read the changes in 1.0.  Serial.print() prints the ASCII value.  The original poster is trying to write the value 0.   That is now done with Serial.write().

http://arduino.cc/en/Serial/Print
http://arduino.cc/en/Serial/Write

Serial.print(0); works fine.

Anyway, casting like this works for Serial.write():
Serial.write((uint8_t)0);
4240  Using Arduino / Programming Questions / Re: Getting each decimal out of a number on: December 02, 2011, 10:21:23 pm
last one line in the main program before servicing the next interrupt. During this time it stores the interrupt flag in a register.
Maybe one line of assembly but not C-code.

If an interrupt fires every 30us that is slow enough to finish quite a bit of code between interrupts.  It is also much faster than your human eyes can see the LEDs update.
4241  Using Arduino / Programming Questions / Re: Working with byte datatypes in version 1.0 of the IDE on: December 02, 2011, 10:05:52 pm
It only seems to occur when the value is 0.  Which makes me wonder if the overload is whether it is an integer or a null character?

Serial.write(0,1); 

(val, len) seems to work
4242  Using Arduino / Installation & Troubleshooting / Re: I think deleting WProgram.h was a bad idea on: December 02, 2011, 05:17:54 pm
No matter how long you provide legacy support, eventually things will break.  1.0 is a clearcut place to make some difficult decisions. 

The developers have been very clear that WProgram.h was going away.  So in essence, the "break-in" period should already be over.  Nobody should have been surprised when 1.0 came out yesterday.  It has been known for months this change was coming.

Whether it changed yesterday or 5 years from now, someone would make the pointless case that "this was a bad time to change it."  Yes, anytime you make a change like that, it is a bad time.
4243  Using Arduino / Installation & Troubleshooting / Re: Arduino IDE Crash on Mac OSX when uploading on: December 02, 2011, 05:13:35 pm
It appears to be a Java issue.  You might double check Software Update and see if you can get a Java update.

BTW, the FTDI drivers have nothing to do with the Uno.  A Uno emulates a USBModem (in your case /dev/tty.usbmodem441) and appears in Network System Preferences.
4244  Using Arduino / Programming Questions / Re: Arduino TV-B-Gone code on: December 02, 2011, 11:58:19 am
1.  Click the word that says "download here" at: http://www.arcfn.com/2010/11/improved-arduino-tv-b-gone.html
2.  Unzip the file into a folder
3.  Double-click the TVB.pde to launch the Arduino IDE.
4.  Click Upload
4245  Using Arduino / Project Guidance / Re: Does this IC exist? on: December 02, 2011, 11:38:51 am
ICs are created and sold for use in applications.  Explain the application you are trying to solve instead of the parts.  That will help you find if the IC exists and help others suggest what you need.
Pages: 1 ... 281 282 [283] 284 285 ... 411