I'm working on a simple timing circuit that controls power to a 120VAC device through a relay. My goal is to be able to turn a heater on and set it to shut off after a set period of time (which is adjustable).
The basic function of the device is:
1. 120V is run through a 15A power relay which is controlled by the micro.
2. 3 pins on the micro are connected to hold up resistors and grounded through momentary push switches. These switches advance the hours and minutes of the timer and reset/open the relay.
3. 2 banks of 4 LED's show show time. These each have their own pin on the micro...not as efficient as multiplexing, but I had the pins.
4. Micro reads ambient light level with a photodiode and built in ADC and uses that to dim the display leds
So first question.... can anyone take a glance at my schematic and make sure I'm not doing something completely wrong? I have a Ti launchpad on order and will breadboard it up once it gets here, but I like to be prepared. I don't have the step down transformer or rectifier in the diagram, as I'm still figuring out if I want to make one myself or just salvage one from an old phone charger...but I do have a 3.3V regulator. The resistor and cap values are just for show...I still need to figure out what they need to be, but I would appreciate any suggestions.
Also...once I get this built and debugged, I want to put in a rigid case and I'm thinking about encasing it in epoxy, but I'm not sure how that will play out with the heat dissipation of the transformer.
The basic function of the device is:
1. 120V is run through a 15A power relay which is controlled by the micro.
2. 3 pins on the micro are connected to hold up resistors and grounded through momentary push switches. These switches advance the hours and minutes of the timer and reset/open the relay.
3. 2 banks of 4 LED's show show time. These each have their own pin on the micro...not as efficient as multiplexing, but I had the pins.
4. Micro reads ambient light level with a photodiode and built in ADC and uses that to dim the display leds
So first question.... can anyone take a glance at my schematic and make sure I'm not doing something completely wrong? I have a Ti launchpad on order and will breadboard it up once it gets here, but I like to be prepared. I don't have the step down transformer or rectifier in the diagram, as I'm still figuring out if I want to make one myself or just salvage one from an old phone charger...but I do have a 3.3V regulator. The resistor and cap values are just for show...I still need to figure out what they need to be, but I would appreciate any suggestions.
Also...once I get this built and debugged, I want to put in a rigid case and I'm thinking about encasing it in epoxy, but I'm not sure how that will play out with the heat dissipation of the transformer.
Attachments
-
24.1 KB Views: 47