input & output circuits
input & output circuits
this week we make two PCP INPUT and OUTPUT circuit, as the two PCP have a multi-function to put all that we learn about mux, the opamp, shift register and apply it to show how this work.it was really good week in the lamb .it was my first time to work with mux , opamp and shift register and this makes me excited to see what is the final output of my PCP .
Thermistors are solid-state devices with a variable resistive portion whose resistance varies with temperature; they are also known as thermally sensitive resistors. These devices are usually made from semiconductor-based metal oxides with sintered or metallized leads in a two-terminal ceramic bead, glass-encapsulated device, or disc configuration. Resistance reading errors in the presence of moisture are removed when hermetically sealed.
Analog Devices/Linear Technology has a really nice solution using a thermistor network T1 as a sensor in one leg of the bridge configuration. An UA741 excites the bridge. This design has a response that is linearly related to the temperature sensed by the thermistor.
we also need some more inputs like switches to use it to trigger the output value so that we used 4 channel dip switch to minimize the number output pins we also used 74151 8 input multiplexer to explode out the input pins and make it connect to one output pin
as mux can be used as a data selector so we will be able to take the reading from the thermistor and the switch then using mux we can select wich input we will take.
after that we programming our controller to take the value then opreating a certain process to the output board which contain an rgb led and shift register.
shift register loads the data present on its inputs and then moves or “shifts” it to its output once every clock cycle, hence the name Shift Register.
A shift register basically consists of several single bit “D-Type Data Latches”, one for each data bit, either a logic “0” or a “1”, connected together in a serial type daisy-chain arrangement so that the output from one data latch becomes the input of the next latch and so on.
input circuit components
74151 (8 Input Multiplexer)
trimmer pot 1kohm
Thermistor NTC 10kohm
6.2kohm resistor
10kohm resistor
4-ch DIP switch
UA741 op-amp
1X40 0.1'' pin header
from the library importing the opamp which will work as a comparator
importing a thermistor for sensing the temperature as it gives different resistance value due to surrounding temperature
importing a potentiometer to adjust the value of the TEMP to compare it by the OPAMP
make a NET and connect it as shown
adding a multiplexer to use it with multi inputs and get one output pin
importing dip switch to use as an input for the mux
using a 5*1'' pin header for power and the MUX pins
using GIMP editor for importing the Png files which is the supported extension for the MOD
NOTE: do not forget to flip the PNG as you work in the bottom layer
INPUT CIRCUIT AFTER SOLDERING
output circuit components4
74595 shift register
IRF530 "N-Channel MOSFET
5mm RGB LED
High power SMD warm LED
2-pin screw terminal 5mm
10kohm resistor
330 ohm resistor
1x5 pin header 0.1''
TO CONTROL THE HIGH POWER LED
pin header connected to the pinout of the shift register
finally, I programmed my ATmega board as shown in the images
to take the reading from the dip switch and thermistor as I make the selector pin of the mux to be triggered for each pin for 5 sec after that the next pin will be selected using the truth table of the mux
each pin will triggered the the controller chip will take the reading after that it will operating a certain process
1-i the first switch is high the rgb led will blinking red light then green
2- if the second switch is high the rgb led will blinking red light then green then blue and vise versa
3- if the third switch is high the rgb led will blinking red light then green then blue and turn off the blinking again
4- if the fourth switch is high the rgb led will blinking will flashing colour after one
5- i the thermistor detect a higher temperature then which i adjust the opamp will give a high value and then the rgb will flashing with red led colour
What I learned this week is...
there was a short circuit in the input board which prevents the thermistor and OPAMP from working well
there was a fault in the design of the output circuit as i forget to put a pullup resistance for the RGB LED so i solder it as jumbers
the high power led was broken down so i didn't soldering it in the OUTPUT BOARD
What I learned this week is...
how to use an opamp as comparator
using the multiplexer to expands input pins
what is the shift register how to use it
using the thermistor to measure the temperature value