Pages: [1]   Go Down
Author Topic: Need help with my first schematic  (Read 441 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Greetings all!  I'm working on a project based on some design advice I got on this forum and I've successfully got the arduino-based project working on my breadboard--I think I'm  ready to move on to the stage of trying to get a PCB made.  I have started working in Eagle and I have made an "attempt" at the schematic.  But, since I am no expert, I wanted to post a screenshot of it and get your thoughts on whether or not I'm good, close, or in real trouble here smiley

The basic concept is that this is just a basic PWM LED dimmer controlled via a 10k linear Pot. 5v power comes in via a sparkfun 5v regulated power supply and it connected to a DC barrel jack. I have programmed an attiny85 (which was AWESOME FUN) from my arduino and it basically adjusts the PWM signal going out on PB0 based on the input result it is taking in from the pot on PB3.  The PWM out enters a mosfet setup and goes out through the molex connector (of which only 2 wires will be used).

My LEDs are drawing about .4amps total (about 40 lights) and they are parallel with their own resistors built in.

So, my questions are:
1). Am I missing anything in this schematic that really jumps out at you.  For example "well, if you don't have an X or a Y or a Z right here the entire thing is going to burst into flames"
2) I originally thought the draw from the LEDs was going to be much higher (like 2 amps)--but since it is only .4amps do I even need the mosfet?  I think the arduino can handle up to 1amp can't it (off VIN power)?  But what about the attiny?

Okay, here is a screenshto of where I'm at after my first attempt!


* schematic.jpg (52.25 KB, 1024x721 - viewed 18 times.)
Logged

Denmark
Offline Offline
Edison Member
*
Karma: 35
Posts: 1058
Happy Hobbyist
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I would put a 10kohm resistor from reset to Vcc, and a 100nF capacitor between Vcc and Gnd
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks Emi, is that to stop the thing from just resetting when the power fluctuates a bit?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So like this?


* schematic2.jpg (54.17 KB, 1024x685 - viewed 13 times.)
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 126
Posts: 8477
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
but since it is only .4amps do I even need the mosfet? 
You need something, 400mA is about 20x what you should draw from an AVR pin.

Stick with the MosFET, but it has to be a "logic-level" device.

The signal naming on the 4-way connector is a bit confusing.

_____
Rob
« Last Edit: November 13, 2012, 11:31:23 am by Graynomad » Logged

Rob Gray aka the GRAYnomad www.robgray.com

Pages: [1]   Go Up
Jump to: