Show Posts
Pages: 1 ... 411 412 [413] 414 415 ... 582
6181  Using Arduino / Microcontrollers / Re: Problem uploading a sketch to ATMEGA644 on: February 08, 2012, 01:45:43 pm
Doesn't the 644 require stk500v2 like the Arduino Mega?
6182  Using Arduino / Programming Questions / Re: Confused over ISP Programmer on: February 08, 2012, 12:43:29 pm
What error are you getting?
6183  Topics / Robotics / Re: Steering Movement Problem on: February 08, 2012, 12:17:55 pm
1)Programming Error
-->the code is working fine

Excellent!  Glad you found and fixed the problem.
6184  Using Arduino / Sensors / Re: identical values on multiple DS18B20s on: February 07, 2012, 08:25:06 pm
Time to show your code, I think.
6185  Using Arduino / Programming Questions / Re: Different buttons for different loops, building a wired control. on: February 07, 2012, 07:27:49 pm
Code:
const int LeftButtonPin = 2;
const int RightButtonPin = 3;
const int ForwardButtonPin = 4;
const int BackwardButtonPin = 5;

bool goLeft() {return digitalRead(LeftButtonPin);}
bool goRight() {return digitalRead(RightButtonPin);}
bool goForward() {return digitalRead(ForwardButtonPin);}
bool goBackward() {return digitalRead(BackwardButtonPin);}


void loop()
   {
   if (goLeft())
        turnLeft();
    else
    if (goRight())
        turnRight();
    else
    if (goForward())
        forward();
    else
    if (goBackward())
        reverse();
    else
       stopRobot();
    }

You can even add combinations like (if(goLeft() && goForward())  to circle left instead of turning in place.
6186  Using Arduino / Project Guidance / Re: finger as a bridge with e-textile on: February 07, 2012, 07:12:10 pm
The finger doesn't conduct much so you can't really use it to complete a circuit like that.

The CapSense library (http://arduino.cc/playground/Main/CapSense) will let you use a conductive patch as a touch sensor.  I don't know how well that will work if the conductive patch is close to the body.  May require extra insulation on the inside of the garment.
6187  Topics / Robotics / Re: Steering Movement Problem on: February 07, 2012, 07:00:09 pm
can any body tell me why my board is getting reset while i move the steering

1) Programming error
2) Insufficient RAM
3) Electrical problem such as voltage drop.
6188  Using Arduino / LEDs and Multiplexing / Re: 4051 and pots on: February 06, 2012, 01:01:06 pm
The ATmega has a sample-and-hold capacitor after the built-in multiplexer.  If you change the multiplexer it adds some time to the reading process to let the new value settle.  If you use an external multiplexer and read the same input again it doesn't know that the input may have jumped A LOT since the last reading so it does a short cycle.  Try adding a small delay between changing the external multiplexer and reading the input pin.

Another method often used is to read the same input twice and throw away the first reading.
6189  Using Arduino / Storage / Re: Magnetic stripe card writer and reader with Arduino on: February 06, 2012, 11:59:31 am
Do you think this can be useful for me?

http://www.sparkfun.com/products/8634

It reads and writes, so i can use the same device to perform both the operations.

You'll need to figure out how to power it (Arduino doesn't have a PS2 port) and you may need level shifters (MAX232) to connect to the RS232 cable or find internal Serial TTL signals you can use.

You can get similar reader/writers on eBay for about the same price.
6190  Using Arduino / LEDs and Multiplexing / Re: Help controlling a 4x9 LED matrix and identifying components on: February 06, 2012, 11:35:04 am
Your cheap headlamp has a very poor circuit:  9 LED's in parallel and only one current limiting resistor.  There is no guarantee that the curren through the resistor is shared evenly. You can measure the voltage drop across the LED's to get that.  Subtract that from 4.5V (the supply voltage) and divide by 2.2 to get total current (in Amps).  Divide again by 9 to get the (intended) current through each LED. That will give you the two values you need to design any LED circuit: forward voltage drop and current.
6191  Development / Suggestions for the Arduino Project / Re: Arduino board suggestions for a keyboard project on: February 06, 2012, 11:23:57 am
"LCARS" is the touch-screen interface use throughout the starship Enterprise in Star Trek: Next Generation.

Have you chosen the touchscreen hardware yet?  Depending on the interface to the touchscreen you ma want a very small or a very capable Arduino.
6192  Using Arduino / Programming Questions / Re: errors with "arduino brain library" on: February 06, 2012, 11:12:21 am
You have to install the Brain library.  Put the library files in {your sketch folder}/libraries/Brain/

This might be what you need: https://github.com/kitschpatrol/Arduino-Brain-Library/downloads
6193  Using Arduino / Project Guidance / Re: pulseIn questions on: February 06, 2012, 10:02:01 am
The default timeout is 1 second.  If you wait more then one second before pushing the button OR you hold it down for more than one second you will get a 0 return which means TIMEOUT.

Try pulseIn(pin, HIGH, 100000000UL) for a 100-second timeout.
6194  Using Arduino / Project Guidance / Re: Arduino + Transmitter + receiver basic tutorial on: February 06, 2012, 09:44:29 am
There's this one:

http://www.creativeapplications.net/sound/wireless-arduino-of-tutorial/

Typically you would use the VirtualWire library:
http://www.open.com.au/mikem/arduino/
6195  Using Arduino / Programming Questions / Re: Cant upload program through Bluetooth on: February 06, 2012, 09:31:20 am
I would guess that either the Auto Reset is not implemented and/or the baud rate is wrong for the bootloader.
Pages: 1 ... 411 412 [413] 414 415 ... 582