Show Posts
Pages: 1 ... 219 220 [221] 222 223 ... 409
3301  Using Arduino / Programming Questions / Re: Flash & EEPROM memory maximum life on: April 08, 2012, 01:15:06 am
@bibre, close but not quite...

Max 10k writes for flash mem and 100k writes to EEPROM.
Correct

I am monitoring 44 pushbuttons in loop(), so I could easily write too many times/sec to PROGMEM, if my code were not right.
Not correct.

Code executing from program space can not WRITE to PROGMEM.  (Only code executing from the bootloader partition can write to PROGMEM.)
3302  Using Arduino / Programming Questions / Re: Xbee and arduino communication on: April 08, 2012, 12:57:10 am
Code:
  while(Serial.available() > 0)
  {
    delay(2);
    var = Serial.read();
    // less than, <, starts the current value
    if(var == '<')
    {
      Serial.print("STARTED: ");
      Serial.println(var);
      while(firstComplete == false)
      {
        var=Serial.read();

You only check Serial.available() once.  What if the 2nd character isn't available at this point?
3303  Using Arduino / Programming Questions / Re: Flash & EEPROM memory maximum life on: April 08, 2012, 12:51:10 am
Less often talked about is the 10,000 write limit of PROGMEM.  However, most people can't click upload in the IDE fast enough to wear out PROGMEM.
3304  Using Arduino / Programming Questions / Re: Trying to control LEDs via bluetooth with android phone on: April 08, 2012, 12:47:09 am
What is wrong with my code?
I don't know.  Explain what you think should happen and what is actually happening?
3305  Using Arduino / Installation & Troubleshooting / Re: I CANT GET THE TONE LIBRARY TO LOAD !!URGENT!! on: April 08, 2012, 12:25:03 am
Download Arduino Pre-1.0 (0023 or 0022).
3306  Using Arduino / Project Guidance / Re: Analog current draw on: April 08, 2012, 12:22:51 am
What do you have connected to A0?

What do you consider to be "ridiculous amounts of current"? (e.g. how much?)
3307  Using Arduino / Programming Questions / Re: Trying to control LEDs via bluetooth with android phone on: April 08, 2012, 12:20:51 am
What was your question?
3308  Using Arduino / LEDs and Multiplexing / Re: Seperate power supply for LED's on: April 07, 2012, 09:46:09 pm
im really after a book that will teach me those types of things and the proper terms for things.

There isn't one, yet.  You're asking about a wide variety of concepts that spans across many engineering books.
3309  Using Arduino / LEDs and Multiplexing / Re: Seperate power supply for LED's on: April 07, 2012, 09:25:33 pm
  • decoupling and how to work out the capacitor value
http://www.thebox.myzen.co.uk/Tutorial/De-coupling.html

  • multi/charlie plexing
http://en.wikipedia.org/wiki/Charlieplexing

  • working out base resistor for transistors
http://forum.allaboutcircuits.com/showthread.php?t=9751
3310  Using Arduino / Programming Questions / Re: Does Serial.print affects serial recieve buffer? on: April 07, 2012, 08:10:07 pm
Come on, James. You know better than that. While there is nothing to read, read it?
Well gee, when you put it that way, the whole loop looks kinda silly, doesn't it?  smiley-wink
3311  Using Arduino / Programming Questions / Re: Code works great on the Mega 2560 but not on any other Arduino on: April 07, 2012, 06:20:02 pm
I use the one serial port to receive data from the XBee but when talking to the AX-3500
Thanks for explaining what the AX-3500 is and posting a link to it.  It was very clear it was a motor controller and that everyone who reads this board knows what it is.

simply set a single pin High/Low to send the data in the DigitalWrite() function.
It's a real shame the compiler doesn't allow for more descriptive names.  It would be much easier for others to read your code if it did.
3312  Using Arduino / Programming Questions / Re: Code works great on the Mega 2560 but not on any other Arduino on: April 07, 2012, 06:08:17 pm
Code:
// To use the Arduino Uno, or Profesional or other Arduino boards that have only a single
// UART you will need to set the requied pins as serial rx and tx pins.
//SoftwareSerial mySerial(rx, tx); // Sets up an additional set of rx & tx serial pins (6 & 7)

I don't see where you setup the SoftwareSerial.  How do you differentiate when talking to Serial and the Xbee?
3313  Using Arduino / Project Guidance / Re: NEED PROJECT IDEAS on: April 07, 2012, 02:34:54 pm
http://lmgtfy.com/?q=electronics+project+ideas
3314  Using Arduino / Project Guidance / Re: Adapt a C library to arduino on: April 07, 2012, 02:33:56 pm
Unfortunately it's written in C.
Why is that unfortunate?   That's what Arduino uses.  Your library comments mention AVR GCC, which is the same compiler used by Arduino.
3315  Using Arduino / Programming Questions / Re: Ethernet Shield on: April 07, 2012, 12:34:10 pm
Yes,mine is from ebay.
Re-read your item's description.  It says you have to disconnect the shield. 

Question, if I connect the ethernet shield it suppose to be in my network connection. Because I have 3 laptops connected in the same network and the arduino does not appear. 
Is your sketch running the NETBIOS protocol?  (Hint, it's not.)  NETBIOS is how PC's running a full blown operating system (and higher levels of the networking protocol stack) about each other.
Pages: 1 ... 219 220 [221] 222 223 ... 409