I hope this doesn't seem like an odd thing to want to build!
I've got an old "sunrise alarm clock" which is on its last legs and in need of replacement. I thought it would be nice to build my own and integrate it properly with the room (ie. install some up-lighters on the wall) instead of buying another bedside one.
I'm quite a bit into this project and starting to struggle so I thought I'd share it on here. I'm hoping there might be someone with enough experience to help me out.
I've broken this project down into 3 components:
1) Human Interface - originally I though about building something to sit on my bedside table (LCD+buttons+enclosure), but anything I've ever built before just looks terrible. Instead, I'd like to use my iPhone as a wireless touch remote.
2) Control Unit - basically a microprocessor. Software is my day job so I'm comfortable with this bit. This will run the alarm clock software and send appropriate signals to the dimmer unit. I've bought one of these: http://www.netburner.com/products/development_kits/network_development.html (the cheap one). I already have it and it's working well.
3) Dimmer Unit - bit of power electronics which dims ~300W of mains-voltage (230V) incandescent bulbs. This is where I'm stuck.
My first attempt was a phase-angle dimmer kit from Velleman. This is a DC (0-10V) controlled kit which can handle 400W. I hooked this up to my cpu using a 12-bit DAC (SPI bus) and an op-amp buffer to power the opto input on the dimmer kit. This works, but unfortunately the kit isn't good enough. Two notable problems:
a) It buzzes too much, and I really need it to be silent given its purpose.
b) The dimming motion is not smooth at all - at specific points in the curve it seems to get stuck and then "jump" noticeably to a higher brightness level.
So my next plan is to use a technique called "sine wave dimming". I've read-up on this a bit and the basic idea is to switch a power MOSFET at 20kHz+ with a varying duty cycle to control the power transfer.
I can't find any kits so I will need to build this myself.
I have two problems to solve:
1) My processor selection doesn't have a PWM output (unfortunately I made the selection with the intention of using the velleman kit).
2) I have NO idea how to build a MOSFET control circuit.
Ideally I'd use the least number of components possible. I am expecting to at least use a diode-bridge to get mosfet-compatible DC. As far as I'm aware my incandescent bulbs will be fine with this. I'm looking into using a mosfet driver IC but I don't really understand some of the concepts here. There is talk of high side/low side, half rectified, full rectified etc. I guess at full-rectified but looking at the typical usage diagram I'm not really sure it's for the the use case I'm thinking of.
For the PWM I'm looking for some kind of PWM interfacing chip with an I2C or SPI bus. Failing that I'll need to build some kind of PWM circuit that I can control somehow from my CPU. Perhaps with a 0-3.3V DC control voltage since I've already built that interface!
Any and all thoughts appreciated at this stage!
Let me know if more detail is required.
Ross.
I've got an old "sunrise alarm clock" which is on its last legs and in need of replacement. I thought it would be nice to build my own and integrate it properly with the room (ie. install some up-lighters on the wall) instead of buying another bedside one.
I'm quite a bit into this project and starting to struggle so I thought I'd share it on here. I'm hoping there might be someone with enough experience to help me out.
I've broken this project down into 3 components:
1) Human Interface - originally I though about building something to sit on my bedside table (LCD+buttons+enclosure), but anything I've ever built before just looks terrible. Instead, I'd like to use my iPhone as a wireless touch remote.
2) Control Unit - basically a microprocessor. Software is my day job so I'm comfortable with this bit. This will run the alarm clock software and send appropriate signals to the dimmer unit. I've bought one of these: http://www.netburner.com/products/development_kits/network_development.html (the cheap one). I already have it and it's working well.
3) Dimmer Unit - bit of power electronics which dims ~300W of mains-voltage (230V) incandescent bulbs. This is where I'm stuck.
My first attempt was a phase-angle dimmer kit from Velleman. This is a DC (0-10V) controlled kit which can handle 400W. I hooked this up to my cpu using a 12-bit DAC (SPI bus) and an op-amp buffer to power the opto input on the dimmer kit. This works, but unfortunately the kit isn't good enough. Two notable problems:
a) It buzzes too much, and I really need it to be silent given its purpose.
b) The dimming motion is not smooth at all - at specific points in the curve it seems to get stuck and then "jump" noticeably to a higher brightness level.
So my next plan is to use a technique called "sine wave dimming". I've read-up on this a bit and the basic idea is to switch a power MOSFET at 20kHz+ with a varying duty cycle to control the power transfer.
I can't find any kits so I will need to build this myself.
I have two problems to solve:
1) My processor selection doesn't have a PWM output (unfortunately I made the selection with the intention of using the velleman kit).
2) I have NO idea how to build a MOSFET control circuit.
Ideally I'd use the least number of components possible. I am expecting to at least use a diode-bridge to get mosfet-compatible DC. As far as I'm aware my incandescent bulbs will be fine with this. I'm looking into using a mosfet driver IC but I don't really understand some of the concepts here. There is talk of high side/low side, half rectified, full rectified etc. I guess at full-rectified but looking at the typical usage diagram I'm not really sure it's for the the use case I'm thinking of.
For the PWM I'm looking for some kind of PWM interfacing chip with an I2C or SPI bus. Failing that I'll need to build some kind of PWM circuit that I can control somehow from my CPU. Perhaps with a 0-3.3V DC control voltage since I've already built that interface!
Any and all thoughts appreciated at this stage!
Let me know if more detail is required.
Ross.
Last edited: