Cintax Posted November 2, 2012 Share Posted November 2, 2012 I've looked at radio shack and all the resistor have a watt rating as well, 10kohm 1/2-1/4-1/8watt. Does that part matter? According to the Amtel specification sheet the maximum current that could be drawn before failure of the GPIO is 40mA. To protect the GPIO you always need at least a 1kΩ resistor on the output. To answer your question regarding the power rating on the resistors.... Our circuit diagram! R1GPIO ------/\/\/\---------- LDD-H PWM Pin 1kOhm | | R2 |--/\/\/\-- GND 10kOhm V1 = (R1/Rt) * Vs = 5v * (1kΩ/11kΩ) = 0.45v (rounded) You could use Kirchoffs voltage law to determine V2 or you can use the voltage divider formula. V2 = Vs - V1 = 5v - 0.45v = 4.55v or V2 = (R2/Rt) * Vs = 5v * (10kΩ/11kΩ) = 4.55v (rounded) Now that we have the voltage drops across the resistors we can determine the current through this series circuit. Rt = R1 + R2 = 1kΩ + 10kΩ = 11kΩ It = Vs / Rt = 5v / 11kΩ = 454μA (0.454mA) Calculating power using voltage and resistance: P = V * I Pt = Vs * It = 5v * 454μA = 2.27mW P1 = V1 * It = 0.45v * 454μA = 205μW (0.2mW) P2= V2 * It = 4.55v * 454μA = 2.06mW P = Pt - (P1 + P2) = 2.27mW - (2.06mW + 205μW) ≈ 0.1mW (rounding error) You could have solved it this way as well using current and resistance: P = I2R Pt = I2Rt = (454μA)2 * 11kΩ = 2.27mW P1 = I2R1 = (454μA)2 * 1kΩ = 207μW P2 = I2R2 = (454μA)2 * 10kΩ = 2.06mW P = Pt - (P1 + P2) = 2.27mW - (2.06mW + 207μW) ≈ 0 You will notice that values of P1 and P2 are way less than 125mW (1/8 W). This means you can safely use a 1/8W resistor for both R1 and R2. TL;DR: Any resistor with a wattage rating greater than or equal to 1/8 W will be fine. Link to comment
bored4 Posted November 2, 2012 Share Posted November 2, 2012 Wow! thanks alot going through all the math and explaining it all. Link to comment
zemuss Posted February 25, 2013 Share Posted February 25, 2013 So this power supply you can hook up multiple drives to it right? If so it just shaved about 40 dollars off my build price. Link to comment
MOJOEJOEJOE Posted February 26, 2013 Share Posted February 26, 2013 Im still using a power mosfet as my driver because of the fact that it has 4 outputs in one package. Im also using a power supply from an old pc and running everything off of 12 vdc. I love the contoller though. Did you write the code yourself for the touch screen? I was thinking about getting one but all my code is simple analog writes nothing fancy.LOL. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.