Show Posts
Pages: 1 ... 435 436 [437] 438 439 ... 599
6541  Using Arduino / Installation & Troubleshooting / Re: IDE not printing on: January 31, 2012, 10:54:51 am
Same problem here on a Mac with 1.0.  I think someone broke the printing. smiley-sad
6542  Using Arduino / Sensors / Re: Arduino IR remote keyboard, need some help! on: January 31, 2012, 10:38:03 am
yes... that is what I have already found out myself. I need help on getting the value because all I see are 0's so far. I also don't know how to assign a specific key to a tone.

If you get 0's for the results.value it is probably because the remote was not using one of the recognized protocols (Sony, RC5, RC6, NEC).  This article shows how to generate a unique code from the raw pulse length values:

http://www.arcfn.com/2010/01/using-arbitrary-remotes-with-arduino.html
6543  Using Arduino / Sensors / Re: Arduino IR remote keyboard, need some help! on: January 30, 2012, 10:51:55 pm
So you print out a numeric value and blink the light.

To act on keyboard input you would use that numeric value to determine which key was pressed.

You can ten use the Tone library to play a note based on which key was pressed.
6544  Using Arduino / Networking, Protocols, and Devices / Re: HMC6352 Suggestions on: January 30, 2012, 04:32:25 pm
but the problem is that  i am getting the variation in my output direction is continuously varying because of the change in lat\long from my GPS
Please explain.
6545  Using Arduino / Motors, Mechanics, and Power / Re: Arduino Motor Shield R3 Help on: January 30, 2012, 04:26:00 pm
Well look at that!  Exactly what I told you to do.

Code:
// set the PWM and brake pins so that the direction pins  // can be used to control the motor:
pinMode(pwmA, OUTPUT);
 pinMode(pwmB, OUTPUT);
 pinMode(brakeA, OUTPUT);
 pinMode(brakeB, OUTPUT);
 digitalWrite(pwmA, HIGH);
 digitalWrite(pwmB, HIGH);
 digitalWrite(brakeA, LOW);
 digitalWrite(brakeB, LOW);
 
6546  Using Arduino / Audio / Re: Mini Jack audio connection to Arduino Ethernet with PoE module on: January 30, 2012, 01:27:11 pm
Maybe this would work for you:

http://www.diybin.com/products/Seeedstudio-Music-Shield.html

It can record and play back various data formats.
6547  Using Arduino / Installation & Troubleshooting / Re: Problem uploading - stk500_getsync(): not in sync: resp=0xe0 on: January 30, 2012, 12:44:11 pm
So the USB-to-Serial isn't working properly.  Next step is to refresh the USB-to-Serial firmware:

http://arduino.cc/en/Hacking/DFUProgramming8U2
6548  Using Arduino / LEDs and Multiplexing / Re: 40mA to 960mA on: January 30, 2012, 11:51:47 am
You want a Logic Level N-Channel MOSFET.  The Gate goes to the Arduino pin.  The Source connects to the - side of the LED's (Cathode).  the Drain connects to the ground side of the +12V supply AND to the Ground of the Arduino.

Most MOSFETS are rated with a Gate voltage of 10v.  You want one that will switch fully on at 4.5V or less.  These are called "Logic Level" because they are compatible with 5V TTL logic levels.
6549  Using Arduino / LEDs and Multiplexing / Re: 74HC… are all the same? on: January 30, 2012, 11:46:37 am
Check out the 74HC4511:  http://ics.nxp.com/products/hc/datasheet/74hc4511.pdf
6550  Using Arduino / Installation & Troubleshooting / Re: Sizes of loaded modules? on: January 30, 2012, 11:40:41 am
Shut down the IDE.
Set the preferences.txt option: preproc.save_build_files=true
Re-start the IDE.
Set the Preferences... option for verbose build messages.
"Verify" the sketch.
Use the messages to find the build folder and navigate there.  In my case:

    cd /var/folders/cs/p6yz0z1m8xj9lf0059b_lzw00000gn/T/build6087954880987522770.tmp/

Run the avr-size command on the object files.  In my case:

 '/Applications/Arduino 1.0.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-size' *.o
   text      data       bss       dec       hex   filename
   4800       346       240      5386      150a   BalloonControl.cpp.o
      0         0         0         0         0   CDC.cpp.o
      0         0         0         0         0   HID.cpp.o
   1544         0       167      1711       6af   HardwareSerial.cpp.o
    512         0         6       518       206   IPAddress.cpp.o
   1710         2         0      1712       6b0   Print.cpp.o
   1244         0         0      1244       4dc   Stream.cpp.o
   1365         1        21      1387       56b   Tone.cpp.o
      0         0         0         0         0   USBCore.cpp.o
    288         0         4       292       124   WInterrupts.c.o
    306         0         0       306       132   WMath.cpp.o
   4796         1         1      4798      12be   WString.cpp.o
     30         0         0        30        1e   main.cpp.o
     44         0         0        44        2c   new.cpp.o
    564         0         9       573       23d   wiring.c.o
    266         1         0       267       10b   wiring_analog.c.o
    500         0         0       500       1f4   wiring_digital.c.o
    314         0         0       314       13a   wiring_pulse.c.o
    260         0         0       260       104   wiring_shift.c.o


Note that the libraries are built in sub-directories so you will have to navigate to them individually.  Some of those sub-directories have further sub-directories.

6551  Using Arduino / Programming Questions / Re: Error programming ATTiny85 on: January 30, 2012, 11:13:05 am
Did you put in the capacitor to disable reset on the UNO?

Did you try selecting File->Upload Using Programmer rather then just pressing the Upload button?

If those fail, turn on verbose upload messages in Preferences... and study the messages for further clues.
6552  Using Arduino / Project Guidance / Re: Building a very basic car injection computer. on: January 30, 2012, 11:00:14 am
I think your program needs more inputs:

How much air is flowing into the engine?  More air means more gas needed to keep the same mixture.

What is the current throttle position?  Pushing the throttle should inject more gas to produce more power but not more gas than can be burned with the air flow.
6553  Using Arduino / General Electronics / Re: Series of three potentiometers on one analog input (es: led RGB) on: January 30, 2012, 10:53:21 am
I don't think that what you want to do is possible with pots.  It would be possible with switched resistors that have discrete values.

You could eliminate the momentary switch and use a single pot:
Code:
unsigned color = analogRead(potPin);  // Read 10-bit value
byte Red    = (color & 0b0000000111) << 5; // 3 bits (8 levels) of Red
byte Green = (color & 0b0001111000) << 1; // 4 bits (16 levels) of Green
byte Blue   = (color & 0b1110000000) >> 2; // 3 bits (8 levels) of Blue
analogWrite(redPin, RED);
analogWrite(greenPin, Green);
analogWtite(bluePin, Blue);
6554  Using Arduino / Sensors / Re: Arduino IR remote keyboard, need some help! on: January 30, 2012, 10:33:20 am
If you show the sketch you have now for turning on the light, perhaps we can help.

Don't forget to use Tools->Auto Format to make it pretty.

Don't forget to use code tags around it to make it readable (the # button above the reply box).
6555  Using Arduino / Audio / Re: Mini Jack audio connection to Arduino Ethernet with PoE module on: January 30, 2012, 10:28:46 am
Did you want to digitize the audio?  The 16 MHz Arduino can acquire only 9259 10-bit samples per second (about 4.6 KHz bandwidth).  You can get 76,900 samples per second (~38.5 KHz bandwidth) at lower resolution... how much lower they don't seem to say. smiley-sad
Pages: 1 ... 435 436 [437] 438 439 ... 599