Found the resistor value with own program

Selasa, 13 Desember 2011


Now, we will make the program which can know the value of resistor with reading the colors of resistor. This method is very simple, we just see the color, and follow the formula to find the value. This table is the value of the resistor's color in the formula.


How to get the value :
- The first color ring is the first bit,
- The second color ring is the second bit,
- The third color (Multiplier) in 4 rings, Bit 3 rd to 5 rings
- the 4th color is a tolerance in 4 ring, for multiplier in 5 ring
the 5th color is a tolerance in 5 ring
5 ring ----> c1c2c3 x 10c4
4 ring ---->c1c2 x 10c3

And This is the source code of program :
#include
#include#includestruct resistor{
int nilai, toleransi;
char warna[15];
};void main(){
int i, kali=1, y=0;
int tampung, input;
char lagi[2];
float toleransi, hasil=0;
struct resistor resistor1[13] = { {0,0,"Hitam"},
{1,1,"Cokelat"},
{2,2,"Merah"},
{3,0,"Jingga"},
{4,0,"Kuning"},
{5,0,"Hijau"},
{6,0,"Biru"},
{7,0,"Ungu"},
{8,0,"Abu-Abu"},
{9,0,"Putih"},
{0,5,"Perak"},
{0,10,"Emas"},
{0,20,"Tanpa Warna"}};
printf("Berikut Data Warna : \n");
for(i=0;i printf("%d. %s\n",i+1,resistor1[i].warna);
}
while(y==0){
kali = 1;
printf("\nBerapa Jumlah Cincin Resistor (4/5) ? ");
scanf("%d",&input);for(i=0;iprintf("Masukkan Cincin ke-%d = ",i+1); scanf("%d", &tampung);
if(tampung13){ i--; printf("INPUTAN SALAH!!!\n"); continue;}
if(input==4){
if(i==2) hasil*=pow(10,tampung);
else if(i }
else if(input==5){
if(i==3) hasil *= pow(10,tampung);
else if(i }
kali*=10;}
toleransi = (hasil*tampung)/100;
printf("Nilai Resistor = %.0f, toleransi = %.3f, range = %.3f-%.3f\n",hasil, toleransi, hasil-toleransi, hasil+toleransi);
printf("Apa ada lagi(y/t) ?");
scanf("%s",lagi);
if(strcmp(lagi,"t")==0 || strcmp(lagi,"T")==0) y=1;
}
}
This is the ScreenShoot of Program :
READ MORE - Found the resistor value with own program

Applications Made in Indonesia dominate Asia

Sabtu, 30 Juli 2011


JAKARTA, KOMPAS.com - It 'was shocking for applications that already support the social platform 6 fuel oil, most of Indonesia.
This suggests that the locally-made applications are not inferior to a request made in another country.

In fact, in a statement Thursday (07/28/2011), Research In Motion (RIM) has said that the five artificial application developers in Asia are already integrating features of "Fuel connected", everything is made in Indonesia. Applications are KOPROL, Bouncity, Main and Gamemachi MiMoMachi.

Logo is a network of social position. Connected to the fuel, antarpengguna Blackberry can speak directly dangerous.

"It 'very easy for our team of developers to integrate with 6 fuel dangerous because the API (application programming interface for the user application) of fuel six complete and flexible," said Satya Witoelar, which is currently theProduct Manager somersault founder of Internet giant Yahoo has acquired KOPROL from last year.

Bouncity location-based games use the feature to allow users of fuel from 6 to share their experiences. For example, when users badges that can inform fellow BlackBerry users through the profile.

"It Bouncity our applications become more social and power-sharing has become wider," said Wenas Agusetiawan, CEO of PT phase Solusindo who developed Bouncity.

Three other applications are games and Less Gamemachi Elasitas MiMoMachi developed. "The integration of our applications with the oil rig 6 is very simple and right on target, and the full value and benefits that allow users connected to the fuel in contact with the social and easy, which is the core of a social application "said Calvin Kizan, CEO of PT Multi Elasitas Creative.
READ MORE - Applications Made in Indonesia dominate Asia

Indonesia steps into the world cup 2014

Jumat, 29 Juli 2011




We can be proud and delighted with the victory 4-3 (aggregate 5-4) over Turkmenistan in the Bung Karno Stadium, Jakarta, Thursday (28 / 7) then. Because the result was to bring Indonesia to qualify for Round Three 2014 World Cup qualifying zone of Asia. However, true red and white wings of Garuda is still far to go to Brazil. Indonesia must exceed at least two to four more stages to actually being in Brazil. Therefore, FIFA has decided that the quota in the Asian Zone World Cup 2014 remains 4.5 only. Namely, the four teams drawn from Round Four, and 0.5 is the ratio of the playoffs which will bring the third rank with a Zone Asia Oceania Zone.

3rd round
In the third round of this, Indonesia will join the 15 teams qualifying Round Two other winners, and with five teams ranked top Asia that directly qualified for the Round Three (Japan, South Korea, Australia, North Korea, and Bahrain) to be drawn further. Systems division in Round Three teams are divided by 4 pots, and Indonesia entered into in Pot 4 along with North Korea, Thailand, Singapore, and Lebanon. In total, 20 countries will be drawn to enter into five groups (AE) who will return to fight to fight a ticket to Round Four 10.
The drawing is scheduled to take place in Rio de Janeiro, Brazil, on Saturday (30 / 7). While the match schedule for round three is 2 and September 6, October 11, 11 and 15 November, and on 29 February.

4'th round
If (let's hope so, Amen) Boaz Solossa cs escaped from Round Three, then we must return to fight with heavy clubs of Asia in Round Four. Of the 10 teams of participants who are here, the division will be divided into 2 groups, with each group consisting of 5 participants. Champion and runner-up automatically qualifying for the Brazilian group and the third rank from each group will compete in the AFC playoff round.
Round Four matches will be held with a system of home and away in the period 2012 and 2013, ie 3, 8, and June 12, 11 September, 16 October, 14 November (2012) and March 26, 4, 11, and 18 June (2013). May Garuda Red and White could escape into Brazil from this round. Needless to group winners, runners-up group was the Word Utina and colleagues have made history.

5th round
Round is better known as the AFC playoff round, which is a duel of two teams ranked third occupant Group in Round Four, to determine who is entitled to represent the Asian Zone Asia-Oceania playoff round. Stay away by using a cage system, and on 6 and 10 September 2013 will be a determinant of the fate of these two countries.

6th round
Intercontinental Playoff Round or Round Playoff Asia-Oceania Zone became another name of the party struggle for a ticket to qualify for this World Cup. Here, the team winning the Asian Zone Round Five will be pitted against the Oceania champion team. In previous editions, the meeting between Bahrain and New Zealand to fill the party. Scheduled one last ticket will be contested in the system enclosure away on 15 October and 19 November 2013 later. If Indonesia were here, then this is the only hope to strive desperately, as a step we set foot in the country's dance Samba.
READ MORE - Indonesia steps into the world cup 2014

Final Project Competition 2011: EEPIS-ITS

Kamis, 28 Juli 2011

EEPIS-Online,

Today (26/07) Building D4 PENS-ITS seemed busy. Final Project Competition(FPC) held by BEM PENS-ITS liven up the building. More than 200 students from all majors the final level and courses to follow this event. They demonstrate theirfinal assignment tool in the form of hardware or software.

"For senior, this event is an event for them to introduce themselves to the industry,for other students could be used as inspiration." Welcomes Ir. DadetPramadihanto, M. Eng as Director PENS-ITS.

DSC_1197.JPG

There were different from the FPC this year is the number of participants that all students are required to join the final level in this event.

In this competition would have taken four winners from each department and thethree champions of Prodi. The grading system is based on criteria of creativity,innovative, applicable and presentations. Each department and program of studyhas two jurors who will judge their work.

To strengthen the quality, the college invited the growing industries, such asMerpati Training Center and the Creative Industries. Mr. Tri Cahyono of theeducation division Merpati Training Center said that the event was very useful,works of students are appropriate and applicable.

Fore, this event is expected to continue. "If you look at the level of creativity like this, then their chances to enter the world of big industry, anywhere if they can afford, certainly can," he says.

"The most unique project is a project that uses a balance wheel chair individuals to be able to move, very creative." Eko clear Henfri, S. ST, M. Eng one of the judges of the Mechatronics Engineering Program. (sat / rio)

READ MORE - Final Project Competition 2011: EEPIS-ITS

Analog Line Tracer


Previously, I want introduce you about line tracer. :) . Line tracer is arobot that has a light sensor that can walk follow the path. What is a tracer analogline? Line tracer robot line tracer analog is the only use of programmable electronic components without.
At Analog Line Tracer, there are 3 important part which must be known, there are :

  1. Sensor

  2. Comparator

  3. Motor Driver.

  4. Motor

  5. mecanic design
READ MORE - Analog Line Tracer

Ubuntu Dns

Rabu, 27 Juli 2011

This time we load a DNS (Domain Name Server), whose job is to translate an IPaddress into a name, so the client does not need to bother memorizing thenumbers IP'nya and just need to know the name alone. For example, when we open a site like facebook for example, we only need to type in"www.facebook.com".

Because the OS that we will use is Ubuntu, then to create a control we used mode"text" to be used in a terminal. To get into the Terminal, just click on the taskbarapplications - accessories - terminal.

Because to create a control that we need to install bind9 on ubuntu repositories,then we need to make sure that the settings are correct repository and is already connected to the address that provides a repository of ubuntu we need. If not, lookat http://wiwin.web.id/?p=688

If you have, just install bind9 on ubuntu you, but before that make sure you arelogged in as super user by typing su, then enter your root password. If you have,type apt-get install bind9 and then enter.


If already installed, we will begin to do the settings DNS. The first we do ismake sure that your computer already has the IP. If not connected to the network,we can create a virtual IP, the way by typing: ifconfig eth0 IP_yang-will-we-wear-ipnetmask netmask_dari broadcast_dari broadcast-network-virtual-ip-of-us. This isan example:



Once we get the IP, the next step is to go in the folder / etc / bind by typing "cd / etc/ bind". After that we copy the DNS settings that are already there after we installBIND earlier. The setting is in the file 'db.local'. So to copy the file, we simply typing:cp db.local db. (Name of the file we will create).



then we edit the file db.dany which is a copy of db.local file, type:nano db.dany

dan edit sampai seperti berikut:


Note:
ns.dany.com. : Name that we will use to controlroot.localhost. : Is actually your email, "@" sign replaced with ".", For exampledany_preistian13@yahoo.co.id dany.preistian13.yahoo.co.id replaced.192.168.0.13 is the IP we are.If you are finished save this setting by press ctrl + x then follow the steps. If you have, copy db.dany manner as earlier example: cp db.dany db.ip. kemnudian db.ipwith nano.


After that, we edit the named.conf so that control leads to the setting that wecreated earlier. Type: nano named.confand fill in:
zone "dany.com" {

type master;

file "/etc/bind/db.dany";

};

zone "0.168.192.in-addr.arpa" {

type master;

file "/etc/bind/db.ip";

};

Can be filled under himself so easy to find. After that we finished setting up the DNS task. Then we test, dns we succeed ornot. How do I run the first BIND9: / etc/init.d/bind9 restartthen ping dany.com to membukatikan whether the control that we make aresuccessful or not.


If the PING results as above, means the DNS has been successfully created.
READ MORE - Ubuntu Dns

PC Router

PC (Personal Computer) Router is a computer (PC) which serves as a router.Computers are used in practice this is a computer that uses the OS Ubuntu 8.10 with a NIC card and connected to the network. In this practice, we used twocomputer that serves as a router to connect 2 pieces of different tissues.

In practice this time there are 3 pieces of tissue, namely:

  1. 192.168.114.0/24

  2. 192.168.113.0/24

  3. 192.168.100.0/24


Ketiga jaringan tersebut harus saling terhubung dengan sebagai penghubung adalah sebuah PC Router, dengan topologi seperti gambar di bawah ini. Dalam hal ini, kami akan melakukan konfigurasi terhadap router 2 (R2) agar ketiga jaringan dapat terhubung.



The first step should be done is to set up the router (your PC). Go to the Terminalas root (Super User). The next thing is setting up our PC's IP Router. Actuallyneeded 2 pieces of NIC, But in this case we will only use one NIC (eth0) and afruit Virtual NIC (eth0: 1).

Ifconfig eth0 192.168.100.1 netmask 255.255.255.0 broadcast 192.168.100.255 up

Ifconfig eth0:1 192.168.113.2 netmask 255.255.255.0 broadcast 192.168.113.255 up



The next step is to enable IP Forward feature that serves to forward the packets to other networks. Kengubahnya untu way is to run the command
#echo “net.ipv4.ip_forward=1” >> /etc/sysctl.conf.



The next step is to give us the router's routing table PC, the way he is with the command

route add –net [network_tujuan] netmask [netmask_tujuan] gw [gateway]

Routing table which we will use is as follows:


RouterNet TujuanNetmask TujuanGateway
Router 1192.168.114.0255.255.255.0182.168.113.1

To view the routing table, our computers, we can do the checking by typing route-n



Then Ping to IP in the 192.168.114.0 network, that is we ping to 192.168.114.1

If successful means that we make a PC router has been successful.








READ MORE - PC Router

Magic Square with C++

Sabtu, 23 Juli 2011

This time we will create magic squares with applications using the programminglanguage C. Earlier, I'll explain what that magic squares;

Magic square is a symmetry matrix is the sum of all lines are equal, eitherhorizontal, vertical, or diagonal. For example, I will give examples of magicsquares with the order of 3x3.

8 1 6
3 5 7
4 9 2
To make the application, I have prepared a flowchart, scripts and sample results.This application can only be used for the order is odd, because the even do not know the plot. J

This flowchart:



Source Code :

#include

void main(){

static int i, j, a, b[20][20],x=1, input,c;

printf("masukkan jumlah ordo = "); scanf("%d", &input);

c = input*input;

j = (input/2);

for(i=0, a=1; a<=c; i--, j++, a++){

if(x == 0){

i+=2;

j-=1;

}

else if(i<0){ i += input; } else if(j>=input){

j -= input;

}

b[i][j] = a;

x = a%input;

}

for(i=0; i

for(j=0; j

printf("%d \t", b[i][j]);

printf("\n");

}

}


Output :


READ MORE - Magic Square with C++

 
 
 

Label

Label