Show Posts
Pages: 1 ... 16 17 [18] 19 20 ... 188
256  Using Arduino / Programming Questions / Re: can or should this sketch be converted into an array on: August 11, 2014, 05:28:10 pm
If it works and you don't need the memory space leave it as is.
Should you, it's up to you.

Sometimes it's faster if you omit a loop and do as you have.
For practice, I would use arrays for learning purposes if nothing else.
For readability arrays and a loop can make sense.

This is a good read, may not answer your question though (see page 13)
http://www.atmel.ca/Images/doc8453.pdf
257  Using Arduino / Programming Questions / Re: The difference between while and if statements. on: August 11, 2014, 02:17:58 pm
They do the same thing in this case.
Quote
The while statement would run until it was not true.
With this line, it makes it not true immediately.
lastTime += DELAY;
258  Using Arduino / Programming Questions / Re: The difference between while and if statements. on: August 11, 2014, 02:06:57 pm
Quote
What is bad about goto and labels.
Have you heard of spaghetti code?
259  Using Arduino / Programming Questions / Re: The difference between while and if statements. on: August 11, 2014, 01:58:47 pm
Quote
those if and while statements would not be the same there.
They do the same thing in this case.
260  Using Arduino / General Electronics / Re: what's this phenomenon called? on: August 11, 2014, 01:55:11 pm
Quote
Can you cure those with lithium batteries?
I needed that!
261  Using Arduino / Programming Questions / Re: The difference between while and if statements. on: August 11, 2014, 01:37:33 pm
2 bytes different here.
These are sort of equivalent:
Code:
 while(millis() - lastTime >= DELAY)
  {
    lastTime += DELAY;
    digitalWrite(led,!digitalRead(led));
  }
//==========================================
    if (millis() - lastTime >= DELAY)
  {
    lastTime += DELAY;
    digitalWrite(led,!digitalRead(led));
  }  
262  Using Arduino / Project Guidance / Re: Hand Tools Guidance on: August 11, 2014, 10:58:00 am
Butane irons are the way to go, however, 120VAC is found most everywhere now. 
Suggest long 2 wire 16 gauge extension cord.
263  Using Arduino / General Electronics / Re: 12v POE into arduino nano, and coin acceptor. (Jukeboxes) on: August 10, 2014, 05:43:00 pm
Maybe consider a Bobuino2 larger physically, but much more there for you to use. includes RS232, RTC etc.
Scroll down about 1/4
http://www.crossroadsfencing.com/BobuinoRev17/

Mine are great!
264  Using Arduino / Programming Questions / Re: RTC interrupt does not wake up my Arduino on: August 10, 2014, 02:52:15 pm
Peruse this:
See "Waking from sleep with a signal"
http://www.gammon.com.au/forum/?id=11497
265  Using Arduino / General Electronics / Edging your DIY PCBs on: August 10, 2014, 02:24:49 pm
You can get a factory finished edge on your DIY PCBs using a flush trim bit in a router.
First rough cut the board to shape "close" to the blue registration lines.
See image:
266  Using Arduino / Programming Questions / Re: RTC interrupt does not wake up my Arduino on: August 10, 2014, 01:46:04 pm
I believe you want to change

attachInterrupt(int_number, isr, FALLING);
To
attachInterrupt(1, isr, LOW);
267  Using Arduino / General Electronics / Re: Arduino output gives only 3V on: August 10, 2014, 01:36:50 pm
Where are your series led resistors?
268  Using Arduino / Programming Questions / Re: Problem with code for stair lights project... UNO, 74HC595 & ULN2803A on: August 10, 2014, 12:23:45 pm
- Take a picture of the wiring and show us.
- try removing  the wire from pin 10 on the 2803s
- Replace the LED strips with LEDs with series resistor and try.
269  Using Arduino / General Electronics / Re: Novice question re pin connections to Arduino on: August 10, 2014, 12:15:36 pm
@RobRothman

Yes, you are worrying too much.
Buy the same as in the image, i.e gold plated.
These won't  disconnected unless you tug at them!
I do this all the time and I prefer using female connectors to male headers.
Use Aluminum foil duct tape to keep them together if you wish. They wont disconnect!
But it's your choice.

Plug in and keep in touch.
270  Using Arduino / General Electronics / Re: Novice question re pin connections to Arduino on: August 09, 2014, 11:32:13 pm
I would use female for the connectors and a gender changer on the Arduino.
Pages: 1 ... 16 17 [18] 19 20 ... 188