Show Posts
Pages: 1 ... 18 19 [20] 21 22 ... 167
286  Using Arduino / Programming Questions / Re: Non-loop programming problem on: April 27, 2014, 04:29:38 pm
When you have done your thing a certain number of times make a variable true.
When your variable is true make a decision to stop doing the first thing then start doing the next thing.

Eat some food, eat some more eat some more.
Are you full?
Stop eating.
Rest some, rest some more, rest some more . . . . .
287  Using Arduino / General Electronics / Re: how to get 100 digital pins or how to merge boards ? on: April 27, 2014, 02:01:06 pm
Yes, if you write the code to do so.
You need a power supply to handle 100 LEDs .
288  Using Arduino / Project Guidance / Re: Hints, tips or guides for working with project boxes on: April 27, 2014, 10:58:10 am
Take four straight pieces of plastic and surround the LCD, covering imperfections in the hole you made for it.
Take another piece of plastic drill the switch holes more accurately in it then overlay they box holes after they have been enlarged a bit.
When you make your holes undersized then use a rat tail file to finish them.
Make a template out of paper to aid in construction.

See:
http://forum.arduino.cc/index.php?topic=219747.0
And
http://forum.arduino.cc/index.php?topic=221003.0
289  Using Arduino / General Electronics / Re: how to get 100 digital pins or how to merge boards ? on: April 27, 2014, 10:43:34 am
Try this:
Outputs
http://www.gammon.com.au/forum/?id=11518
Inputs
http://www.gammon.com.au/forum/?id=11979

Don't know what you mean merge boards.
290  Using Arduino / Programming Questions / Re: Countdown Timer Help on: April 27, 2014, 12:31:11 am
It's 11:30
Yes you are right, you cannot Serial print in the ISR!  smiley-sleep

I recommend you use the TimerOne library if you must use interrupts in your project.
http://code.google.com/p/arduino-timerone/downloads/list
Or
Just use the technique using millis() as in BlinkWithoutDelay example, for timing in your project.

Also this may be of some interest:
https://github.com/JChristensen/Timer
291  Using Arduino / Programming Questions / Re: Countdown Timer Help on: April 27, 2014, 12:22:10 am
If you add the Serial.print below what happens on the serial monitor?
Edit, Sorry you cannot use Serial print in the ISR

Code:
//timer interrupt
ISR(TIMER1_OVF_vect)
 {
   Thousandth = Thousandth +1;
   if (Thousandth == 1000)
   {
   Thousandth = 0;
   Sec--; // timer values decreases
   TCNT1=0x0BDC;
   Serial.println("Reached 1000");  
   }
}
292  Using Arduino / General Electronics / Re: Bread-and-butter components for the electronics hobbyist on: April 26, 2014, 10:04:59 pm
4N35
http://measure.feld.cvut.cz/groups/edu/osv/4n35.pdf
LM339
http://www.ti.com/lit/ds/symlink/lm339-n.pdf
LM3900
http://www.ti.com.cn/cn/lit/ds/symlink/lm3900-n.pdf
H11F1
https://www.fairchildsemi.com/ds/H1/H11F3M.pdf
IRL540
http://www.irf.com/product-info/datasheets/data/irf540n.pdf
ULN2803
http://www.ti.com/lit/ds/symlink/uln2803a.pdf
TIP122
http://www.adafruit.com/datasheets/TIP120.pdf
TIP127
http://www.fairchildsemi.com/ds/TI/TIP125.pdf
2N5088
http://www.onsemi.com/pub_link/Collateral/2N5088-D.PDF

293  Using Arduino / Programming Questions / Re: Countdown Timer Help on: April 26, 2014, 09:40:35 pm
Formatting your code with CTRL T would really really help.
One line one instruction.
Place comments on your lines, for example when I see mode 1, my eyes glaze over.
Use Serial.print statements at different places in your code to help trouble shoot your sketch. Then when you prove  a section of code move the Serial.print debug statement and prove out the next section of code.
294  Using Arduino / General Electronics / Re: Understanding Arduino's Automatic Power Source Selection on: April 26, 2014, 08:45:45 pm
All I was stating was the process starts with current flowing trough the internal T1 diode then going to the 3.3 volt regulator.
I believe that was what the OP was asking about.

295  Using Arduino / Microcontrollers / Re: Confusion about none working Interrupt 2 on a ATMega644P/1284P on: April 26, 2014, 04:41:56 pm
Quote
And I'm pretty sure I even used a arduino board running the arduinoISP sketch to burn a bootloader to a 1284P with no problems seen.
I do this regularly with success.
296  Using Arduino / General Electronics / Re: Understanding Arduino's Automatic Power Source Selection on: April 26, 2014, 04:08:24 pm
One name for it.
http://www.ixys.com/Documents/AppNotes/IXAN0061.pdf
297  Using Arduino / General Electronics / Re: Understanding Arduino's Automatic Power Source Selection on: April 26, 2014, 04:03:57 pm
The internal diode inside T1 becomes forward biased and supplies the needed voltage to get the 3.3 regulator working.
298  Using Arduino / Programming Questions / Re: Adding fraction to float on: April 26, 2014, 03:37:36 pm
Temp = Temp + 0.1
299  Using Arduino / Programming Questions / Re: How do get the array length? on: April 25, 2014, 03:04:37 pm
Quote
When I run that in the Arduino to verify it, I get no errors.
So when you write code and the code compiles that means there are is nothing wrong with the code logic and there are no bugs in your code.
WOW! I did not realize that.
NOT!
300  Using Arduino / General Electronics / Re: Best way to detect if Breaker Switch is ON on: April 24, 2014, 06:52:23 pm
I have used these a while back:
http://www.fairchildsemi.com/ds/MI/MID400.pdf
http://www.digikey.ca/product-detail/en/MID400/MID400-ND/31605
Pages: 1 ... 18 19 [20] 21 22 ... 167