Many people find the beep of an alarm clock to be a very unpleasant way to wake up. One alternative is to use lights to wake you up. For instance, a "sunrise alarm clock" gradually increases the brightness of a light near your bed at the set time. This helps some people to wake up more gently. 

So in this project I am going to show you how to build a light alarm circuit from a outlet timer and a hand full of basic electrical components. 

Step 1: Materials

Here are the materials that you will need to make the circuit:

AC Light Timer
USB Cable
USB AC Adapter
1 Mohm Resistor
4 X 100 ohm Resistor
10 kohm Potentiometer (Variable Resistor)
1000 µF Capacitor
Printed Circuit Board
Jumper Wires
Extension Wire (optional)
Momentary Switch (optional)

You will also want to have the following tools at hand:
Soldering Iron and Solder
Wire Strippers
Wire Cutters
Non-Conductive Tape

Can you please share steps on how to do this on a breadboard? 8 year old really wants to do this as his school project, we are in the thick of it right now. Would be amazing to get materials list and steps.
<p>Step 3 has a picture of the circuit assembled on a bread board. The circuit board used is also in the same configuration as a bread board so all the components can be placed in the same location. </p>
<p>great project</p><p>can i place your project on my website.</p><p>i'm working on a website which is related to electrical projects.</p><p>i also mention your name, link and other info.</p><p>plz reply</p>
<p>This project is posted under Creative Commons Attribution. So you can feel free to repost it as much as you want as long as you include the proper attribution.</p>
<p>Hi, what PCB plate type (number ) you use to build it ?</p>
<p><a href="https://www.radioshack.com/collections/connectors-connectivity/products/radioshack-printed-circuit-board?variant=5717555397">https://www.radioshack.com/collections/connectors-...</a></p>
Yeey, I made it, but I still don't understand how it works with the capacitor and the mosfet. I understand that the voltage increases due to the capacitor, but how does this increases the brightness of the LEDs? At a certain voltage, a threshold is reached which will &quot;activate&quot; the mosfet. 5v is then running through the LEDs. The only way I see to decrease LEDs brightness is use of lower voltage, but the LEDs get a static 5V. <br><br>So my question is, how does this circuit changes the brightness of the LEDs?
The capacitor is discharged at the start with a voltage of 0V. When power is connected, the capacitor begins to gradually charge and the terminal voltage increases. The capacitor is connected to the gate of he MOSFET. When the gate terminal reaches a certain threshold, it begins to conduct electricity between the source pin and the drain pin. As the gate voltage goes up, the LED's gradually brighten. When the maximum voltage is reached, the LED's are fully on. This is how the LEDs gradually turn on once activated.
<p>I still didn't understand it, so I asked a friend. Now I understand it. This small sentence &quot;As the gate voltage goes up, the LED's gradually brighten.&quot; has the solution. I thought MOSFET behaved like a switch, either closed or open, so I was wondering how PWM was created to create the dimming effect of the LEDs. But as explained by you, the MOSFET will slowly open, which will let the voltage rise and increases the brightness. Thank you for your explanation!</p>
<p>I'm a total beginner in electronics. Would working through the popular book <em>Make: Electronics: Learning Through Discovery</em> be adequate to understand this project? If not, what else would it take to get my knowledge up to speed? </p>
<p>There are a lot of good books out there. I personally love anything by Forrest M Mims.</p>
<p>Hey man! This is a great idea! Thanks for posting this.</p><p>Suppose I wanted to replace the LEDs with a 60W LED lightbulb. What changes would I have to make to the setup then?</p><p>Thanks!</p>
<p>You would need a completely different circuit to work with a 60W bulb. Regular light bulbs are designed to use 120V AC.</p>
<p>You can always use a relay, Can't you?</p>
<p>Yes. But a relay just switches from all off to all on. If you just wanted to turn on a light, you could just plug a lamp into an outlet timer.</p>
<p>Both me and a close friend of mine are interested in making a sunrise clock and I personally really like the simplicity of this one since it doesn't require software. Unfortunately, I doubt 7 LEDs would be enough for someone like me (unless maybe I made more than 1 which would look quite tacky). I was thinking more along the lines of losing the USB power limitations and going with a 120v output and powering a 6 - 10 watts LED light bulb, and I know it would require a completely new design but the principle would still be the same, right? The problem I have is figuring out the specifics in capacitors and stuff... google isn't helping me out at all on this one since no one seems to have done this before / shared the details. It's been about 10 years since I was in college, and I only skimmed the surface in this kind of stuff for computer circuitry, so I feel like I'm biting more than I can chew here. I know this is a lot to ask, but would it be at all possible to maybe make another tutorial on this but for a 120v LED light bulb version? Or alternatively, you said you can add many LEDs to this design, what would be the limit before the LEDs don't receive enough power to reach full brightness?</p>
Well, the simplest solution is to simply plug a lamp into an outlet timer. You lose the fade in effect, but you can use any light that you want and you can make it very bright. <br /><br />Another option is to use a larger power supply. The USB plug can only output a max of 5 watts usually. Then get larger brighter LEDs. Just make sure that you don't overload the Transistor. Check the rating of the transistor and use multiples if they aren't strong enough. If you use higher power LEDs, don't use resistors. The resistors will fry. Just put multiple LEDs in series until you get to the voltage of the power supply.
<p>Bought all the parts listed in bulk so I have plenty of room for error. Went with the 10.5 watts USB adapter (5v, 2.1A) for the extra power. I assume any voltage rating over 5v for the capacitor is fine (I went with 10v). I'm hoping to be able to manage at least double the quantity of LEDs you got for yours. IRF510 MOSFET transistor is said to be rated for 5.6A, so that should be fine. Hopefully I don't run into too many problems though. I kind of feel like Tim the Tool Man Tailor... more power! lol.</p><p>But what's this about resistors frying with higher power LEDs? The ones I'm getting are: 0.5w, 3 - 3.6v, 100-120mA. Is that unusual? Or did you mean if I went with a 120v LED light bulb socket type?</p><p>Something I'm currently confused about is whether or not I need to go with a USB 3.1 Type C cable to get the full 2.1A output or will a standard USB 2.0 cable use the full power just fine. Because I'd like to mount a USB port to the PCB so that it's plug and play but I also don't want to waste money if I don't need to since USB-C ports are a bit pricey right now. I do have a tester to verify the output, so I guess I can find that out later when the parts come in.</p><p>In about a month from now, when I get all the parts and can put them together, I'll post again with pics of my results. Thanks again.</p>
<p>That all sounds like it should work. With the resistors, you have to keep in mind the wattage rating. Most resistors are either rated for 1/8 watt or 1/4 watt. This refers to how much power is dissipated in the resistor itself. To choose a resistor you use: R = (Vsource - Vled) / Current(led). So R = (5 - 3.6) / 0.120 = 20 ohms. To find the wattage dissipated in the resistor: W = (Vsource - Vled) x Current(led). So R = (5 - 3.6) x 0.120 = 0.288 watts. This is close enough to the 1/4 watt rating that it will be fine with a 1/4 watt LED. But if you were using higher wattage LEDs, then they could over heat. </p><p>The only difference between cables is how thick the wires are. Really the cable doesn't matter as long as it doesn't get too hot. </p>
<p>You can always add salvaged mini heat-sinks if you have any</p>
<p>You can buy 10W LED's on eBay for less than a dollar each, They're extremely bright!</p>
<p>Would it be possible to just resize this whole thing up to 30 LEDs with the same transistor and capacitor? Im mean like just adding a few more LED and resistor combinations in the line...</p>
The power transistor is strong enough to drive 30 LEDs. Just make sure to use the appropriate resistors so that the LED aren't over loaded.
<p>i think 100ohm should be sufficent right?</p>
<p>That is what I used. with a 5V USB power supply.</p>
<p>Which i'll use as well. 2A USB charger should be sufficient</p>
<p>"Jumper Wires" is just a term used to describe a short piece of wire that is used to connect one component to another. </p>
<p>would it be able to use some sort of buzzer along with the LED lights so that it buzzes and lights up? If so, can you give me a link to a sort of buzzer that might work?</p>
<p>You can easily add a buzzer. Just find a piezo buzzer that can work at 5V. Then wire it in parallel with the LEDs and their resistors (between the positive supply voltage and the transistor).</p>
<p>So I am brand new to this and I have ordered all of the parts, but the video does not explain how to literally make the clock. Could you make a video or send pictures of the front and back of the breadboard so that I know what pieces connect to what? Also, what do you connect the wires from the USB cable to? </p><p>I would also like to use a mini solar panel to power this. Any suggestions on how to do this?</p>
<p>Here is a tutorial on how to read circuit diagrams. And step 3 has pictures of the front and back of the circuit board. The USB cable provides the power. The red wire is the positive supply voltage. The black wire is the negative. This design is not easy to use a solar panel with because it uses a 120V outlet timer. But you could make a timer circuit that runs on DC.</p>
<p>This is awesome! Here's a more complicated version of the same idea that i put together: http://rampantrobots.blogspot.com/2015/05/i-met-friend-recently-who-mentioned.html</p>
<p>Would this work with a 12V 2.5A 5m LED strip assuming I'd change the power source to one that is capable of producing 12V and atleast 2.5A?</p>
In theory it could work with the right parts. A single power transistor would not be able to handle that big of a load. So you would probably need to multiples or a different kind of controller.
What wattage are all your resistors? I am by no means electrically inclined. If I wanted to double the time it takes to fully come on, what capacitor and resistor combination should I use?
<p>I used 1/8 Watt resistors. The time it takes for the lights to come on is proportional to the resistance times the capacitance. So double either the resistor or the capacitor or some middle combination. </p>
<p>Made this for my fish tank .Used 4 luxeon stars and 9 white LED's (different resistor values) , works great , takes about 10mins . Might play with the values a bit more and maybe figure a night dimmer .Saves me time in the morning now fish have no I-Lids and had to turn all different lights on in order for the same effect . Thank You , </p>
<p>Any reason why I can't put some sort of buzzer instead of the LEDs? Also, I have some transistors that came out of an old power supply. How can I find out if I can use one of them? Will a BJT also work?</p>
<p>A buzzer can work just the same. A BJT can be used in place of the MOSFET but you need to put a 1 kohm resistor on the base pin.</p>
I tried building mine up on a breadboard, and it worked exactly as it should. But I was using some really dim red LEDs I had leftover from a class. So, i switched one of the red ones with a pretty bright blue one. Now they all work fine except the blue. Does anyone know what I did wrong and how to fix it?
The LEDs might have a different voltage requirement. The LEDs that I used were rated for 3 volts. If the new LEDs are a different voltage, then you will need to use different resistor value.
<p>Nevermind... The blue turns on after the reds are bright so.. no problem after all.. Just different voltage rating or something. I think I am going to buy some amber ones to try and make it seem more like sunlight and start soldering the final version!</p>
<p><strong>any alternatives with IRF510 MOSFET?</strong></p>
Power NPN can work but it is less efficient. You just need to add a 1K resistor to the base pin.
<p>what kind of specifications for the transistor?</p>
<p>It must be rated for at least the amount of current that the LEDs will use.</p>
<p><strong>any alternatives with IRF510 MOSFET?</strong></p>
<p><strong>any alternatives with IRF510 MOSFET?</strong></p>
<p><strong>any alternatives with IRF510 MOSFET?</strong></p>

About This Instructable




Bio: My name is Jason Poel Smith I am a Community Manager here at Instructables. In my free time, I am an Inventor, Maker, Hacker, Tinker ... More »
More by DIY Hacks and How Tos:Bubble Bath That Never Runs Out Of BubblesMagic Wand FlashlightControlling Halloween Effects with DIY Infrared Remote Controls
Add instructable to: