Share Internet connection in a network – Part 1

STEPS TO SHARE INTERNET CONNECTION OVER A LAN

Do you want to connect two computers over a LAN using a ethernet cable and use a single internet connection on both computers? Then this topic is just right for you. You can connect computers and laptops – one to one conncetion using crossover cables. Crossover cables can be built with parallel ports and serial ports. But here i discuss the simple method using the ethernet cable.

Requirements:

1) Both computers must have a ethernet card and the socket.

First decide on which computer is going to act as the host computer and which computer will be the client.

Procedure To setup LAN with internet connection facility:

Setup host Computer:

Goto start>programs>accessories>communication>Network setup wizard wizard
1)Next
2)Next
3)Specify This computer connects directly to the Internet.

ics_serverwiz01a1.gif

4)If the computer has more than one network connection, this screen appears. Specify Let me choose the connections to my network and click Next.

ics_serverwiz03a.gif

5)Select the connection to the ICS server and click Next.

ics_serverwiz04a.gif


6)
Enter a computer description and computer name. The description appears in My Network Places or Network Neighborhood on other networked computers. The computer name must be unique on the network. For maximum compatibility with all versions of Windows, use 1-12 alphanumeric characters, with no blanks.

ics_serverwiz05a.gif

7)Enter a workgroup name, which should be the same on all of the networked computers. Once again, use 1-12 alphanumeric characters, with no blanks. Be default, the Wizard uses the name MSHOME. If your network uses a different name, enter it here.

ics_serverwiz06a.gif

8)The Wizard displays the settings that you’ve made. Scroll down the list to see all of them. To change a setting, click Back. To accept the settings, click Next. To stop running the Wizard, click Cancel.

ics_serverwiz07a.gif

9) The Wizard then configures the computer’s network settings. The process may appear to stop for a time, but let it continue to completion.

ics_clientwiz08a.gif

10) If the Wizard is running on a Windows XP computer, this screen appears. Specify Just finish the wizard and click Next.

ics_clientwiz09a.gif


11)
When the configuration is complete, the Wizard’s Completion screen appears. Click Finish to exit
.

ics_clientwiz10a.gif

12) Restart the computer when prompted

ics_serverwiz141.gif

Set the client computer:

Goto start>programs>accessories>communication>Network setup wizard wizard

1)Specify This computer connects to the Internet through another computer (the ICS server), and click Next.

ics_serverwiz01a.gif

2)If the computer has more than one network connection, this screen appears. Specify Let me choose the connections to my network and click Next.

ics_serverwiz03a.gif

3)Select the connection to the ICS server and click Next.

ics_serverwiz04a.gif


4)
Enter a computer description and computer name. The description appears in My Network Places or Network Neighborhood on other networked computers. The computer name must be unique on the network. For maximum compatibility with all versions of Windows, use 1-12 alphanumeric characters, with no blanks.

ics_serverwiz05a.gif

5)Enter a workgroup name, which should be the same on all of the networked computers. Once again, use 1-12 alphanumeric characters, with no blanks. Be default, the Wizard uses the name MSHOME. If your network uses a different name, enter it here.

ics_serverwiz06a.gif

6)The Wizard displays the settings that you’ve made. Scroll down the list to see all of them. To change a setting, click Back. To accept the settings, click Next. To stop running the Wizard, click Cancel.

ics_serverwiz07a.gif

7) The Wizard then configures the computer’s network settings. The process may appear to stop for a time, but let it continue to completion.

ics_clientwiz08a.gif

8) If the Wizard is running on a Windows XP computer, this screen appears. Specify Just finish the wizard and click Next.

ics_clientwiz09a.gif


9)
When the configuration is complete, the Wizard’s Completion screen appears. Click Finish to exit.

ics_clientwiz10a.gif

10) Restart the computer when prompted

ics_serverwiz141.gif

After both computers are restarted: Test the connection :

To test if the connection is established , goto run>command
Then type : Ping 192.168.09.2 from the host computer. it must return values and results and not say time out!!!.

This test will just test the connectivity of both computers . The final step is yet to be followed where we will share our internet connection..If you have completed till this step you will be able to share datas over the LAN connection.

Advertisements

Long back for robocon

 

I had almost left this un-published . For last year robocon me and my friend had made one of these pick and place robots. The total cost i estimate was around 3.5K per robot. At the contest we encountered robots that were made for a Lakh of money. If you take up the cost to performance ratio i think We really were at the top 🙂

Watch our test robot.


Madan

Reverse engineering

Internet provides so many cool ideas and projects with PIC microcontrollers and other Uc’s . Unlike in this blog , most examples will contain pre-compiles ASM or machine codes along with the example. All you will be able to do is just burn it into your Uc and use. The logic thoug explained will not be clear in the program.

What reverse engineering am i talking about?
If you didn’t know , All latest microcontrollers have their code written in ‘C’ Language. Softwares called compilers convert them into machine code and ASM.

Now i am looking for a product that can convert the ASM/machine codes given in those examples to understandable ‘C’ code. Thus making  understanding and upgradation easier.Hope to see one such product soon online!!

International Robotics Olympiad

If you are a desi geek into robotics then you must try yourself at the international contest. International robotics Olympiad 2007 is going to be held at Singapore from November 27th to 30th.

If you are too young probably your mom will not let you all the way there!! .These are the contest for the above 18 age group to Singapore.

Robo Basketball
Robo Boxing
Robo Marathon
Robo BalancingBeam
Robo WeightLifting
RoboSoccer (Hurosot)

Most of the robots are meant to be autonomous. The not very popular IROC seems to have showcased some good robots last year. I’d given a good-full search for the videos but the one below was the only and the most impressive of all.

Some MATLAB image processing basics

Nothing much new here. I would just capture an image from my web camera and process it to identify something. I am actually making a small project to identify motion or intrusion into the field of view of the camera.

I will just put the images i got and the code. I am planning to implement this basics and construct the intrusion system around this.

 

for i=1:240,
for j=1:320,
zeros(i,j)=i;
end
end
figure; imshow(zeros);
for i=1:240,
for j=1:320,
if zeros(i,j) < 128
zeros(i,j)=0;
else
zeros(i,j)=255;
end
end
end
figure; imshow(zeros);

The result generates two images as below respectively:

1)

matlab

2)

matlab

In the above two images i have just done some pixel-wise threshold modification on figure 11 to obtain clear distinct images on figure 18.

figure 11 has been generated in the first part of the code . In the second half of the code i have assigned value based in a set threshold are 128 thus giving clear distinct black and white regions.

I will give the hand representation in the following post. This above example just give n example of pixel operations on an image.The capturing of image is not included here but you’l find it in one of my previous posts.

13.8 V Regulator

There are standard available regulators. 12V,9V and 5V. Have you ever analyzed what you might need to generate a voltage regulation of say 12.7 V , 13.4 v ? or say 5.7V , 6.4 V ?Do you see some similarity? i think you do. They are increasing in steps of 0.7 .

Well the technique to do that is as given in the image below:

For the time being lets forget the capacitors .  The only other thing left in the circuit are the  7812 IC and the diodes . What you might wonder is a 7812 regulates the input voltage of 16-20 volts to 12 V . But the circuit here shows 13.8V . How to you account for that?

well is like this ,  The base or the middle pin drains through the two diodes dropping a voltage equivalent to their forward bias junction voltage. Since by applying standard voltage addition law you can add the voltages of the two forward biased diodes and the regulated voltage.

Slight math will give you : 12 + .7 + .7 = 13.4  . Here the diodes i assume give a forward junction voltage of 0.9V . Thus giving 1.8 V extra.

But the concept remains the same. The circuit shows IN4148 . Do check the forward bias junction voltage and tally the equation. But if you take a IN4007 Standard diode it will give you 13.4 in such a configuration.

You may regulate variable voltages in this method.

Testing Serial Port

Many times you might try to tinker with your serial port and get your external hardware interface with the serial port. In cases your serial port might not seem to respond. now the question arises if your hardware is at fault or your serial port?

The best way to test Serial Port:

Plug in a serial mouse and restart your computer. If the mouse works then you can make sure that you serial port is working perfectly. If otherwise you must check or replace your serial port.

Since most of us have shifted to USB keyboards its most common not to find one such mouse.In such cases you can try the following method.

Hyperterminal Serial Port Test:

Note the pin configuration of a male socket of a serial port.

PIN OUTS :


Steps:

1) Take a serial cable. Connect one end to the computer and have the other end free.

2) Short pins 2 and 3 of the side which are free . They are actually Tx and Rx pins. This setup is called NULL Modem configuration. Once the pins on the free end have been shorted you may proceed to the next step.

DB-9 :

DB 25:

3) Now you have essentially allowed a complete connection. the data that is transmitted through Tx is going to be as such received by Rx

4)Hyperterminal in windows can be used to send and receive datas.

Open Hyperterminal:

5) Open windows hyperterminal

6)

7)

8) Once a window opens after clicking ok. Type anything. here the phrase is “This is a Loopback test”

If you are able to type then your serial port is sending and receiving signals properly.
If you are not able to write then you’l have to check further (There might be a some problem with the port).

madan