Output Devices

Week Task

Individual assignment:add an output device to a microcontroller board you've designed and program it to do something
Group assignment:measure the power consumption of an output device

Introduction

An Electronic System or circuit must be able or capable to “do” something and Sensors and Transducers are the perfect components for doing this. Devices which perform an “Input” function are commonly called Sensors because they “sense” a physical change in some characteristic that changes in response to some excitation, for example heat or force and covert that into an electrical signal. Devices which perform an “Output” function are generally called Actuators and are used to control some external device, for example movement or sound.


Different Output Devices

Following are the some input and output devices use in electronics circuit:


Group Assignment

The task for the week is to measure the power consumption of an output device. During the group task, we measure the power consumption of a LCD display. For more details click here. I am also measure the current and voltage of DC fan because I have to use the DC fan for project purpose. The multimeter is used for volatage and current measurement. It is make by Megger, model AVO 830. For more technical details, click here. Fanon make computer fan is used as a output device for measurement. The manufacture specificaton fan is DC 12V, 0.25A.The measured voltage for the fan is 12.60V and current is 59.7 mA.The measured required for the fan is less than the manufacture specification.



Individual Assignment

The task for the week is to add an output device to a microcontroller board we have designed and program it to do something Due to COVID-19, Govt. of India announced the Lockdown from 22 March 2020 to 3 May 2020. The end date is also depends on the position of COVID-19. So this assignment is in between this period. Currentlly i dont have lab acess right now. So i am trying this assignment using TinkerCAD software. The board is also i have design in Eagle software. The machining i will do when i will be Lab.



1. DC Servo Motor with Arduino Board

Any electrical motor can be utilized as servo motor if it is controlled by servomechanism. Likewise, if we control a DC motor by means of servomechanism, it would be referred as DC servo motor. Servo motor is a type of motors whose output shaft can be moved to a specific angular position by sending it a coded signal. The servo motor will maintain the position of the shaft as long as you keep applying the coded signal. When you change the coded signal, the angular position of the shaft will change.Here i have connected this motor to arduino board for the rotation of shaft in between 1 to 179 degree angular rotation.There are three pin for connection 1. Ground 2. Power 3. Signal. Following image shows the connection.



The programm for the motor rotation is develope with the help of block. The angular position of rotation in block is shown in between 1 to 179 degree, then delay of 100 millisecond and again reverse rotation from 179 to 1 degree. Here we can set any angular degree of rotation in 360 degree, just by changing the angle of rotation from and to. The signal pin of servo motor is connected to the digital pin 12 number on arduino board. We can connect the signal pin to any digital pin. That pin number we have to mention in code.Here we are using TinkerCAD simulation software. so it has may inbuilt diffrent liabrary for different devices.so there is no need to load specific liabrary for servo motor. The code is as follows



Now start the simulation, the motor is start to rotate.



Here is the video of connection and simulation.



2. 7-Segement Display with Arduino Board

The seven segment display consists of seven LEDs arranged in a rectangular fashion as shown. Each of the seven LEDs is called a segment because when illuminated the segment forms part of a numerical digit (both Decimal and Hex) to be displayed. An additional 8th LED is sometimes used within the same package thus allowing the indication of a decimal point, (DP) when two or more 7-segment displays are connected together to display numbers greater than ten.



Depending upon the decimal digit to be displayed, the particular set of LEDs is forward biased. For instance, to display the numerical digit 0, we will need to light up six of the LED segments corresponding to a, b, c, d, e and f. Thus the various digits from 0 through 9 can be displayed using a 7-segment display as shown.



How to interface the seven segment display with Arduino: Here, the 7-Segment display is driven directly by Arduino. Resistors need to be connected between the display and the Arduino UNO board. Depending on which number or alphabet is to be displayed, control signals are applied.We have used common anode display, hence the common pin is connected to 5V. If common cathode display is used, the common pin needs to be connected to ground. For common anode display, drive pin LOW to turn on corresponding LED segment.For common cathode display, drive pin HIGH to turn on the corresponding LED segment.



This means then that an LEDs light intensity increases in an approximately linear manner with an increasing current. So this forward current must be controlled and limited to a safe value by an external resistor to prevent damage to the LED segments. Here i have make the connection with Arduino board using TinkerCAD. A 7-segment display can be thought of as a single display, it is still seven individual LEDs within a single package and as such these LEDs need protection from over current. The voltage drop for the LED is around 2 to 2.2 volt. The supply voltage through the arduino is 5 volt. The LED segement can draw around 15mA current. The value of current limiting resistor required is R=V/I=5V-2V/15mA=200ohm. Two LED connected parallery of 0.20 Kohm. LEDs produce light only when it is forward biased with the amount of light emitted being proportional to the forward current.



The programm for to display 1 to 3 digit is write here.

Snow
Snow

Now start the simulation, the display shows 1 to 3 digit.



3. DC Motor and LED as a Output Device with Arduino Board

Basically in my final project, i have to use two dc motor and two LED as a output device for working smart kitchen chimney. Smoke sensor is taken as a input device in that case. So here i am trying to develope this board using TinkerCAD software. When i will be in lab, then i will use microcontroller ATtiny 44 IC for the same input and output device. Lets see the connection made here



How to interface the DC motor and LED with Arduino Uno: Two DC motor and two LED (Red and Green) is connected to arduino board. Resistors of 1 Kohm for each LED is connected on anode side in between LED and Arduino. Red LED is connected to the digital pin 7 and green LED to the pin 6 of arduino board. The two DC motor is also connected to the arduino board. There is also two pin. Ground pin is commonlly connected GND pin arduino and DC motor1 signal pin is connected to the pin number 5 and DC motor 2 signal pin is connected to the pin number 4 of arduino. The wiring diagram shows the connection.



Here i am trying to develope the program directly using text.



Now start the simulation, there is a two LED is used, Red LED shows the power supply is "ON" and sensor is detecting the smoke



As the smoke is detected by the sensor, the First DC motor will get start and green LED will blink In this case the smoke intensity is less so only one motor is getting start.



As the smoke intensity is increased, the second motor is getting start. Both motor are now running



Here is the video of connection and simulation.



Board Design using Input and Output Devices for final project

As shown in above simulation, this all devices I am going to use in my final project. So here i have develope the board in Eagle software. There is two DC motor are using to run a fan in kitchen chimney. The motor is around 5W rating, so i will use PNP MSFET to controll the motor, because if I will directly connect thic motor on the board, due to high current the microcontroller may get damage. PNP MOSFET is connected with the microcontroller i.e. ATtiny-44.Now I have come to the lab on 23 June and start working. Firstly I discuss with my instructor and make the necessary changes in this board. The final I have put here. The schematic design is as follows:



The board design is as follows:





Why PNP MOSFET?

The PNP transistor has a Positive-Negative-Positive type of configuration, with the arrow which also defines the Emitter terminal this time pointing inwards in the transistor symbol. Also, all the polarities for a PNP transistor are reversed which means that it “sinks” current into its Base as opposed to the NPN transistor which “sources” current through its Base. The main difference between the two types of transistors is that holes are the more important carriers for PNP transistors, whereas electrons are the important carriers for NPN transistors So here I am selected PNP MOSFET because the load is connected to ground (0v) and the PNP transistor switches the power to it. To turn the PNP transistor operating as a switch “ON”, the Base terminal is connected to ground or zero volts (LOW)



PCB Milling and Soldering

Firslty the image is exported as a png file from the Eagle software. Then this file is converted into the rml file. Two file is created one for trace and other for cut. Then file is loaded on SRM-20 PCB milling machine.(For more details refer my Assignment 5 and 7). After milling the component is soldered on the PCB. and finally conductivity is tested. Now the Output board is ready.

Snow
Snow
Snow


Wiring Diagram

The following diagram shows the connection between input and output board with output devices. Pin number 10 and 11 on input board are provided for connection with output device. The output device (Fan/motor) have required 12V input power also the power consumption is more. So we develope the output board with PNP MOSFET for switching. The MOSFET getting the signal from the input board according to that the fan will ON/OFF. The 12V/7A battery is connected to the output board. The signal pin from the input board is also connected to the output board. As the smoke is detected by the smoke sensor which is connected on input board, the fan is ON and OFF. The details wiring diagram shown below



Problems faced with above board

Here I am using PNP Mosfet for switching. Bur when I have connected the battery and load (i.e. fan) to the board. The fan will get start, without taking any signal from the microcontroller board. But also I am connecting it to microcontroller board and used the program to ON/OFF the fan, but the switching is not working and fan in running condition. The I have done trubleshooting on the board with discussion of my local instructor Suhas Sir.
1. I have checked the soldering point again, do the soldring again
2. Any short circuit on the board, but not found any
3. All the connection of wire
Then again checked the board, but again it is not working (i.e.switching is not working)
4. Then checked the output voltage from the output pin of microcontroller, the voltage for 1 sec is 5V and for 1 sec is 0V. The high and low is programm is given so it is also ok
5. The decided replace the P MOSFET by N MOSFET and checked but still not switching
6 Then Suhas Sir the circuit diagram required for the MOSFET and what I am creating But it is OK
7. They also the resistor value required for the board(here I am using 1Kohm is series and same 1 Kohm in paraller), but it is also OK
8. Then they have doing some changes with the path,by using wire, but sill the board is not working
9. Also we decided to remove the one series resistor and make direct path, but nothing is happen
This all we tried for complete one day.



Then finally we decided to use the relay for now. When we get time, we will again work on this board

Programming and Testing

I have developed the ATtiny-44 microcontroller board for Input Device week . For this week task I decided to run the fan (Rating 3W, 12V and 0.25A )on this board using relay and print the status of fan on serial monitor. Lets discuss the procedure
The following is the code I am using for programming. Pin 3 on the ATtiny 44 is I/O pin. so here it is declared as output pin.


<

Select the board, Processor, clock and programmer in the tool menu.


Lets compile the code, ohh something is remaining to add in programm. I think serial software liabrary


Now added the command of liabrary and again compile the code. But the same error is showing . That means with this also I need to declare the Rx and Tx pin number of the IC.


Lets doing the correction and again compiling the code.The code get compile successfully.


Now uploading the code. The uploading is also successfull


The final video of testing is here. The arduino board is used serial monitor printing. Rx, Tx pin of the board is connected with Tx and Rx pin of the Arduino. Relay is used as switching device. Positive wire of the fan is directly connected with battery (i.e.12V, 7.5 AH) and negative is conncted to output NC (i.e. Normally closed) point of relay. Negative from the battery is given common output point of relay). The relay has three input pin i.e. VCC, GND and Signal Pin. This three pin is conncted with input board. Signal pin is conncted with pin no.3 of the IC. Lets see the final video of testing

What i learn?

I am learn about
1. Different output devices used in electronics circuit.
2. Programming for output devices with taken the sensor value as a input.
3. Board design for input and output devices.
4. Problem solving during programming
5. Board Designing for output device.

Download my original file here

Go to the top