Show Posts
Pages: 1 ... 32 33 [34] 35 36 ... 44
496  Using Arduino / Displays / Using Pin 13 for LCD on: March 26, 2011, 01:51:17 am
Will there be any unforeseen problems using pin 13 (that has the built in LED) to operate my 2x16 LCD display's pin 6 (H/L Enable signal)?
497  Using Arduino / Displays / Quick urgent PWM question on: March 25, 2011, 10:59:15 am
HOPING TO ETCH MY BOARD TODAY, AND NEED ONE THING VERIFIED:
I'm wanting to fade Spakfun's 16x2 LCD display.  the specs are:
LED forward voltage  4.2   (4.6 V max)
forward current 120    (160 mA  max)

I had it prototyped on my board through a 100 ohm resistor off a PWM pin from the Uno and it seemed to fade in and out okay, but for 120 mA, shouldn't I have a transistor drive it or something, since the I/O pins are limited at 40ma?
I have the backlight negative connected to ground, the positive goes through the 100 ohm resisitor to a jumper that I can switch from either 5+, or to the D0 pin. With this config. what transisitor & bais resistor would I need coming off the D0 pin?
If someone could recommend what transistor to use, I don't understand them all together yet.  Not sure if I need a PNP or a NPN for this type of config.  I have a lot of common transistors, just don't know which one I need to use here.
Thanks
498  Using Arduino / Motors, Mechanics, and Power / Re: Using the SN754410 on the adafruit motor sheild on: March 24, 2011, 09:05:09 pm
OH!
Okay, I will incorporate them in then.  Some 1N4005's are laying around here.
499  Using Arduino / Motors, Mechanics, and Power / Re: Using the SN754410 on the adafruit motor sheild on: March 24, 2011, 09:00:48 pm
Thanks.  I think I'll 'risk' it then without them.
500  Using Arduino / Motors, Mechanics, and Power / Using the SN754410 on the adafruit motor sheild on: March 22, 2011, 10:40:40 pm
Quote
On using the SN754410: Some people use the SN754410 motor driver chip because it is pin-compatible, has output diodes and can provide 1A per motor, 2A peak. After careful reading of the datasheet and discussion with TI tech support and power engineers it appears that the output diodes were designed for ESD protection only and that using them as kickback-protection is a hack and not guaranteed for performance. For that reason the kit does not come with the SN754410 and instead uses the L293D with integrated kickback-protection diodes. If you're willing to risk it, and need the extra currrent, feel free to buy SN754410's and replace the provided chips

What if I add my own flyback diodes (1N4007), would it then be perfectly safe to use the SN754410?
But is it possible to add these diodes to the circuit and still maintain a reversible motor?
501  Using Arduino / LEDs and Multiplexing / Re: Controlling 2-4 LED's on: March 16, 2011, 05:05:05 pm
I guess I won't really need the high power LEDs.  Here's what I plan to use:
http://cgi.ebay.com/ebaymotors/LED-STRIP-30CM-DRL-DAYTIME-RUNNING-LIGHT-AUDI-BLUE-12V-/130394189542?pt=Motors_Car_Truck_Parts_Accessories&hash=item1e5c196ee6#ht_5317wt_939

...I shouldn't need anything but the RFP30N06LE MOSFET to use this since my power supply is 12 volt and it is made to connect to automotive 12 V.
502  Using Arduino / LEDs and Multiplexing / Re: Controlling 2-4 LED's on: March 16, 2011, 08:14:32 am
I wouldn't use resistors on high power LEDs, you need constant current drivers to make it safe and reliable.
???  You can't just use resistors to drop 12 volts or 5 volts down to the proper voltage for high power LED's.  'Constant current drivers?'  Is there some good reading you'd recommend to better understand this?  I'm wanting 1-4 LED's to kind of light up an area under a cabinet.  Not sure how big of LED's I need.  There's 'super bright' LED's, but I don't think they really use that much current.  Does anyone have any good info on this topic?

ps.  would something like this not work with just some resistors...
http://cgi.ebay.com/2-Super-Bright-LED-Touch-Light-Set-Under-Cabinet-Closet-/390297205315?pt=LH_DefaultDomain_0&hash=item5adf86ba43#ht_2106wt_1139
503  Using Arduino / LEDs and Multiplexing / Controlling 2-4 LED's on: March 14, 2011, 09:41:37 am
Would this RFP30N06LE MOSFET work for turning 2-4 LED's in series or parallel  on/off with 1 pin?

http://www.sparkfun.com/products/10213
504  Using Arduino / Audio / Re: Using the Tone() function on: March 13, 2011, 05:40:37 pm
Thanks, I shouldn't have a problem, then.
505  Using Arduino / Audio / Using the Tone() function on: March 12, 2011, 08:01:33 pm
I am planning to use the Tone() function to give a short 5 note melody when an event is finished.  At the time I play the melody, there won't be anything else happening in my code.  But at other times my code DOES use millis() and PWM.  Are millis() and PWM only affected at the actual time I'm using the Tone() fucntion, or all the time? 


Quote
ATmega8: 2 (timers 2, and 1)
ATmega168/328: 3 (timers 2, 1, and 0)
ATmega1280: 6 (timers 2, 3, 4, 5, 1, 0)
The timer order given above is the order in which the timers are allocated. Timer 0 is a sensitive timer on the Arduino since it provides millis() and PWM functionality
506  Using Arduino / Displays / Re: shiftreg alternate IC on: March 12, 2011, 05:04:39 pm
I ended up using this to get my LCD working with the  SRLCD library and that SparkFun IC, 74HC595.
http://arduino.cc/forum/index.php/topic,15364.msg112755.html#msg112755
507  Using Arduino / General Electronics / Re: vias on homemade pcb on: March 10, 2011, 11:03:41 am
Ah yeah, the best idea may be not to do the plated through hole at all, but just put a via right next to the IC when needed.
thanks,
508  Using Arduino / General Electronics / vias on homemade pcb on: March 10, 2011, 09:04:44 am
Using an IC socket is a nightmare when traces are on the top side of the board, under the IC and you try to use a socket. I read this:
Quote
or buy the little pins made for the purpose (called 'vias')
...but have searched and searched to buy something called vias and can't find anything.  Is there such a thing?
509  Using Arduino / Sensors / using interrupt and the pull up resistor on the same pin on: March 09, 2011, 11:23:41 pm
Can I use the internal pull-up resistor with an attachInterrupt at the same time on the same pin?


Code:
attachInterrupt(0, CountPulse, RISING);//turn on interrupt for flow sensor on pin 2
digitalWrite(2, HIGH);  //turn on pull up resistor for flow sensor on pin 2

Will this do away with the need of the 10K resistor in the example for this sensor:
http://www.seeedstudio.com/forum/viewtopic.php?f=4&t=989&start=0
thanks!
510  Using Arduino / Displays / LCD in Sleep mode showing zzz's on: March 09, 2011, 10:27:47 pm
Trying to figure this out, I got so tired of zzz's remaining on the screen from previous print calls, I just did this:
I'd be much obliged if someone could shorten this code up a bit!
Code:
void Hibernate(){
  /*
  Sleep mode, shows sleeping zzz's, rising and falling across the screen
  waits for keypress to awaken
  */
  srlcd.clear();  //clear screen and set cursor at home
  while(key == NO_KEY){
    srlcd.clear();
    srlcd.print("Z");
    key = keypad.getKey();
    delay(100);
    srlcd.clear();
    srlcd.print("ZZ");
    key = keypad.getKey();
    delay(100);
    srlcd.clear();
    srlcd.print("ZZZ");
    key = keypad.getKey();
    delay(100);
    srlcd.clear();
    srlcd.print("ZZZZ");
    key = keypad.getKey();
    delay(100);
    srlcd.clear();
    srlcd.print("ZZZZZ");
    key = keypad.getKey();
    delay(100);
    srlcd.clear();
    srlcd.print("ZZZZZZ");
    key = keypad.getKey();
    delay(100);
    srlcd.clear();
    srlcd.print("ZZZZZZZ");
    key = keypad.getKey();
    delay(100);
    srlcd.clear();
    srlcd.print("ZZZZZZZZ");
    key = keypad.getKey();
    delay(100);
    srlcd.clear();
    srlcd.print("ZZZZZZZZZ");
    key = keypad.getKey();
    delay(100);
    srlcd.clear();
    srlcd.print("ZZZZZZZZZZ");
    key = keypad.getKey();
    delay(100);
    srlcd.clear();
    srlcd.print("ZZZZZZZZZZZ");
    key = keypad.getKey();
    delay(100);
    srlcd.clear();
    srlcd.print("ZZZZZZZZZZZZ");
    key = keypad.getKey();
    delay(100);
    srlcd.clear();
    srlcd.print("ZZZZZZZZZZZZZ");
    key = keypad.getKey();
    delay(100);
    srlcd.clear();
    srlcd.print("ZZZZZZZZZZZZZZ");
    key = keypad.getKey();
    delay(100);
    srlcd.clear();
    srlcd.print("ZZZZZZZZZZZZZZZ");
    key = keypad.getKey();
    delay(100);
    srlcd.clear();
    srlcd.print("ZZZZZZZZZZZZZZZZ");
    key = keypad.getKey();
    delay(100);
    srlcd.clear();
    srlcd.print("ZZZZZZZZZZZZZZZ");
    key = keypad.getKey();
    delay(100);
    srlcd.clear();
    srlcd.print("ZZZZZZZZZZZZZZ");
    key = keypad.getKey();
    delay(100);
    srlcd.clear();
    srlcd.print("ZZZZZZZZZZZZZ");
    key = keypad.getKey();
    delay(100);
    srlcd.clear();
    srlcd.print("ZZZZZZZZZZZZ");
    key = keypad.getKey();
    delay(100);
    srlcd.clear();
    srlcd.print("ZZZZZZZZZZZ");
    key = keypad.getKey();
    delay(100);
    srlcd.clear();
    srlcd.print("ZZZZZZZZZZ");
    key = keypad.getKey();
    delay(100);
    srlcd.clear();
    srlcd.print("ZZZZZZZZZ");
    key = keypad.getKey();
    delay(100);
    srlcd.clear();
    srlcd.print("ZZZZZZZZ");
    key = keypad.getKey();
    delay(100);
    srlcd.clear();
    srlcd.print("ZZZZZZZ");
    key = keypad.getKey();
    delay(100);
    srlcd.clear();
    srlcd.print("ZZZZZZ");
    key = keypad.getKey();
    delay(100);
    srlcd.clear();
    srlcd.print("ZZZZZ");
    key = keypad.getKey();
    delay(100);
    srlcd.clear();
    srlcd.print("ZZZZ");
    key = keypad.getKey();
    delay(100);
    srlcd.clear();
    srlcd.print("ZZZ");
    key = keypad.getKey();
    delay(100);
    srlcd.clear();
    srlcd.print("ZZ");
    key = keypad.getKey();
    delay(100);
    srlcd.clear();
    srlcd.print("Z");
    key = keypad.getKey();
    delay(100);
   
    delay(2000);  //breathe pause
   }
  Restart_Standby(); //reset display message for hibernate exit 
}
Pages: 1 ... 32 33 [34] 35 36 ... 44