In this post I will discuss about the Relay module simulation model in Proteus and its simulation along with the Arduino in Proteus. In the previous posts I have discussed the simulation of important sensors in Proteus and this post will be oriented around Relay Module simulation in Proteus.
After reading this post the reader will be able to learn about the basics of the Relay Module, electronic circuit of the Relay Module, simulation model of the Relay Module and the simulation of Relay Module with Arduino in Proteus. The reader will also learn about how to interface the Arduino with Relay Module. So sit back, keep reading and enjoy learning.
Relay Module Simulation in Proteus:
Now I will discuss the simulation of the Relay module in Proteus. It is important here to mention that before the implementation of the hardware in real world it is always beneficial to simulate the behavior of the circuit to be developed. It is also important to note here that if you want to simulate the behavior of any circuit in any software the simulation model of all the components that are being used in circuit must be present in the library of the software. If the simulation model of any component is not present in the library of the software the software will be unable to simulate the behavior of the circuit. The simulation model of the component compliances the information about the behavior of the component. The simulation model of the relay module as a whole is not present in the library of Proteus so we will design the circuit of the relay module in the Proteus by our own and then simulate it. I will shortly design the simulation model of the Relay module as a whole. So let us embark on the exciting journey of circuit designing in Proteus.
Place all the components that are required in the workspace of the Proteus as shown in the figure below:
Now connect the circuit as shown in the following figure:
As shown in the image that the input of the opto-coupler is connected to the logic toggle and its output is connected to the input of the transistor which controls the power of the rest of the circuit.
Now let us add the Arduino microcontroller development board in our schematics as shown in the following image:
Notice in the circuit above that the input pin of the opto-coupler is now connected to the digital input / output pin of the Arduino where in this case Arduino will control the state of the relay.
Now in the last step attach the simulation code file of the Arduino. If you do not know how to obtain the HEX file go through my post on Ultrasonic sensor I have discussed in detail there.
my last post is what is relay
3 channel relay library for proteus
4 channel relay library for proteus
That is all for now. In the next post I will come up with more interesting topics and applications of Proteus. Till then stay connected, keep reading and enjoy learning.