Posts

SWITCHING SIMPLE LOADS! AND SOME HEAVY LOADS?

Image
This post helps you to understand when to use BJT’s. Transistors are one of the best invention that changed the human life, computer uses transistors to work and every sequential logic boards also. But we are interested in using transistors for switching! Heavy loads. Basic functioning of transistor is Switching ON and OFF electronically, this is useful to turn devices or circuit on or off. So this transistors best variants are BJT’s and MOSFET’s, we going to discuss about BJT’s today. BJT stands for "BIPOLAR JUNCTION TRANSISTOR" which is also like DIODE but can be used to switch heavy loads with CURRENT control . The bjt’s are 2 types 1) N_TYPE      2) P_TYPE we are going to discuss about N_TYPE today. It is true Mosfet’s can reduce the power dissipation up to 20%, also they can be controlled with voltage unlike current control it is easy, BUT there exist another variants of bjt which is Power transistors(Darlington pair) , which can control the hea...

MOSFETS FOR LIFTING HEAVY LOADS

Image
This post helps you to understand when to use mosfet’s instead BJT’s. Transistors are one of the best invention that changed the human life, computer uses transistors to work and every sequential logic boards also. But we are interested in using transistors for switching! Heavy loads. Basic functioning of transistor is Switching ON and OFF electronically, this is useful to turn devices or circuit on or off. So this transistors best variants are BJT’s and MOSFET’s, we going to discuss about MOSFET’s today. MOSFET stands for "METAL OXIDE SEMICONDUCTOR FEILD EFFECT TRANSISTOR" which is also like bjt's but can be used to switch heavy loads with VOLTAGE control , unlike bjt's where you have to control using current and power loss is greater in BJT . Mosfet’s can reduce the power dissipation upto 20%, also they can be controlled with voltage unlike current control it is easy. Mosfet’s are 2 types 1 ) ENHANCEMENT TYPE    2) DEPLETION TYPE But one downside is MOSFET gate vol...

1 Best way to add members to Telegram group(2021 using python)

Image
This post for those who want to add members to thier telegram group, which could take forever if we do manually, hence we can automate this take.  I 'm using python for this automation. Using the python script called telethon we can add members to the group.  T he daliy limit is 200 members. The script adds members with 60-180 sec intervals to avoid bans. you need the following installed in your computer : 1.python 3 (recent one would be better) 2.pip install of python installed(we can enable this option while install python choosing custom install) 3.telethon package installed using pip installer. 4.telegram group api registered in the telegram website. 5.good internet(mandatory) 1.Install python 3 CODE :  visit  python.org  for downloading and installing the windows pacakge. Note: 1.choose the custom installing to enable necessary installers in windows.             2.if you are on the linux or mac python is defaultly ins...

Save some amps!. Lower the Power requirement in Arduino_Hack

Saving the power when your projects are power with batteries, every milliamps counts when use batteries. So in this post we going to learn ways to put Arduino in a state where we can save some power. Hence that being said how the heck were going to do that?? , well one smart way to start with use the bare bone atmega328pu chip alone with some crystal and capacitors and resistors . Another way to do is use the sleep registers to put unnecessary ports and pins to sleep. The tips are listed below: 1-Use the Bare Bone atmega328pu chip : Use the bare bone atmega328pu chip alone with some crystal and capacitors and resistors consumes less power than PCB one, how much current if you ask? Around 20 mA. 2-Start writing all the pins either high or low:   By writing all pins high are low you do reduce the power consumption to 3 or 4 milliamps. [NOTE I’M TALKING ABOUT USING A BARE BONE ATMEGA328PU AS EXAMPLE IT CONSUMES LIKE 17 mA and so.] Put this in void setup () Code: ...

MAKE ARDUINO DIGITAL PINS SWITCH FASTER ANYTHING USING PORT MANUPULATION

Image
This post helps to use port manipulation technique to switch multiple ports ON or OFF at same time improves switching speed to Micro seconds . The Arduino ide default uses the digital Write() function for ON or OFF the digital pins but if take a look at the backend code of the digital write function there is lot happening that takes lot of the time nearly 50ms delay to execute . Since it is slow and sequential in execution we can use PORT MANIPULATION technique to speed up process. After all c code is faster than c++. Here the avr dude compiler built in Arduino ide uses register called DDRX means “Data direction register” the “X” replaces the PORTS of atmega328pu. The DDRX replaces the pinMode () function on void setup (). In DDRB means data direction register of portB(pin 8 to 13) the direction of ‘0’ means ‘’INPUT’’ ‘1’ means OUTPUT. The PORTX used instead of digital Write () which is used to turn on or off all port pins same time. Here the “X” means PORT NAME B, C, D. w...

DIY ARDUINO BASED PWM FREQUENCY MEASURING AND DUTY CYCLE MEASURING

We can use the default plusein function to measure any digital wave signal time period. It is default installed library in ide. Here is the code: #define Read 7 void setup() {   Serial.begin(115200);   pinMode(Read, INPUT); } void loop() {   float t_on = pulseIn(Read, HIGH);   float t_off = pulseIn(Read, LOW);   float Time = (t_on / (t_on + t_off)) * 100;   float freq = 1 / (t_on + t_off);   Serial.println("the on time:");   Serial.print(t_on);   Serial.println("the duty cycles:");   Serial.print(Time, 4);   Serial.print("%");   Serial.println("");   delay(500);   if (freq > 1000.0)   {     Serial.println("the freq in khz:");     Serial.print(freq /1000.0, 4);     delay(500);     Serial.println("");   } else   {     Serial.println("the freq in hz:");   ...

HOW TO USE ANY ARDUINO DIGITAL PINS TO EMULATE SERIAL (SOFTWARE SERIAL)

This post helps you to understand and use software serial implantation in any Arduino. BY using digital pins other than 0,1 . Why do we need extra serial pins? When we have serial at 0, 1 pins on Uno. Well sometimes you need many as possible as you can, because the default Tx,Rx(0,1) are always reserved for pc communications sometimes if we force to use it as debug it might throw an error also! That’s why we need additional serials as possible. Here is an excuse..! for using software serial to put hc05 Bluetooth to at command mode: notice if i use the default serial to communicate it might throw an error while uploading.  here is a link for software serial project... #include <SoftwareSerial.h>  // this library is default installed in //Arduino ide // defining Tx and Rx pins (we can use only digital pins and analog //pins) #define RX_PIN 7 #define TX_PIN 8 SoftwareSerial swSer (RX_PIN, TX_PIN) ; //here the swSer is the //name of serial function we use whatever na...