Show Posts
Pages: 1 ... 61 62 [63] 64 65 ... 232
931  Using Arduino / Programming Questions / Re: If else you else my if else question. If else question on: February 04, 2014, 11:31:07 pm
uS is time, not a distance, so why are you comparing uS to your distance?
if(uS > 100) ??? You may want to convert uS first then compare it.
932  Using Arduino / Project Guidance / Re: Need help in Codes for Arduino and RADius-S v1.1 on: February 04, 2014, 11:06:37 pm
Upload with module off, then put module back on.
933  Using Arduino / LEDs and Multiplexing / Re: Analog LED strips To digital Control on: February 04, 2014, 11:01:03 pm
You could use demultiplexers and maybe shift registers. Will you be dimming the strips too?
934  Using Arduino / Project Guidance / Re: Can't get Arduion.cc DigitaReadSerial Example to work. PLEASE HELP on: February 04, 2014, 10:26:58 pm
So to clarify, the serial monitor baud rate (located in bottom right corner of terminal) matches the baud rate set it your code, 9600?
935  Using Arduino / Project Guidance / Re: Need help in Codes for Arduino and RADius-S v1.1 on: February 04, 2014, 09:44:55 pm
Does the TX led on the transmitter blink or light up? Does the RX on the receiver do the same? If neither light up, then it could be your modules have a problem.

Hold up, your not going to send or receive with the serial monitor if the modules are attached to the normal Tx and RX pins. Your boards are set for hardware serial and not software serial like they should be. Move the jumpers on both boards. To send with the serial monitor, you need to first setup software serial on both boards and use pins 2 and 3. Then combine Serial.read with softSerial.write to send and use the reverse to receive.

Please note this is if you want to use the serial monitor to both send and receive, however you can have the transmitter set to normal hardware serial and use Serial.println("message"); but the receiver will need to be set to software serial regardless.
936  Using Arduino / Project Guidance / Re: My 1st project: TIE Crawler from the Star Wars Expanded Universe on: February 04, 2014, 05:13:15 pm
There is no L and R, there is Z and C, have another look at it.  Also you're not going to fit everything inside it, so you will need to use the cable.
937  Using Arduino / Project Guidance / Re: My 1st project: TIE Crawler from the Star Wars Expanded Universe on: February 04, 2014, 04:43:46 pm
There is a library you could use if you plan on just using the Nunchuck alone, but if you want to use both then you would need to get a USB host shield and bluetooth dongle. However if you use this Wii classic controller, it too has its own library and it is easy to set up.
938  Using Arduino / Project Guidance / Re: Need help in Codes for Arduino and RADius-S v1.1 on: February 04, 2014, 11:55:04 am
Where is your receiving code?

Code:
void setup()
{
  Serial.begin(9600);
}

void loop()
{
  if(Serial.available() > 0)
  {
    char c = Serial.read();
    if(c == '\n' || c == '\0') // look to see if newline char was sent or NULL char was sent
        Serial.println();
    else
        Serial.print(c);
  }
}
939  Using Arduino / Project Guidance / Re: Hey, need some help on where to start programming! (Balancing Bot) on: February 03, 2014, 09:58:56 pm
Quote
then the angle is positive, so i wanted the angle to be mapped from 0 to 90(or 180, but the bot cant move past 90) and say its falling backwards,
Ok, I see what you were doing now.
940  Using Arduino / Project Guidance / Re: Hey, need some help on where to start programming! (Balancing Bot) on: February 03, 2014, 08:20:51 pm
Quote
if (0 <= accelAngleX < 180)
For starters, this isn't proper format. It should be if(accelAngleX >= 0 && accelAngleX < 180) and when will accelAngleX be greater than 180? You really want to look to see if it is less then 90, if so map to pwmA, otherwise it is greater and so it should be map to pwmB.

Also your maps should be 0, 90 for pwmA and 90, 180 for pwmB.
941  Using Arduino / Project Guidance / Re: My 1st project: TIE Crawler from the Star Wars Expanded Universe on: February 03, 2014, 04:30:32 pm
Exact measurements, if you can.
942  Using Arduino / Project Guidance / Re: My 1st project: TIE Crawler from the Star Wars Expanded Universe on: February 03, 2014, 04:06:25 pm
Yea, well I think it is.
943  Using Arduino / Project Guidance / Re: My 1st project: TIE Crawler from the Star Wars Expanded Universe on: February 03, 2014, 03:34:37 pm
IR Vs. RF
944  Using Arduino / Project Guidance / Re: My 1st project: TIE Crawler from the Star Wars Expanded Universe on: February 03, 2014, 03:11:53 pm
That is difficult to say. Yes there are things better than others but they might not fit in the space you have to work with.
You have the tracks already? Did they come with any sprockets or gears?

In order to figure out what motors will work for you, you need to first make the model structure. Then see how much room you have left after you installed the tracks + gears/sprockets, and if possible get some test motors.

For the Arduino, you may want to get either a Nano, Micro, or Mini. (Preferably the 5 Volt Mini).
As far as a motor controller, try these.
One
Two

Or you can make your own motor controller with one of these, SN754410NE

I don't know anything about IR trans/receivers so I can't help you there, but you could maybe use a RF trans/receiver pair.
945  Using Arduino / Project Guidance / Re: Semester project on: February 02, 2014, 01:57:29 pm
Your project is feasible but what is the 412 arduino shield, do you have a link?
Pages: 1 ... 61 62 [63] 64 65 ... 232