Show Posts
Pages: 1 ... 411 412 [413] 414 415 ... 600
6181  Using Arduino / Project Guidance / Re: Which Arduino Platform to use on: March 06, 2012, 05:05:58 pm
The Teensy is smaller but not as Arduino compatible.  Here is what Lady Ada says about it:
Quote
Why not use a Teensy
We've also carry a similar board from PJRC called the Teensy . The Teensy uses the same chip so you may be wondering, why did we design a different-but-still-basically-the-same board? We've used the Teensy in a few projects and like it a lot but there are a few details that we wanted to change. We wanted…

…a bootloader that would work with avrdude since that is our preferred software
…another LED, for power-good indication
…a 500mA fuse on the USB power-source pin
…mounting holes so we could attach it easily
…reprogramming ISP header so we could program the board directly without the bootloader
…a larger reset button
…all the pins broken out for use with a breadboard
…open source bootloader that works with AVRdude
That doesn't in any way mean that it is better or replaces the Teensy. Here are some reasons we will still use the teensy for many projects

It's really really small. A third the size of this breakout
The bootloader that is programmed in uses only 512 bytes (instead of 2K)
It works nicely with Teensyduino and auto-resets right before programming

The Adafruit breakout board should work with the Arduino IDE if you uncomment the "micro" lines in boards.txt.
6182  Using Arduino / Project Guidance / Re: Which Arduino Platform to use on: March 06, 2012, 01:40:23 pm
The smallest option might be a ATmega32u4 (as in Arduino Micro and Arduino Leonardo) on a breakout board.  This is the first Arduino-supported ATmega that has built-in USB support.  Adafruit makes a nice little board:

http://www.adafruit.com/products/296
6183  Using Arduino / Programming Questions / Re: How to store a decimal value on eeprom on: March 06, 2012, 01:27:00 pm
You can take two values in the range 0 to 255 to make one value in the range 0 to 65535:
Code:
   unsigned char hvalue, lvalue;  // 8-bit values
   unsigned int full; // 16-bit value

   full = hvalue * 256 + lvalue;
6184  Using Arduino / Project Guidance / Re: Multiple simultaneous sounds on: March 06, 2012, 01:19:33 pm
If you don't want to invest in some audio playing hardware you will be storing uncompressed samples.

The first question is: How much total audio do you need to store?

The second question is: How much audio bandwidth do you need?

Together those would determine how much storage space you need.  If you want phone-quality audio you'll need about six thousand bytes per second.  If you want music quality you will need more like forty thousand bytes per second.  If you have a minute of audio that comes to 360 Kb to 2.4 Mb.  The Atmega328p has  32 Kb of FLASH so it looks like there is no sense in even attempting to store audio there unless: A) Your total audio is very short and B) you don't mind crappy audio quality.  I think you should go straight to an SD card or, perhaps, an add-on EEPROM chip.
6185  Using Arduino / Sensors / Re: Texas Instruments TMP100 (I2C) 7 bit slave address + 1 bit for READ(1)/write(0) on: March 06, 2012, 12:17:05 pm
Thanks, how do i make my post solved status?

I don't know but my guess would be a "Modify" link on your original post that might allow you to change the title.
6186  Using Arduino / Motors, Mechanics, and Power / Re: Why example code: stepper_oneReveution (28BYJ48+ULN2003) turns only clockwise? on: March 06, 2012, 08:48:08 am
Does it make any noises/vibrations during the time it is supposed to be going the other way?

My best guess is that it's wired incorrectly.
6187  Using Arduino / Installation & Troubleshooting / Re: Why does Arduino work on Windows XP and not Mac OSX? on: March 06, 2012, 08:39:50 am
Arduino 0.22 and Arduino 1.0 have both worked just fine on my MacBook Pro under 10.5 (Leopard), 10.6 (Snow Leopard), and 10.7 (Lion).

Are you running File->Examples->Servo->Sweep?  Are you accidentally using a 0.22 library with 1.0?
6188  Using Arduino / Interfacing w/ Software on the Computer / Re: 2 arduinos, 6 relays and usb power supply on: March 06, 2012, 08:14:27 am
I'm guessing that when you have only one USB cable plugged in you get a notice that your USB port has been shut down because you were drawing more than 500 mA.  If it works OK with BOTH USB cables plugged in you are probably drawing less than 1A total.  If that's the case you can connect a 5V 1A regulated power supply to everything to take the load off your USB ports.
6189  Using Arduino / Sensors / Re: Texas Instruments TMP100 (I2C) 7 bit slave address + 1 bit for READ(1)/write(0) on: March 06, 2012, 08:04:00 am
You could write an easy-to-use TMP100 library and post that somewhere. The "Playground" section of the Arduino site (see link at the top of the page) is a place where people publish libraries and examples.
6190  Using Arduino / Sensors / Re: Texas Instruments TMP100 (I2C) 7 bit slave address + 1 bit for READ(1)/write(0) on: March 05, 2012, 06:54:08 pm
You probably have to set the register address again to get the same register:

Code:
void loop()
{
    // Send the register address and new value
     Wire.startTransmission(Tmp_add);
     Wire.write(pointer_register);
     Wire.write(resolution_value);
     Wire.endTransmission();

    // Send the register address
     Wire.startTransmission(Tmp_add);
     Wire.write(pointer_register);
    Wire.endTransmission();

     // Request the data
     Wire.requestFrom(Tmp_add,1);
     int register_value = Wire.read();
}
6191  Development / Other Software Development / Re: editing wire.h on MAC on: March 05, 2012, 06:44:42 pm
The libraries are under Arduino.app/Contents/Resources/Java/libraries
6192  Development / Other Software Development / Re: editing wire.h on MAC on: March 05, 2012, 05:14:52 pm
Ctrl-click on the Arduino app and select "View package contents".  You'll find lots of stuff in there.
6193  Using Arduino / LEDs and Multiplexing / Re: RGB LED help needed on: March 05, 2012, 05:12:50 pm
> Can the Arduino handle that many LEDs connected to each pin?

No.  Each pin can handle 40 mA maximum and LED's draw typically 20 mA so even two on a pin would be pushing things.

The code looks OK.
6194  Using Arduino / Sensors / Re: Texas Instruments TMP100 (I2C) 7 bit slave address + 1 bit for READ(1)/write(0) on: March 05, 2012, 05:06:13 pm
Not quite.  You send a command and then receive a reply.
Code:
void setup()
    {
     Wire.begin();
    }

void loop()
{
    // Send the register address
     Wire.startTransmission(Tmp_add);
     Wire.write(pointer_register);
     Wire.endTransmission();

     // Request the data
     Wire.requestFrom(Tmp_add,1);
     int register_value = Wire.read();
}
6195  Development / Suggestions for the Arduino Project / Re: Bug with Serial.print in the new arduino 1.0 on: March 05, 2012, 04:03:41 pm
Are you saying that if you add 4 characters at a time it stops at 5 iterations and that if you add 3 or 5 it goes on forever?
Pages: 1 ... 411 412 [413] 414 415 ... 600