Thursday, 27 June 2013

c program to make password protected folder

This is a program to open any folder in c drive in which you have set a password...


 #include<stdio.h>
 #include<conio.h>
 #include<string.h>
 #include<stdlib.h>
 #include<process.h>

 int main()
 {
    char string1[20]="abcdefgh";
    char string2[20];
    int i;
    printf(" enter password for the notepad file that you want to open \n ");
    gets(string2);
    i=strcmp(string1,string2);
    if(i==0)
     {
      printf(" password is correct ");
      system(" explorer c:\\bluej ");
     }
    else
    printf(" invalid password enter the correct password ");
getch();
}
Here, the program is written in dev c++ instead of void , int main() is used...."abcdefgh" is the password name and "bluej" is the folder you want to open..you can write any other folder name and give any other password....
and note that the folder which you want to protect by password has to be hidden
to do that ..........
  1) right click on the folder icon
  2) go to properties
  3) under the general tab click on hidden tab.........

if you have any problem or suggestion your comments are invited.....

Saturday, 22 June 2013

c program coding

   C program to open files in pc

this is a program to open notepad.exe in your desktop you can change the file names to open any files by specifying the correct path and following the same codes..........

c program is the easiest of all programming but just learning to add numbers or matrices has no use because a calculator can even do that.

the main utility of this language is to build a software and even can be used to build up games and viruses.

science can be use for destruction as well as for helping the people and i dont go for destruction so i am not going to post anything about making virus with c language to harm pc or any other systems.

this program opens the notepad

   #include<stdio.h>
             #include<conio.h>
             #include<stdlib.h>
               #include<process.h>
             int main()
             {
                system("C:\\windows\\notepad.exe");
                getch();
             }

 <process.h> is a predefined library  header file used with <stdlib.h> to interface the program with the files stored in pc. 

we can use this code method to make more complex program to run different files and work on them.......

the program is written in dev c++ if you write it in turboc++ then instead of int main() use void main()

for any further assistance or query or suggestions  your comments are invited. 

Monday, 17 June 2013

8051 interfacing with the buzzer

8051 interfacing with the buzzer

 components:  1) AT89C51 microcontroller

                       2) crystal oscillator

                       3) k1 buzzer

                       4) 4.7k resistor

                      5) 2 pcs 0.01uf capacitor

                      6) 5v power supply

                      7) inverter

Description: this is the post about interfacing microcontroller with a k1 buzzer.

                    pin 40 and 31 is connected to vcc(5v). port 1.5 is connected with

                    a inverter and then to the buzzer.pin 18 and 19 are connected to a crystal oscillator with    ceramic 0.01uf capacitor.

  The buzzer gets turned on when port 2.3 is high.

For resetting the buzzer pin 31 and 3 are connected together with 1uf capacitor and and then connected to ground through 8.2k resistor.

 CODE: 

org 00H

HERE: JNB P2.3,HERE                        ;keep monitoring for high

            SET B P1.5                                 ;set bit P1.5

            CLR P1.5                                    ;make P1.5 low

           SJMP HERE                               ; keep repeating

          END

the code is compiled in keil uvision software.

For any assistance or problem or query comment below.

happy innovention...................................

 

password: circuitsandprogram

download link of complete project: http://d01.megashares.com/dl/zIlpiG7/1

 

 

Thursday, 13 June 2013

RC robot car using DPDT switch

Remote controlled wired robot car

one of my favourite and easiest design of making a robot car


components:

1) 2 nos. dpdt switch

2) 4 nos. 500 rpm or above geared dc motor 

3) 4mt or more strip of wire

4) 12v dc supply

 






first part is to make the chasis for the car
take a square plywood sheet or anything which you want as a chasis,then make holes on it to fit the four geared motors and then fix the motors in the holes

 next is the connection of dpdt switvhes
connect it as shown in diagram
connect all the positive ends of 1st two motor of one side to one dpdt switch and the other side to other dpdt switch
connect it to the motor now by a strip wire 

for power supply, 12v  laptop charger or direct 12v supplies can be used

controls

forward : press both the switch forward

backward: press both backward

right : press the only right one forward

left: press only the left one forward

this was a simple dpdt switch controlled robo car

for any queries,suggestion or advice kindly comment below or directly mail me at ratan.singh@ieee.org

Wednesday, 5 June 2013

tricks with dc toy motor

TRICKS WITH TOY MOTOR

it was a cool day i was lying on my bed, suddenly an idea striked me to make a  fan with dc toy motor which will be operated on battery and can be used as a handfan during power cutoff or loadshedding.
i went to the market and brought a dc motor of 6v.
i feel laughing at this incidence of mine, i was a new comer to the field of science that time but yet i had a innovative skill.

now here's the fact behind my laugh, my experiment.

i connected the positive and negative terminals, and connected it to a supply of 220v mains
and my motor got worn out,fused up, sparks came out and motor was burning and heated up.
but a cool day came again yesterday,and saw my worn out dc motor inside my garbage kit bag and thought of repairing it.

 then i took out the cap of the motor  saw two lead wires.
the motor shaft rotates when this lead wire is connected to the shaft at opposite directions.
i took out the lead terminals directly supplied a 6v connection on the shaft with both positive and negative  opposite to each other and the shaft started rotating.

now the thing which i learnt is my motor was not worn out,short circuited or anything whatever u say
actually when we supply more or incorrect voltage to such type of motors it never gets worned out just the lead terminals get blasted up and it stops working  you can try to operate it later with the correct voltage as i did in the same way.

but if the coil inside the matter is worn or broken out then it will not work in that case take out all the wires wrapped in it and then wrap a new wire and connect each wire ends to different point of the shaft and then try what i did.

or the better would be to use a resistor for the safety of motor.

wish u a happy vacation to discover more facts

feel free to comment below if you have any queries or suggestion beacuse i wish to learn more from anyone who wish to teach me....................

or directly mail me at ratan.singh@ieee.org

About the author

Scholar Ratan pal singh is a Google scholar, a man with innovative ideas and a nothing is impossible attitude, is a tech-lover.
He works as a independent researcher and freelance website and software developer.
Member of IEEE comsoc society, Green technology society and has published research paper and codes in many international journals and opensource.

"Failure is the pillar of success and Honesty with oneself is the only true way of achieving self-confidence."

Translate

Pageviews