Go Down

### Topic: Controlling/Strobing 60 LED'S (Read 10392 times)previous topic - next topic

#### Silent

#30
##### Sep 24, 2011, 06:50 pm
At this point do you think the 5V solution would be best/easiest?

Updated schematic:

#### dc42

#31
##### Sep 24, 2011, 08:31 pm
If you care about the LEDs not dimming when you turn the engine off, then yes, the 5v version is probably simpler. You'll need to find a 12v to 5v regulator that will handle the total current involved, i.e. the LEDs plus about 45mA for an Arduino Uno.

You've drawn the mosfet symbol the wrong way round - the pin with the arrow is the source (the one you need to connect to ground). You've correctly marked the gate pin.
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

#### Silent

#32
##### Sep 24, 2011, 11:01 pm
Looks like this adapter may work: http://www.sparkfun.com/products/8638

Also I noticed some of the resistor calculators say to use 1/8watt resistors? What's the difference between 1/8 and 1/4 watt resistors?

Updated schematic:

#### dc42

#33
##### Sep 24, 2011, 11:18 pm
Your schematic is now correct, except that the label "Source" is by the drain terminal of the mosfet.

The difference between 1/4w and 1/2w resistors is the maximum amount of power they can dissipate without damage. You can calculate the power P dissipated in a resistor using the expression P = V * I or P = V2 * R or P = I2 * R.
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

#### Silent

#34
##### Sep 25, 2011, 12:06 am
"Your schematic is now correct, except that the label "Source" is by the drain terminal of the mosfet."
Not sure what exactly you mean there. The drains from MOSFET's are connected to ground right?

#### marklar

#35
##### Sep 25, 2011, 01:54 amLast Edit: Sep 25, 2011, 02:01 am by marklar Reason: 1
I am using the 5v concept.  The link you showed only provides 650mA of power.  I would suggest going to e-bay and getting ones that have 1amp at least.  I found some 1.2amp ones on e-bay and got the last few. You should be able to find something similar.
http://www.ebay.com/itm/250838285454?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649

I pulled the socket part off the adapter and connected the exposed black and red wires to the 12v lithium icon battery by adding a small metal adapter that fits snug into the battery slot.  Then I plug a USB cable into the 5v adapter slot and splice the USB cable.  In the cable, locate the black and red wires.  IMPORTANT: Check with a tester to assure +/- (do not assume color is correct).

I use 4 of these to run 70 RGBs.

#### dc42

#36
##### Sep 25, 2011, 08:55 am

Not sure what exactly you mean there. The drains from MOSFET's are connected to ground right?

No - source goes to ground, drain goes to the led/resistor strings.
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

#### Silent

#37
##### Sep 25, 2011, 04:40 pm
How's it look now?

#### dc42

#38
##### Sep 25, 2011, 06:53 pmLast Edit: Sep 25, 2011, 06:56 pm by dc42 Reason: 1
This time you've drawn the mosfets the wrong way round but labelled source and drain as if they are the right way round. See Fig. 3.1 in http://www.coilgun.eclipse.co.uk/switching_devices.html.
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

#### Silent

#39
##### Sep 25, 2011, 07:10 pm
I think I got it now, found this figure to help me that's closer to the one I was using.

Updated, How does my schematic look overall? I've never drawn one before our used Eagle.

#### dc42

#40
##### Sep 25, 2011, 08:22 pm
Yes, that looks right.

You've got your push button wired between +5v and pin D2, with a 10K pulldown resistor from D2 to ground. It's more usual to wire push buttons between a digital pin and ground. That way, if you turn on the internal pullup resistor, you don't need an external pullup or pulldown resistor.
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

#### Silent

#41
##### Sep 25, 2011, 09:54 pmLast Edit: Sep 25, 2011, 10:11 pm by Silent Reason: 1
Okay, will that  also work using just an atmega328 with arduino optiboot? I plan on using this:http://www.sparkfun.com/products/10524 instead of an arduino UNO for the final solution to make things smaller.

#### dc42

#42
##### Sep 25, 2011, 10:42 pm
Yes, the internal pullup is in the atmega328.
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

#### Silent

#43
##### Sep 25, 2011, 11:16 pmLast Edit: Sep 26, 2011, 03:20 am by Silent Reason: 1
So it would be like this correct?

#### Silent

#44
##### Sep 26, 2011, 05:29 am
I decided it would be better to use the atmega328 TQFP (http://www.sparkfun.com/products/9261), I added that to my schematic. I think I have it wired up properly, just not sure about the XTAL1 & XTAL2 pins.

Go Up