Friday, August 12, 2016

Today I made new friends

Today is a good day. I made some new friends. And the best part of the whole experience was that i don't made the cling on type friend. they are not even the friends. But its good to have a feeling for a while that you have friends. I lost lost contact with people very quickly. So, I can  say that they are new set of connections rather than saying friends.

Making friends is a very difficult task. 
Whatever!
Everyone moved on with their life except me. So, I have decided that i will MOVE ON!

Sunday, August 7, 2016

Ping Pong Game Using Pic16f877a

Code For the Program
Video:
Code:

#include
#define _XTAL_FREQ 16000000
#include "mylcd.h"
void menu(int x);
void animation();
void main()
{
TRISD=0xff; //make the portc higher nibble input and lower nibble as output pins
lcd_init(); //initialise the lcd
menu(1); //main menu is called from 1
while(1)
{
if(RD0)
{
__delay_ms(10);
menu(2);
}
}
}

void menu(int x)
{
if(x==1)
{
string("Hitting Game");
cmd(0xc0);
string("Press Start");
//main menu
}
else if(x==2)
{
//reserved for another menu
cmd(0x01);
__delay_ms(1);
cmd(0x80);
string("Player 1 Ready");
__delay_ms(2000);
animation();
}
else
{
//if nothing matchese show this
}
}

void animation()
{
while(1)
{
cmd(0x01);__delay_ms(1);
cmd(0x02);__delay_ms(1);
cmd(0x80);__delay_ms(1);
int i;
data('o');__delay_ms(250);
if(RD0)
{
for(i=0;i<=15;i++)
{
__delay_ms(5);
//cmd(0x01);__delay_ms(1);
cmd(0x1c);
__delay_ms(100);
}
}
if(RD1)
{
__delay_ms(5);
for(i=0;i<=15;i++)
{
//cmd(0x01);__delay_ms(1);
cmd(0x18);
__delay_ms(100);
}
}
}
}

Sunday, July 31, 2016

What is internet?

As you all know about Internet. There is no need for me to tell you about it. You use it in one way or the other. But latest news and developments has changed the course of the Internet. Well let me tell you how.

First of all the Internet is for people who can pay. IT'S NOT F***ing FREE. It's Not, absolutely not.

Second, every thing you do share and whatever you do is on the INTERNET. So you cant change the history. If you did it then you have  etched it for forever. NO ESCAPING EVER.

these two points are enough for me to explain what is happening. 

I think the security protocols going to be so secure that encryption will the be hardest for anyone. To break into.

We have seen how the encrypted chat software are becoming the next big thing. 

Friday, July 29, 2016

solution for slow wifi on Laptop but fast on mobile device

After the death of my dlink 2730 modem. My setup for the connecting to the Internet has been changed drastically. From a single device managing now i have two separate devices for the networking purposes and both of them has a brain of their own.

I was getting this annoying irritating problem that whenever i connect my laptop with my router the INTERNET speed is in the range of 10 to 15 kilo bytes. that was only the 10% of the bandwidth. So what was the problem.

PROBLEM

The problem is with the windows power saving. Windows power saving modes are designed to save power consumption by reducing the bandwidth. I don't know the whole technical details but from what i know.

SOLUTION

Change your power saving mode from "Power  saving" to "Balanced OR High Performance".

NOTE: Even in the balance mode when you disconnect your laptop from the adapter the power saving mode kicks in and the speed of the network is again reduced. To overcome this problem you can change the advances settings. But i do not recommend doing that.

Thursday, July 28, 2016

Key to learning micro controller programming

Every now and then you will find yourself thinking about a new project and it need  to control some random thing. From Light bulb to turning on a factory to rotating a motor half circle.

To control most of the things you will need a micro-controller. Thats what you need. 
What part to focus on if you are a very beginner.
Well! there are different parts working in a harmony in a controller. But you need to focus on the INPUT and OUTPUT ports for now. 

If you don't know what ports is?
Try goggling them

From Page 1 to Page 4

Eventually everything comes down.
This is the line i am starting my blog with this time. As the latest news in the newspapers is that yahoo is being sold to verizon for something about 4 billion$. 
I searched my lisiting on google search. I started this blog when i left my first college. And for almost two year i was at the first page. But now here i am at standing second from the top at the page 4. Nobody looks at page 4 now a days. They sometimes goes to page 2 but thats it. No one sees page 3. And Page 4 that was the dead end for searches.
Besides that why would anyone look at page 4, anyways. 

Why I lagged behind so much?

Well this is a question that i have been trying to get  the answer. And right now i'm on this conclusion. That i never finish what i start. I go till the very end. But i never finishes that work/play.
I get bored and leave that work. I love other things which are not very productive. And from the past few days i have been trying to find out more about myself. And i have found out that i can work things out for me and for everyone else. 
I also came to know that i am not a team player. I couldnt keep up with anyone. That's what i think for now. But i like working alone. and I like playing the role of a one man army. Well thats how i like to play!!!



Saturday, July 9, 2016

Led Blinking using pic16f877a

The circuit is very simple and it is the basic circuit. It consist of a micro controller and a led and a resistor and power supply. you can make this circuit on breadboard. 

The code is very simple.

#include
#define _XTAL_FREQ 1000000
void main()
{
TRISB=0x00;
PORTB=0x00;
while(1)
{
PORTB=0x01;
__delay_ms(1000);
PORTB=0x00;
__delay_ms(1000);
}
}
 VIDEO