Generate Single Phase Or Three Phase Sine wave by Arduino

You can generate single phase or three phase 50 Hz Sine Wave through simple coding of Arduino.  The code link is given  here click to download on the link  http://www.areptone.in/arduino/Graph/graph.pdf   or  http://www.areptone.in/adeebraza/sinewavecode.pdf    to see the code in details.

Code:-

// Formule  y(t) = A sin(wt +p)

// Where; A = Amplitude, w =Angluar Frequency. t = Time , p =Phase Difference

// Frequenvy = 50Hz, 3 Phase R Y B, Phase Angle Difference = 120 degree

// R(t) = A sin ((Angular Frequency * time)+ Phase Angle Difference)

// Y(t) = A sin ((Angular Frequency * time)+ Phase Angle Difference)                                     //  B(t) = A sin ((Angular Frequency * time)+ Phase Angle Difference)

// Programmed By Mr. Adeeb Raza

int R= 9     //R Phase at pin no.9

int Y=10;   //Y Phase at pin no.10

int B=11;  //B Phase at pin no.11

void setup() {

Serial.begin (9600);

pinMode(R, OUTPUT);

pinMode(Y, OUTPUT);

pinMode(B, OUTPUT); }

void loop() {

for (int t=0; t<20; t++){ // one cycle 360 degree movement in 20 mili seconds

float R = 2.5* sin ((50*t)+0);    // R Phase Zero Degree

float Y = 2.5* sin ((50*t)+120);  // Y Phase 120 Degree

float B = 2.5* sin ((50*t)+240);  // B Phase 240 Degree

digitalWrite(9, OUTPUT);          // R phase Output on pin No. 9

digitalWrite(10, OUTPUT);        // Y phase Output on pin No. 10

digitalWrite(11, OUTPUT);        // B phase Output on pin No. 11

Serial.print(R); Serial.print(” “);

Serial.print(Y); Serial.print(” “);

Serial.print(B); Serial.println(” “);

delay(1);

}

}

// End code

Thanks

Adeeb Raza

Posted in Uncategorized | Leave a comment

CONVERT SINGLE PHASE INTO THREE PHASE

You can CONVERT SINGLE PHASE INTO THREE PHASE With IGBT Module FAIRCHILD Type -FSBB20CH60 and Arduino as given in following circuit diagram. (1) IGBT Module FAIRCHILD-FSBB20CH60 easily available in the market  (2)  Arduino is also available in the market  (3) you can use arduino code of three phase sine wave generator with this circuit.

Code is also self explanatory

// Three Phase Sine Wave PWM Generation by Mr.Adeeb Raza

// Programmed and TESTED OK by Mr. Adeeb Raza

// Basic Calculation as following

// Real Alternator Generate 3 Phase Supply, phase to phase 440 V AC 50 Hz

// Same 3 Phase Supply, phase to phase 440 V AC 50 Hz will produced with this

// Static Generator through this programming code with variation

// Frequency 50 Hz/Sec Or 1Hz = 1/50 Or 20 Mille Seconds or 360 degree = 20 mile sec

// 1 degree 20/360 = 0.05555 mille Second OR (1 mile Second = 18 Degree)

// Phase Angle difference 120 degree = 120/18 = 6.666 mille Second phase to phase

// Phase Angle Calculation in Radian where Pi=22/7 or 3.142 and one Radian=57.3

//*******************************************************************

#include <math.h>        // Math Library for mathmatical calculation

int Output1 = 9;              // Initialize arduino pin no. 9 as output for R Phase

int Output2 = 8;              // Initialize arduino pin no. 8 as output for Y Phase

int Output3 = 7;              // Initialize arduino pin no. 7 as output for B Phase

int potVal = 0;                 // Initialize Potentiometer 10K

float A = 0;                       // Analog 0 to 5V max = 0~255

float B = 0.104;

int Freq_IN = A0;             // Analog A0 voltage as Frequency variation Input

int var1 = 0;

int var2 = 0;

int var3 = 0;

int var4 = 0;

int var5 = 0;

int var6 = 0;

float PhaseR = 2 * PI / 3;        //  2*3.14/3 = 2.0952   (Sin120= 120/57.3= 2.094)

float PhaseY = 4 * PI / 3;        //   4*3.14/3 = 4.1904   (Sin240= 240/57.3= 4.188)

float PhaseB = 2 * PI;              //   2*3.14 = 6.2857       (Sin360= 360/57.3= 6.282)

//boolean toggle = true;        // Serial Plotter Output

void setup()

{

  Serial.begin(9600);                          // Serial Monitor

  pinMode(Output1, OUTPUT);      // R-Phase Output at Pin No.9

  pinMode(Output2, OUTPUT);      // Y-Phase Output at Pin No.8

  pinMode(Output3, OUTPUT);      // B-Phase Output at Pin No.7

  pinMode(Freq_IN, INPUT);

}

void loop()

{

  A += B;

  analogWrite(Output1, var1);           // Variable  Output1  R Phase

  analogWrite(Output2, var2);                  // Variable  Output2  Y Phase

  analogWrite(Output3, var3);                  // Variable  Output3  B Phase

//  if (toggle == true)                                   // Serial Plotter Output

  {

    Serial.print(var1);               // See Vlue on Serial Monitor  or Check Wave Form on Serial Plotter

    Serial.print(” “);                  // See Vlue

    Serial.print(var2);               // See Vlue on Serial Monitor  or Check Wave Form on Serial Plotter

    Serial.print(” “);                  // See Vlue

    Serial.println(var3);           // See Vlue on Serial Monitor  or Check Wave Form on Serial Plotter in step

  }

  var4 = 126 * sin(A + PhaseR);                    // (0-253) Variable Voltage at R Phase

  var1 = var4 + 128;

  var5 = 126 * sin(A + PhaseY);                     // (0-253) Variable Voltage at Y Phase

  var2 = var5 + 128;

  var6 = 126 * sin(A + PhaseB);                     // (0-253) Variable Voltage at B Phase

  var3 = var6 + 128;

  if (A >= 2 * PI)                                                 // One Circle from 0 to 360

  {

    A = 0;                                                              // One Circle after 360 again start from 0

  }

  potVal = analogRead(Freq_IN);                   // Voltage variation PWM

  delay(potVal);

}

//End Code

Thanks

ADeeb Raza

Posted in Uncategorized | Leave a comment

Convert an Inverter into a UPS details Circuit

You can convert an inverter in to a UPS with the following circuit diagram. UPS means uninterrupted power supply specially required for Computers application. When power fails all the working data of computer loss or corrupt or not save in the files a file causing re-entry & time loss. Therefore to prevent the problem of data loss we have to provide a suitable UPS with the computer. UPS convert a storage 12V DC battery voltage into an AC 220 voltage. Normally when domestic power is available computer works on domestic power but in case domestic power fails then UPS automatically supply power to the computer without any breaking & prevent computers data loss. See circuit diagram of converter http://www.areptone.in/download/UPS.jpg. This circuit changeover relay works with in less than 4 mile second of time. If AC 220V 50 Hz is the domestic power means one cycle is equal to 20 mile seconds and half cycle is equal to 10 mile seconds but our change over switch works with in 4 mile seconds so there is no break in computer supply system & prevent data loss.

Thanks

Adeeb Raza

Posted in Uncategorized | Tagged , , | Leave a comment

Make OTG Cable for Mobile Phone Connect to USB Devices

You can make your own OTG Cable for Mobile Phone Connection to other USB Devices

http://www.areptone.in/mobile/make-otg.pdf

Take any Data cable and and Cut it about 6 inchs from mobile phone usb data connector side

Take a USB Female Connector

Short  Sense Pin With Ground Pin on mobile phone usb data connector side

Connect other end of Data Cable with USB Female Connector as per following connection as given below. For more details

http://www.areptone.in/mobile/Make OTG.pdf

Thanks

Adeeb Raza

Posted in Uncategorized | Tagged , , , | Leave a comment

CLINTS NOT SHOWING AT WINDOWS-10 NETWORK

NETWORK CLINTS NOT SHOWING AT WINDOWS-10

You can salve this problem as explain following proceed  step by step

(A) First Change Advance Sharing Settings

http://www.areptone.in/download/network.pdf

(B) Second Change SMB 1.0/CIFS Settings

  1. Open Cotroll Pannel
  2. Go to and click on Programme and Features
  3. Click on Turn Windows Features on or Off
  4. Tick mark on SMB 1.0/CIFS File sharing support
  5. Select & check all three 3 squire
  6. Click OK
  7. Close control Panel
  8. Restart your Computer
  9. After rebooting see all clients will come in network area
  10. If Not then
  11. SERVICES
  12. Open services
  13. Function Discovery Provider Host  then mouse right click and click on start
  14. Again Function Discovery Provider Host then mouse right click and click on Property
  15. Change Startup type from Manual to Automatic (Delayed Start)
  16. OK

Thanks

Adeeb Raza

Posted in Uncategorized | Leave a comment

Make DOS Bootable Pen Drive very easly

We need only three important files for DOS Bootable Pen Drive that are (a) IO.SYS (b) MSDOS.SYS both are system files (c) COMMOND.COM this file is interpreter contains all the basic internal command in it. As we are aware that Microsoft has introduced DISK OPERATING SYSTEM (DOS) for Personnel Computer (PC) but after DOS 6.22 Microsoft has introduced another OS that is Windows Operating System. But Windows 3.1 also required DOS to install therefore Microsoft has introduced Windows-98 with built-in DOS as a part of OPERATING SYSTEM. Therefore Windows-98 DOS files create DOS Bootable Pen Drive very easily with help of above mention only three important files. Download bootable files click on Link: – http://www.areptone.in/dos/98systemfiles.rar for making bootable pen drive we also need a formatting tool that is included here but hp sub disk storage format tool setup file (HPUSBDisk) can be down lode from internet directly… Method:- Download Io.sys file Msdos.sys file Command .com file of windows98 dos Hp sub disk storage format tool setup file First format your Pen Drive with NTFS File system of your PC Now Run HPUSBDisk format tool file & set menu as following http://www.areptone.in/dos/hp.JPG http://www.areptone.in/dos/BootablePenDrive.pdf Select downloded Command folder then Copy & paste on PenDrive for Running all externel commands through Pen Drive For mouse operation use Mouse.com in autoexec.bat file For CD Drive add CD Driver file in autoexec.bat & config.sys files Make Autoexec.bat & Config.sys File as per your choice Now your PEN DRIVE is ready to use Thanks Adeeb Raza

Posted in Uncategorized | Leave a comment

HOW TO MAKE AND RESTORE GHOST FILE  by Norton Ghost Image

You can restore a ghost file through ghost software installed on bootable pen drive.To make a bootable pen drive you need a pen drive formatting software with system files. Therefore you need the following files (a) IBM.BIO (System Files) (b) IBM.DOS (System Files) (c) COMMAND.com (for booting from pen drive) (d) MOUSE.com  (for Mouse operation) (e) MOUSE.ini  (Mouse configuration file) (f) GHOST.EXE (Ghost software) To download the pen drive formatting software (ghost 11.5 bootable usb) from internet click on the following link:-http://download2388.mediafire.com/8pzcha70vozg/5c96mceeplyvwhn/Format+USB.r http://download2389.mediafire.com/5bka3d70e5tg/42914n0asj6bdx6/Usboot+Norto Download Format USB directly http://www.mediafire.com/download/5c9… Download Usboot Norton Ghost directly http://www.mediafire.com/download/429…

Click to access ghost%20file.pdf

Method:- Step-1:- download both files (a) Format USB (b) Usboot Norton Ghost Both files are compressed therefore first of all decompressed both files on you PC Step-2:- Prepair pen drive Use command DISKPART

  • DISKPART
  • insert your pen drive on your PC  usb port (b) Run (CMD) ommand as an administrator TYPE DISKPART Then Press ENTER
  • C:\ C:\DISKPART> you will get this prompt Now
  • USE FOLLOWING COMMANDS
  • LIST DISK
  • SELECT DISK 1
  • CLEAN
  • CREAT PARTITION PRIMARY
  • SELECT PARTITION 1
  • FORMAT FS=NTFS QUICK ACTIVE
  • (c) Run Format Tool from USB uncompressed file folder as an administrator
  • See in DEVICE your Pen Drive will be there
  • File system Select FAT32
  • Tick Mark on Format Device
  • Tick Mark on Cerate a DOS startup disk
  • (d) Usboot Norton Ghost uncompressed file folder and
  • (e) select BOOT folder  then
  • (f) click Start
  • (g) After formatting usb drive go to Usboot Norton Ghost uncompressed file folder select all files copy and then  paste in usb drive.
  • Now your PEN DRIVE is ready to use.
  • CHECK BOOTING FROM PEN DRIVE
  • Reboot your Computer at startup press F12 and select booting from USB then press Enter
  • Now your Computer will boot from Pen Drive with ghost programme starting Menu
  • Click on OK
  • The End 

Thanks

Adeeb Raza

Posted in Uncategorized | Leave a comment

SINE WAVE GENERATION CODE BY ARDUINO UNO SINGLE OR THREE PHASE

Here is sine wave generation code by Arduino UNO single or three phase very easily

/* Design & Deloped By Mr. Adeeb Raza

   TESTED OK By Mr. Adeeb Raza

   Note:- A single radian is just below 57.3 degrees

   Ques. Convert 5/12 π radians into degree measure

   ANS :- 5/12 = 0.416 x 3.142 = 1.309 x 57.3 = 75.01 degrees 

   FYI Radian  (One Radian = 57.3 degrees)

   90 = 1.571 = (pi)/2                        (  90 / 57.3 = 1.570 )

   120 = 2.094                                  ( 120 / 57.3 = 2.094 )

   180 = 1.342 = pi                           ( 180 / 57.3 = 3.141 )

   270 = 4.712 = (pi)*1.5 or 3(pi)/2   ( 270 / 57.3 = 4.712 )

   360 = 6.283 = 2 (pi)                      ( 360 / 57.3 = 6.282 )

   Range is 0 – 6.283

*/

int R = 9;             // Initialize arduino pin no. 9 as output for R Phase

int Y = 8;             // Initialize arduino pin no. 8 as output for Y Phase

int B = 7;             // Initialize arduino pin no. 7 as output for B Phase

void setup() {

 Serial.begin(9600);                // Serial Printer

 pinMode(9, OUTPUT);          // R Phase Output at pin no.11  

 pinMode(8, OUTPUT);          // Y Phase Output at pin no.10

 pinMode(7, OUTPUT);          // B Phase Output at pin no.9

}

  void loop() {

  for(int x=0;x<63;x++) {// Loop is 0 to 62 exit at 63

  float y = float(x)/10;                     //Make range 0 to 6.2

  delay(5);   

  //Serial.println(sin(y));                  // Range is -1 to 1

  Serial.println(sin(y)*2.5);              // Range is -2.5 to 2.5

  //Serial.println(sin(y)* 100);          // Range is -100 to 100

  // Serial.println(sin(y)* 200) ;        // Range is 0 to 200

  // Serial.println(sin(y)* 100) ;        // Range is 20 to 220

  digitalWrite(R, OUTPUT);             // R Phase Output at pin no.11

  delay(6.666);                           // Delay 6.6 milli seconds 120 degree

  digitalWrite(Y, OUTPUT);              // Y Phase Output at pin no.10

  delay(6.666);                           // Delay 6.6 milli seconds 120 degree

  digitalWrite(B, OUTPUT);              // B Phase Output at pin no.9

  delay(6.666);                           // Delay 6.6 milli seconds 120 degree

   }

}

// End Of Code

Clink on link:- http://www.areptone.in/adeebraza/sinewave.pdf

Thanks.

Adeeb Raza

Posted in Adeeb Raza, Allahabad, arduino, Arduino UNO, Areptone, Uncategorized | Tagged | Leave a comment

Arduino Temperature Meter with MAX-6675 & LCD I2C 16×2 Display Unit

Arduino Temperature Meter with MAX6675 & LCD I2C 16×2 Display Unit: – If you want to make project by Arduino Uno. Here I am describing a digital temperature meter using Arduino uno with four wires temperate Module type Max6675 and Display type I2C LCD 16×2 Module.The circuit diagram with programming code and libraries are attached here with for you ready download through  the following  link :-http://www.areptone.in/adeebraza/arduino/ARDUINO%20TEMPERATURE%20INDICATOR%20WITH%20MAX6675.pdf

Thanks

Adeeb Raza

Posted in Uncategorized | Leave a comment

Arduino LCD 16×2 Key Pad Shield Test

You can test LCD 16×2 Key-Pad Shield with Arduino by following Testing Programe click on the link to see the programme copy & paste on your arduino IDE.  http://www.areptone.in/adeebraza/arduino/lcdshield.pdf

Thanks

Adeeb Raza

Posted in Uncategorized | Leave a comment