Show Posts
Pages: 1 ... 372 373 [374] 375 376 ... 579
5596  Using Arduino / Microcontrollers / Re: Can I use this AVRUSB programmer for Atmegas? on: March 28, 2012, 09:08:26 pm
Yes.  It says USBasp compatible and that's what I use on my MacBook Pro.  Didn't need to install a driver.
5597  Development / Other Software Development / Re: AVRProjectIDE with version of Arduino 1.0 on: March 28, 2012, 09:00:41 pm
Looks like you have to add:
int main()
    while (1)

Not sure why it's complaining about pulseIn().  Looks like it might be declared twice.
5598  Using Arduino / Interfacing w/ Software on the Computer / Re: How do you reset a int ? on: March 28, 2012, 12:11:48 pm
int x;  // Creates a global variable called x containing 0

void draw(){
int x = 5;  // Creates a local variable called x containing 5
x = 0;       //  Changes the local variable x to contain 0
}  // End of function.  Local variable stops existing
5599  Using Arduino / Project Guidance / Re: Fuzzy Logic Control on: March 28, 2012, 11:25:19 am
Are the rules defined in any human-readable form?  The .ftr (fuzzyTech Rules?) file is a binary file so it's not of much use outside the fuzzyTech library.
5600  Using Arduino / LEDs and Multiplexing / Re: arduino programer wanted on: March 28, 2012, 11:06:15 am
You should probably post under Gigs and Collaboration.  Also mention where you are because unless you want to ship your hardware across the country or overseas you probably want a local collaboration.
5601  Using Arduino / Project Guidance / Re: No movement from motors on: March 28, 2012, 11:02:02 am
I see you don't do anything with the brakes.  Are you sure the output pins default the the right state to turn off the brakes?
5602  Topics / Science and Measurement / Re: measuring time on: March 28, 2012, 10:58:03 am
unsigned long StartTime = millis();


unsigned long CurrentTime = millis();
unsigned long ElapsedTime = CurrentTime - StartTime;

That will give you the elapsed time in milliseconds, up to about 40 days.  If you need more precise measurement you can use 'micros()' instead of ''millis()' to get microseconds, up to a couple of hours, I think.

The Arduino clock isn't very accurate so your timing may be off by minutes a day.
5603  Using Arduino / Sensors / Re: Touch sensor with sound. on: March 28, 2012, 10:38:04 am
You can implement a touch sensor with two data pins and a resistor. See:

For sound output you would probably want some specialized hardware such as the Wave Shield ( or MP3 Trigger (
5604  Using Arduino / General Electronics / Re: Thermistors reading different values in the same spot? on: March 27, 2012, 06:30:08 pm
The difference between the two is 0.03k or a difference of about 0.3%.  Pretty good!
5605  Using Arduino / Project Guidance / Re: Hello everyone Please give me your guidence on my project on: March 27, 2012, 05:37:05 pm
You're not the first to ask about those glasses.  They appear to be made from PCB material and use the PCB traces for horizontal connections and very fine wires for vertical connections.  Aside from that they are probably a plain 8x24 matrix.
5606  Using Arduino / Sensors / Re: Touch sensor with sound. on: March 27, 2012, 05:30:48 pm
> Do I need an ethernet cable to be able to get the RSS data?
You need Ethernet, WiFi, or a program running on a PC with Internet access to pass the data through the USB cable to the Arduino.

> and will I be able to trigger sound with a touch sensor?
Yes.  You can use a touch sensor to do anything you like.
5607  Using Arduino / Programming Questions / Re: Debugging and advice needed (Do-While-Loops with several conditions?) on: March 27, 2012, 05:28:03 pm
2.) Can I combine more than one condition in a "do .. while" loop?

You can only have one boolean expression in the do {} while (boolean); but that expression can be very complex and can include the && (And) and || (Or) operators so you can check for BOTH sides true (true && true) or EITHER side (true || false).
5608  Development / Other Software Development / Re: AVRProjectIDE with version of Arduino 1.0 on: March 27, 2012, 05:16:40 pm
Did you include the appropriate pins_arduino.h like from hardware/arduino/variants/standard/pins_arduino.h?
5609  Using Arduino / Sensors / Re: Max Arduino Uno Ultrasonic Sensors on: March 27, 2012, 09:40:51 am
I'm guessing if we're maxed out on 16 the best route would be to run a second board to handle the LED's and sync them up?

The I2C bus only uses two pins (A4 and A5).  You still have about 17 pins for other stuff.  With 8 pins you can make a 4x4 matrix display of your 16 LEDs.
5610  Using Arduino / Sensors / Re: Max Arduino Uno Ultrasonic Sensors on: March 26, 2012, 10:15:49 pm

You can set the I2C address of the module to any one of 16 choices.  That means that "up to 16 sonar's can be used" on a single I2C bus such as is found on the Arduino.
Pages: 1 ... 372 373 [374] 375 376 ... 579