You are on page 1of 7

1

EE 330 Final project Report


Project 5: Voice control Light Controller
By: Wenbing Ma
Xuan Zhang
Lab section: G
Lab Instructor: Dejmal R









2
Introduction
In this project, we need to design of an integrated circuit in a 0.5u CMOS process that can be
used to control a Triac for turning on lights in response to a voice command. We have a
phototransistor that is available as a light sensor. If the light level is above a predetermined
level, the lights should be able to be turned on with a SPST switch. Pressing the SPST switch
a second time should turn the lights off. If the light level is below a predetermined level, they
should be turned on by a voice command. When activated by voice command, they should
turn off automatically after 30 seconds after the last recognized voice command.
1. Final view

2. Design strategy
1. We use the 110VAC 60Hz voltage source as the power supply for the light. The
first reason is the specified voltage for common light is 110VAC. The second
reason is rated to the characteristic of the triac: high-frequency-sinusoid
wave could turn off the triac immediately when IGT equal to 0A;
2. The whole logic circuit to receive input current and generate a signal which
3
controls the triac is integrated in the IC Circuit to reduce the circuit space
and make it stable.
3. We assume that the microphone generates pulse voltage and find out the data
sheet to give the impedance and V max.
4. Finally we use two clocks for the IC circuit. The 1Hz clock is used to the
counter block get the turn off signal. The 1kHz clock is used to check the
state of every signal in as well as the counter.
3. Input, Output and Registers in the System

IMPORTANT: the timescale is 1ms/1us since the modlesim can only simulate
up to 2S. In order to have at least 30 steps we use the 1ms timescale. In the
fallowing parts 1ms will be consider as 1s.
Sig_IN: The voice signal comes from the microphone.
Enable: The signal comes from the SPST.
Sig_Senser: The signal comes from the photoresistor to get idea of day time or night.
Sig_OUT: The signal gives out to control the Triac.
Counter: The storage of how long it has been on. It can store up 5 bit which is 31 in
4
decimal.
CLK_1Hz: Generated 1Hz clock.
CLK_1KHz: Generated 1000Hz clock.

4. State check block


The state check block will check the state of each line for every 1ms since its under the
5
1KHz block. Because of this, it can be response to the very short signal.
Day/Night Have sound Act
Day Do not care Determined by switch line
Night Have sound Turn on the light and reset counter
Night No sound If the counter reach 30sec turn off the light;
Otherwise, keep the previous state.

5. Counter Block

The counter will act every one sec since its under a 1Hz clock. The counter will keep the
previous state if and only if the counter is equal to 30. Otherwise, it would keep on counting.
So that the when the counter reach to 30 it will stay off unless it is reset by the state block
because of the sound signal comes.





6

6. Test bench


From the figure we can find out during the night the light will be turned on immediately when
there is a sound signal. At the same time there is a second sound signal comes during the light
is on, remain time of the light will be reset to 30 sec.
7

From the



7.
Conclusion
During this lab, we verify the parameter of BJT as small-signal amplifier firstly and use it
to design a -10 gain amplify circuit. In the last part, we was required to use photo
transistor to design a wireless optical link circuit to achieve the transmission of the audio
signal.

You might also like