Posts

Create a watch dog script for Local Git Repository to Pull commits !

 How to create a watch dog scrip for a git folder in your local computer? Need: We clone a public repository to our local computer and executing the code from there. When doing  commit to the pull request done in the upstream master, in each and every time we need to pull the same manually to our local repository.  To solve the issue, we can create a script and configure the same to the start up options will update the local repository with respect to  the parent repository changes. Clone a repository to a local folder using the following commands In Linux Terminal, run the following code: git clone https://<link_to_the_GitHub_repository> Now what i doing is,  am renaming the cloned repository to 'git_folder' Change the directory to the 'git_folder' using cd command  Run in Linux terminal: nano script_run.sh                        #Save this code as script_run.sh (Can customise the ...

Self-Regulating Battery Charger Circuit

Image
The post explains how a neat little self-regulating automatic battery charger circuit can be made using just two inexpensive transistors. How it Works As can be seen in the diagram, this auto-regulating battery charger circuit utilizes just two transistors for detecting the charging thresholds, and cuts off the process as soon as these limits are detected. Using two transistor actually makes the design hugely sensitive compared to a single transistor charger circuit. The indicated preset is set in such a way that the T1 is just able to conduct at the specified full charge threshold of the battery. When this happens T2 begins switching OFF, and ultimately at a point it is unable to sustain the relay conduction and switches OFF the relay, which in turn cuts of the input charging source with the connected battery. Conversely, when the battery voltage begins dropping, T1 gradually deprived of its adequate conduction voltage level, and ultimately it ceases to conduct, which quickly prompts ...