Show Posts
Pages: 1 ... 375 376 [377] 378 379 ... 539
5641  Using Arduino / Motors, Mechanics, and Power / Re: Precision/Servo-like DC Motor Control? on: January 31, 2012, 12:30:58 pm
The Arduino can do the PID but you need a suitable feedback mechanism.  Typically this will be a shaft encoder that will allow the Arduino to know what position the motor shaft is in.  This can be an absolute encoder which produces a number that indicates the current position or a simpler quadrature encoder that gives pulses to let the Arduino know that the shaft has turned one step and in which direction.  If you are turning multiple turns then you will need some kind of "home" indicator so the Arduino can determine wen the system is at some known position from which it can measure.
5642  Community / Gigs and Collaborations / Re: Search for Arduino freelance/developper for professional sketche on: January 31, 2012, 12:23:05 pm
"Please join me by PM with your price , I’ll send you a detailed explanation of my need."

If it were me, I'd want to get the detailed explanation BEFORE specifying a price. smiley
5643  Using Arduino / Networking, Protocols, and Devices / Re: Host image with arduino (not embedded with html page) on: January 31, 2012, 12:02:48 pm
I think you need to get the IMG tags out of your file contents.  Try something like this:

Code:

          client.println("HTTP/1.1 200 OK");
          client.println("Content-Type: image/png");
          client.println("Content-Encoding: base64");
          client.println();
          client.println(
         //PNG starts here!
"iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAAC"
"NbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DH"
"xgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==\"
         //PNG Ends here
           );
5644  Using Arduino / Networking, Protocols, and Devices / Re: Arduino Ethernet: How to bridge W5100 INT pin to ATmega328 PD2 pin? on: January 31, 2012, 11:37:32 am
Bad news.  According to the Eagle schematic, Pin 56 (INT) isn't connected to anything.  The only way to bridge it to D2 is to wire directly to the pin of the W5100.  Likewise the line from the ATmega to the D2 pin doesn't go anywhere else.  smiley-sad
5645  Using Arduino / Programming Questions / Re: using struct command on: January 31, 2012, 11:03:23 am
You probably want an array of structures:
Code:
#define NUM_LEDS 60
struct CRGB { unsigned char r; unsigned char g; unsigned char b; };
struct CRGB leds[NUM_LEDS];

That can be shortened to:
Code:
#define NUM_LEDS 60
struct CRGB { unsigned char r; unsigned char g; unsigned char b; } eds[NUM_LEDS];
5646  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
5647  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
5648  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.
5649  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.
5650  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);
 
5651  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.
5652  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
5653  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.
5654  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
5655  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.

Pages: 1 ... 375 376 [377] 378 379 ... 539