I needed a simple understanding of how this circuit works.



I understand everything about this circuit apart from the diode. I also know the function of the diode is to protect the transistor but from what exactly? Is it something to do with back EMF from the coil? I'm not too sure. Also I needed to confirm if the relay will function correctly with a 9V supply (regulated or unregulated). The datasheet of the relay is attached here and the part I'm going to use is '40.61' on page 20 of the datasheet.

Also any tips for making this circuit work more efficiently. Note I am going to use the relay for no more than 16A at 230VAC at 50Hz.

Thanks


Question: What package managers do popular Unix Distributions Use?
Answer: Its different for different unix-systems. But the common thing in all those is the tar.gz file . It is the source code of your program. Then you can make either .deb files for Debian systems or .rpm file for Red Hat Systems. The .deb and .rpm are both binary files while tar.gz is mostly ASCII file but it can also contain binaries. You can convert .rpm file to .deb file in debian systems by this command:

To install :


  sudo apt-get install alien


To convert to .deb from .rpm :


  sudo alien "packagename.rpm"


Replace the "packagename.rpm" with your original name of the file.

Then a .deb file will be created and to install that use :


  sudo dpkg -i "filename.deb"


Replace the "filename.deb" with your original name of the file.

If you want that users can install your application by apt-get or yum then you will have to upload your app to the repository of your distribution. Only then the user will be able to use apt-get or yum to install the application directly.