Web Hosting

Rabu, 30 Oktober 2013

BASIC PROGRAMMING C + +

BASIC PROGRAMMING C + +


INTRODUCTION C + +

Talking about C and C + + as the language of its predecessor, C an n pemrograma including mid-level language. Creator of C was Brian W. Kernighan and Dennis M. Ritchie in 1972. C is a programming language structured program divides into a number of blocks (sub-program). The aim is to facilitate the making and program development. Programs written with C easily moved from one type of machine to another. it is because of the standardization of C is ANSI (American National Standards Institute) the reference compiler makers C.
C + + was created a decade after C. C + + was created by Bjarne Stroustroup from Bell Laboratories, AT & T in 1983. At first C + + is named "A better C". Name of C + + itself named by Rick Mascitti. The + sign + derived from the increment operator in C language.
C is a privilege because this language supports OOP (Object Oriented Programming). The main goal is to improve the manufacturing C productivity of programmers in creating applications. Most experts agree that OOP and C can reduce the complexity of the program, especially comprises more than 10,000 lines, it can even increase productivity 2X of C, Pascal and Basic.
B. Object Oriented Programming (OOP)

OOP basic idea is to combine data and functions to access the data into a unified unit. This unit is known as an object. as an illustration for mempurmudah understand it, the object may actually reflect patterns of everyday human labor. An object can be described as departments within a business firm, for example, the department.
-sale
-accounting
-personnel
Division of the department in the company is an attempt to facilitate operation of the company. As an illustration, if you are a manager sales in the central office wants to know the data of the salesmen at the branch office,what do you do? Steps you traveled certainly not come to branches and look for these data. To ease your task Your pretty secretary told to ask for information. The issue of how and who find not your business. Analogy with it, if someone intends to use the object, it simply send a message to the object and the object itself is going to handle it.
C. program C
C programs can be created using any text editor or editor as well as the compiler. The main program extension (. CPP). At the time of compilation The main program along with the header files (. h) will be translated by compiler into an object file (. OBJ). Furthermore this object files together with other object files and library files (. LIB) linked together by a linker. The result is a file (. EXE) executable.
D. Compiler C + +
C + + compiler that has been circulating in the market such as Microsoft C / C + + and Visual C + +. Both are from Microsoft. While international Borland also issued Turbo C + + and Borland C + +.

RECOGNITION PROGRAM C + +

A. Hello World
Here is an example C + + program that is simple
# include
void main ()
{
cout << "Hello world. \ n";
}

Once compiled and Dirun, the result is Hello World appears on the screen.

B. Function main ()
Program C + + is not be separated from a function / function. it is as is characteristic of OOP. A C + + program has at least one function the main (). This function is the beginning of the main program. Writing main () is the name of the function, while the parts are enclosed with {and} are called block (body function). In this case an early sign {} block and is marks the end of the block. As in Pascal, the Pascal {identical with BEGIN, while synonymous with} END. Command void means that the function main () does not return a value / value.

Way of writing the function main () is not absolute as above. Here's how another writing
# include
int main ()
{
cout << "Hello world. \ n";
return 0;
}

C. Statement
Command cout << "Hello world. \ n "; was one example statement. The command is used to print text on the screen. Each statement must end with;
It is important to note here that the C + + program is Case Sensitive, meaning uppercase and lowercase letters are considered different.
The \ n is used to move the line.

D. file Header
In the example above , called iostream.h header file . The header file necessary for court orders can be executed . If the header file removed , then the error will occur . To access the header file , use command # include , or # include " file header " . In a program may involve more than one header file .
Note :
Command cout << " Hello world . \ N " ; can be replaced with printf ( " Hello world . \ n " ) ;

But to be able to use printf required header file stdio.h
E. Removing Screen
In C + + , the command clrscr ( ), is used to remove / clean up the screen . This command will be run after adding the header file conio.h
# include
# include

void main ( )
{
clrscr ( ) ;
cout << " Hello world . \ n " ;
}

F. comment
You can add comments to your program . The following style for add comments .

/ / ----------------------------------
/ / This is the first remarked
/ / ----------------------------------

or

/ * ----------------------------------
I remarked that this was the first
---------------------------------- * /



Thank you for reading the article BASIC PROGRAMMING C + + is hopefully a little useful for the reader as well.
Regards .. andregk.blogspot.com :)

Senin, 28 Oktober 2013

MAKING GUIDE Protel 99 SE PCB DESIGN USING EXPLORER

OPENING EARLY STEP Protel 99 SE

1.1 Initial steps to open protel 99 SE
Once the installation is complete we do, a subsequent step is an introduction to the software, so we did not encounter any significant obstacles at work in the process. The introduction of software here we emphasize brief introduction Protel 99 SE how to open, create a new database, create a new file.
First we open the first software Protel 99 SE by clicking Start ► Programs ► ► Protel 99 SE Protel 99 SE, then the appearance of Protel 99 SE or less as shown in the picture below :


Protel display a blank worksheet as shown in the figure above, before we start, from the above worksheet we will create a new database that will be used to design Schematic diagram to be a PCB, how to create a new database in the following way:
Click the File menu ► New, as shown in the figure below. It will display the New Design Database dialog box as shown in the figure below.


Fill the box with Design Storage Type "MS Access databese" and name the Database File Name "MyDesignCAD" and specify the Location Database by clicking Browse, as shown in the figure below, when finished click OK.



Design Explorer it will display as shown below , this is where we will make various types of files that are related to each other to form a database that is implemented on a desing and layout components . The next step after we know how to open protel is how we create a new file sebuat that will serve as editor - at each step TIPA performing tasks that we do . First we will create a file Schematic Diagram which we will use to draw the series which will we make as a PCB , the steps are as follows . Right click on any empty space in the area , it will display the menu as shown in the figure below , then click the New menu .
Once we select the New menu it will display a dialog box to confirm us to choose the type of file that will be created , as shown below , select the " Document Schematic " and continue by selecting OK
.


Document menu will appear as shown in the figure below, the Document menu will appear an icon of the file we have created, name the file with the name "Schematic Diagrams" and continue by pressing Enter, after that proceed to Double click on the icon is to open the worksheet Schematic Diagram, it will be displayed on the worksheet approximately Schematic Diagram drawn as shown below



To display the types and kinds of components that we will use later click the Browse menu, it will display a menu of components as shown in the figure below



In the picture above is shown the various types of components that have been supplied by Protel 99 SE we just click one of the components that we will use , and we can apply the worksheet by drag and drop . Here we demonstrated how to draw the Schematic Document , Choose one of the components that we will use , for example capacitor then click the Place button . Then the symbol of the capacitor will be automatically entered in the worksheet Schematic . If we want to enter symbols other components then do the same with the only difference in the way the name of the other symbols correspond to the name of the component , eg for resistors Resistor his name is , his name is transistor NPN / PNP , etc. .
Tool option provided by Protel 99 SE is very simple because it is very minimum but its usefulness is unbelievably complex , an example of the tool option from Protel .
To the left of the tool option that serves as a wire , line , bus , Polygon , Bus Entry , Eliptical Arc , Net Label , Bezier , Power Port , Annotation , Part , Text Frame , Sheet Symbol , Rectangle , Sheet Entry , Round Rectangle , Port , elipse , Luntion , Pie Part , No. Erc , Graphic Image , PCB Layout Directive , and Array Placement .
For the next option on the tool serves as a Document Manager , Document Open , Save , Print Setup , Zoom , Zoom Sch , Down Hierarchy , Cross probe , Selected Object , Object Deselect , Move , Drawing , Wiring , Run Dialog , Run Simulation , Remove Library , Place Part and Component Part Number increament For toolbar some of which serve as a standard tool that really should exist in any software , but there are some functions of the toolbar that is used by Protel to support such software , including Place , Design , Tool , Simulate , PLD , and Report . < Br >

DRAWING SCEMATICS

2.1 At the start Drawing Scematics
Next we will start by creating a schematic diagram that we will create the documents that we created earlier, here we will use some of the components such as capacitor, Resistors, Transistors, Doide, IC, etc..
The title sequence is that we will create DESIGNING AND MAKING EQUIPMENT DRYER Phaleria MICROCONTROLLER AT89C51. As seen in the picture below.


Open the worksheet Schematic Diagram with double click on the icon Schematic Diagram for Changing head Picture right click on the image head, select Document Options. Then remove the thugs in the Title box.
2.2 List Component

List of required components can be seen in the picture below.


2.3 Entering Component

After preparing the list of components needed, then the next we will incorporate the components into sheet schematics.
- To input capacitor (C), open the schematic then choose Browse miscellanious.lib 1. Place select a capacitor and then click on the image 2. To change the value double click on the component and then type the appropriate value of an existing column. Our love for capacitor values ​​shown in Figure 3 below.


-For other components such as IC. To menginputnya have the same way with the above components. So after completion of the placement of the components above, we stayed between the legs synchronize according to existing image, until completion as shown in the figure below.


2.4 Assembling Components

Next we will assemble the components that we have had input, connect the resistor, capacitor, transistor, etc.. Use the tools PlaceWire to connect between the legs of the components like the picture below.


Bundle to be intact as shown in Figure.



MAKE PCB


3.1 Creating netlist
  After we completed the schematics, the next step is to import them to the PCB. Previously we had to create a netlist first, how is the select tab select CREATE DESIGN NETLIST, then you will see a dialog box netlist creation and continued with OK.


3.2 Create PCB After creating the netlist then the next step is to make its PCB. Select the tab DESIGN> UPDATE PCB, then the dialog will appear as shown below.


After that we click on Execute UPDATE DESIGN. At the first look after you click Execute it will show a layout of components and pengawatannya. Then we set it as neat as possible to look like the picture below.


The next step is to set the RULES that we can set the width and the distance between the lines, to set us select the Design tab> Rules dialog will appear as shown below.


We can arrange clearance constraint or the distance between the hole component legs and place the line, we click properties. We can adjust according to our wishes on the minimum clearance just as the picture below. Then followed by OK.


We can also set the line width by selecting the width constraint is still at the design rules, select Properties, and set in accordance with our wishes and continued with OK.




When finished set the rules, then we will merounting earlier series by selecting the tab autorouter> All. It will mncul Autorouter setup dialog and then we select Route All. Like this picture.


The results after at rounting would like the image below.


The picture above is the finished PCB circuit consisting of a top layer and bottom layer.
We can also see the results in 3D images, as shown below.


3.3 Print-out Results Top Layer and Bottom Layer

The final step to get the print-out we select file> print / preview, the result looks like the image below.
• The print-out bottom layer


• The print-out top layer


• The print-out holes only


• The print-out Multi Layer PCB




Maybe an article about MAKING GUIDE Protel 99 SE PCB DESIGN USING EXPLORER can be useful for all readers. Thank
Regards andregk.blogspot.com :)

Sabtu, 16 Maret 2013

Rangkaian alarm dan lampu darurat pada saat listrik pada

Rangkaian alarm dan lampu darurat pada saat listrik padam

Rangkaian alarm dan lampu darurat pada saat padam ini secara permanen dicolokkan ke soket listrik sehingga baterai NI-CD akan terisi. Ketika terjadi pemadaman listrik, lampu otomatis menyala. Selain penerangan lampu, sebuah alarm suara dapat digunakan. Ketika pasokan listrik hidup kembali, lampu atau alarm akan mati (off). Switch melakukan fungsi “latch-up”, untuk memperpanjang pengoperasian lampu atau alarm bahkan ketika listrik hidup kembali.

Cara kerja: • Tegangan listrik berkurang menjadi sekitar 12V DC di terminal C2, dengan cara reaktansi C1 dan jembatan dioda (D1-D4). sehingga menghindari penggunaan transformator listrik.
• Trickle- pengisian arus untuk baterai B1 disediakan oleh rangkaian resistor R3, D5 dan LED hijau D6 yang juga memantau adanya pasokan listrik dan pengisian baterai yang benar.
• Q2 & Q3 membentuk self-latching pair yang mulai beroperasi ketika terjadi pemadaman listrik. Dalam kasus ini, Q1 bias menjadi positif, sehingga transistor ini berubah pada self-latching pair.
• Jika SW3 diatur seperti yang ditunjukkan dalam diagram rangkaian, lampu menyala melalui SW2, yang biasanya tertutup, jika diatur dengan cara lain, gelombang persegi audio frekuensi generator yang dibentuk oleh Q4, Q5, dan komponen terkait akan diaktifkan, dan memicu loudspeaker.
• Jika SW1 dibiarkan terbuka, ketika pasokan listrik dipulihkan lampu atau alarm terus beroperasi. Namun dapat dinonaktifkan dengan membuka switch utama SW2 on-off.
• Jika SW1 ditutup, pemulihan pasokan listrik mengakhiri dari operasi lampu atau alarm, dengan menerapkan bias positif ke basis Q2.

Komponen: R1; Resistor 220K 1/4W
R2: Resistor 470R 1/2W
R3: Resistor 1/4W 390R
R4: Resistor 1/4W 1K5
R5: Resistor 1R 1/4W
R6: Resistor 10K 1/4W
R7: Resistor 1/4W 330K
R8: Resistor 470R 1/4W
R9: Resistor 100R 1/4W
C1: Kapacitor Polyester 330nF 400V
C2: Kapacitor elektrolit 10ÂμF 63V
C3: Kapacitor Polyester 100nF 63V
C4: Kapacitor Polyester 10nF 63V
D1-D5: Dioda 1N4007 1A 1000V
D6: LED Hijau (bentuk bebas)
D7: Dioda 1N4148 75V 150mA
Q1, Q3, Q4: Transistor NPN BC547 45V 100mA
Q2, Q5: Transistor PNP BC327 45V 800mA
SW1, SW2: Switch SPST
SW3: Switch SPDT
LP1: 2.2V atau 2.5V 250-300mA Torch Lamp
Spkr 8 Ohm Loudspeaker
B1: 2.5V Baterai (dua baterai AA NI-CD yang dapat diisi ulang dihubungkan secara seri)
PL1: Steker listrik
Catatan:
• Tutup SW2 setelah rangkaian dicolokkan.


Sumber : www. http://komponenelektronika.org/rangkaian-alarm-dan-lampu-darurat.htm

Minggu, 18 November 2012

PENGHITUNG KODE WARNA PADA RESITOR

Selamat malam sahabat, pada malam yang dingin ini saya akan sharing untuk yang pengen mengetahui nilai resistansi pada resistor secara instan nih sahabat. Oke langsung saja ya, dengan judul "Penghitung kode warna pada resitor" ini berwujud Exel sahabat, jadi sahabat bisa langsung memasukkan kode warna yang tertera pada tubuh resistor itu dan seketika bisa langsung diketahui nilai resistansinya. Baiklah sahabat, langsung di download aja ya, klik disini. Enjoy.. :)

Selasa, 07 Agustus 2012

MENGENAL, MERAWAT, DAN MEMPERBAIKI PENANAK NASI ( RICE COOKER )

PENANAK NASI LISTRIK (ELECTRIC RICE COOKER)
Alat penanak nasi yang banyak dipakai pada rumah tangga umum menyebutnya rice cooker. Dan karena waktu penanakannya cukup lama ya kira-kira 1,5 jam, alat ini disebut juga sebagai slow cooker. Peralatan ini memungkinkan digunakan pada rumah tangga, karena pemakaian dayanya mulai dari 350 watt, 500 watt, 800 watt, dan seterusnya. Inilah salah satu bentuk PENANAK NASI ( electric rice cooker ).

Bagaimana KONTRUKSINYA ?
Pada dasarnya peralatan ini terdiri dari bagian pokok :
1. Pan bagian dalam, untuk menempatkan beras yang akan ditanak, terbuat dari logam/aluminiumnya yang dilapisi bahan anti lengket.
2. Elemen pemanas
Pada rice cooker tertentu pemanas ini dililitkan pada bagian samping pan bagian dalam. Untuk jenis seperti ini, apabila elemen rusak dapat diperbaiki. Namun pada kebanyakan rice cooker yang diperdagangkan sekarang. elemen pemanas ditempatkan dalam bagian/pipa yang solid/permanen, sehingga bila rusak sukar diperbaiki.

3. Rumah bagian luar (out case) sebagai pelindung dari pan bagian dalam dan elemen. Pada bagian ini biasanya terdapat saklar dan terminal untuk kabel tenaga. Saklar umumnya mempunyai 2 kedudukan yaitu kedudukan cooking dan warm.
4. Kabel tenaga
Kabel ini biasanya terdiri dari tusuk kontak untuk ke sumber listrik dan kontra steker untuk keterminal pada peralatan. Bila peralatan tidak dipakai, kabel dapat dilepas dan disimpan terpisah.
5. Tutup
Kebanyakan rice cooker mempunyai dua buah tutup yaitu satu tutup untuk pan bagian dalam dan satu lagi tutup bagian atas yang dilengkapi dengan klem.
Seperti gambar ini

Serta bagaimana perawatan Rice Cooker ?
Perawatan pada rice cooker relatif ringan, perawatan dilakukan terhadap fisik, kelistrikan dan sedikit bagian mekanik.
Perawatan terhadap fisik peralatan ialah dalam bentuk pembersihan bagian-bagian peralatan seperti pan bagian dalam, rumah bagian luar. Membersihkan bagian dalam cukup dengan air dan sabun/vim. Sedang untuk bagian luar agar tidak mudah berkarat harus selalu kering dan bila mungkin diberi bahan anti karat atau bila catnya sudah rusak dilakukan pengecatan kembali.
Pemeliharaan kelistrikannya antara lain dijaga agar kabel tenaga tidak sering tertekuk dan perhatikan saklar, apabila nasi telah masak, pastikan bahwa saklar dalam posisi off atau warm.
Setiap kali akan menggunakan yakinkan bahwa tidak ada benda lain yang berada dibagian dalam antara pan dengan bagian dasar rice cooker yang dapat mengganggu proses menanak nasi.
Dan bagaimana cara memperbaikinya ?
Bagian yang memungkinkan kerusakan pada rice cooker antara lain :
6. Kabel tenaga, putus atau isolasi terkupas. Cara perbaikannya bila memungkinkan diperbaiki/diisolasi pada bagian yang rusak, tetapi kalau kabel sudah cukup tua dan pendek lebih baik diganti baru.

7. Saklar, yang kerusakannya pada bagian mekanik seperti pegas dan kontakkontaknya. Karena model saklarnya tidak umum dijual dipasaran, bila rusak memerlukan perbaikan atau dimodifikasi.
8. Elemen pemanas, kerusakan elemen pemanas biasanya disebabkan oleh kesalahan tegangan, dimana biasanya dipakai untuk tegangan 110 volt kemudian dipakai pada tegangan 220 volt. Penyebab lainnya adalah karena kurangnya pemeliharaan, sehingga pada bagian elemen atau bagian dasar dari rice cooker berkarat, sehingga pelindung elemen rusak dan elemennya putus atau terhubung singkat dengan badan. Untuk merek tertentu elemen pemanas ini ada dijual satu set, tetapi pada kebanyak merk kerusakan elemen susah diperbaiki

9. Pengatur panas, alat ini dilengkapi dengan pengatur/pembatas panas dari bimetal, kerusakan pada bimetal dapat menyebabkan rice cooker tidak panas atau panas menjadi terlalu tinggi. Untuk ini bimetal perlu diperiksa dan diset ulang atau diperbaiki.

Terimakasih telah membaca artikel ini dan semoga bermanfaat buat anda-anda semua :)

Senin, 16 April 2012

SATUAN LISTRIK

 TEGANGAN LISTRIK DAN SATUANNYA

Dalam teori elektron telah dijelaskan bahwa arus listrik adalah perpindahan elektron dari satu zat ke zat yang lainnya. Jika muatan listrik dalam suatu zat terlampau banyak atau sedikit, maka pada benda itu akan timbul desakan yang akan mengakibatkan timbulnya perbedaan (tekanan). Perbedaan tekanan ini dalam teori listrik disebut TEGANGAN LISTRIK.
Untuk mengukur tinggi rendahnya tegangan dan beda tegangan kita menggunakan satuan VOLT atau dapat singkat dengan simbol V.
Volt berasal dari nama seorang sarjana kimia bangsa italia, yaitu ALESANDRO GLUSEPPE ANTONIO ANAS TASIO VOLTA (1755-1857) sebagai penemu elemen volta.
Tegangan listrik biasanya di tuliskan dengan notasi E. Seperti juga mata uang mempunyai angka pecahan, satuan listrik juga mempunyai angka satuan besar dan angka satuan yang lebih kecil satuan yang lebih tinggi dari volt adalah :

1 Kilo Volt = 1KV = 1000 V =103 V
1 Mega Volt = 1MV = 1.000.000 V = 106 V

Satuan yang lebih rendah dari volt adalah :

1 Mili Volt = 1mV = 0,001 V = 10-3 V
1 Micro Volt = 1µV = 0,000001 V = 10-6 V

Pecahan ini dalam pemakaian sehari-hari berlaku juga untuk satuan listrik lainya.

• Cara mengukur tegangan :
Sobat dapat melakukan percobaan ini sendiri di rumah atau di mana saja.
Tujuan :
a. Agar sobat dapat mengetahui bagaimana caranya mengukur tegangan arus listrik searah.
b. Agar sobat dapat mengetaui cara mempergunakan alt ukur listrik.

• Alat-alat yang digunakan :
a. Sebuah alat ukur yang disebut AVO meter.
b. Sebuah baterai kering 1,5 Vol.

• Cara mengukur (Lihat gambar)





Pertama-tama letakan batas ukur AVO meter pada skala dengan posisi DC, lalu tempelkan salah satu ujung kawat pengukur yang bertanda positif (+) pada kutub baterai, tempelkan ujung kawat yang bertanda negatif (-) pada kutub baterai lainya. Sekarang lihatlah jarum pada skala AVO meter. Jarum akan menunjuk pada angka yang sesuai dengan besarnya tegangan pada baterai, apabila penunjukan jarum terbalik maka tukarlah ujung kawat AVO meter, kemungkinan sobat salah meletakkan positif dan negatifnya.

Senin, 05 Maret 2012

Mengetahui Setrika listrik

SETRIKA LISTRIK



Disusun oleh :

Andre cahyono (11)
Adim W ( 3 )
Anggara (13)
2L-1

Setrika Listrik
Setrika merupakan salah satu alat elektronik yang paling sering digunakan dalam rumah tangga. Nah, Banyak orang yang pernah tersengat listrik dari setrika listrik ini, jika sobat pernah mengalaminnya, ada baiknya Anda mengecek setrika listrik tersebut, dari pada terjadi sesuatu yang tidak diinginkan.
Langkah – Langkah yang harus diperhatikan dalam memperbaiki Setrika Listrik ini:
1. Lepaskan kabel power dari stop kontak.
2. Lepaskan Penutup bagian belakang Setrika.
3. Periksa kabel penghubung, cek apakah ada yang terlepas atau rusak, jika ada gantilah dengan kabel penghubung yang baru.
4. Lepaskan semua cashing luar setrika.
5. Perika Thermostat. ini ada bagian yang penting dalam setrika, jika thermostat rusak bisa mengakibatkan kebocoran arus listrik.
6. Periksa elemen pemanas, jika ada kerusakan tambal dengan gips atau ganti dengan yang baru.
7. Periksa semua komponen yang berhubungan dengan listrik dengan menggunakan tespen.
8. Setelah semua sudah diperiksa dan diperbaiki, pasang kembali setrika tersebut. Jangan lupa mengecek badan setrika, apakah masi ada aliran listrik dengan menggunakan tespen.

Gambar bagian-bagian setrika listrik




Fungsi komponen-komponen pada setrika listrik

1. Kabel penghubung fungsinya untuk menghubungkan setrika pada kontak-kontak.
2. Tutup terminal fungsinya untuk menghindari masuknya debu ke terminal.
3. Terminal funsinya tempat penyambungan ujung kabel ke elemen pemanas.
4. Tangkai pamegang fungsinya untuk melindungi panas agar tidak bersentuhan langsung dengan tangan.
5. Switch selector/Cakra pilih fungsinya untuk mengatur tinggi rendahnya temperatur.
6. Plat dasar fungsinya untuk melindungi dari sentuhan arus/panas.
7. Termostat fungsinya untuk mengatur panas pada setrika.
8. Element pemanas fungsinya sebagai pemanas pada setrika.
9. Plat dasar fungsinya untuk melicinkan baju/pakaian.

Selamat Mencoba,,!
Web Hosting