Let the future tell the truth and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I really worked, is mine. (Nikola Tesla)

28/06/2010

Text-to-Speech

If you want to have your text spoken by a human, this site offers you a program which is called as "Expressivo" copyrighted by IVO Software. Actually, it is a program that reads written text in a human voice. You can use it online at http://say.expressivo.com and even share the spoken text with your friends. Of course, there is a limitation and you can't enter more than 200 characters. But if you want to use it to listen to books, e-mails or RSS feeds, you can also buy it.

For instance;
You can listen the text typed as "Sezgin".

26/06/2010

● Alt Code Characters

You can type alternative characters which are not available in your current keyboard layout on a computer running Windows OS. By using the Alt key, you can enter any alt code which belongs to desired characterwith the keyboard's numeric keypad. Now, I will explain how you can do it:

1. Because of using the keyboard's numeric keypad, you should have your "Num Lock" opened.
2. You should press and hold down the "Alt" key.
3. Then, you should type the code which belongs to desired character.

For instance;

If we want to type symbol of degree sign (°), we should do the following.
The code for symbol of degree sign is ALT 248. So, we should press and hold down the "Alt" key. Then, type 248 using the numeric keypad. As you see, you will get the symbol of degree sign °.

21/06/2010

●Unit Conversion

http://www.unitconversion.org presents unit converters among different units of measurement. It is useful if your works mostly require unit conversions. It is free to use and also offer wide range of units of measurements differs from data storage conversion to frequency wavelenghts conversion. You can find all you want that you need during your working life or education. Bookmarking this site may be helpful. ;)

19/06/2010

What is bit.ly and j.mp for?

bit.ly is a URL shortener service which lets you to shorten, share and track your links. Especially that presents a kind of flexibility in twitter, cause there's character limitation in your tweets. Long URLs don't cause problem against this limitation. Beyond this, now there is a new service of bit.ly called j.mp. It has two less characters and same properties as bit.ly.



●Getting started to PIC Programming 2

How can we simulate our microcontroller?

I use Proteus,which is product of Labcenter, for PIC microcontroller simulation. By the aid of this program, you can check if your written program for PIC works properly or not. You don’t have to use a PIC Programmer to test your program. So, you can save your time, money and effort. All you should do is to right-click on your PIC in Proteus, select the .hex formatted file as source and start the simulation. So, all you need to have a compiler to create .hex formatted file and Proteus to simulate your program for PIC.

●Finding Average Score of Exams in C



int main(){

int rate1,rate2,rate3,score1,score2,score3;char a;int rate4,score4;int total,t1,t2,t3,t4;
printf("Is there any quiz/homework?\nIf Yes enter 'y' else 'n' and push enter\n");
a=getchar();
printf("\nEnter the first midterm's percantage ");
scanf("%d",&rate1);
printf("Enter the second midterm's percantage ");
scanf("%d",&rate2);
printf("Enter the final's percantage ");
scanf("%d",&rate3);
if(a=='y'){
printf("Enter the quiz/homework's percantage ");
scanf("%d",&rate4);}
printf("\nEnter the first midterm's score ");
scanf("%d",&score1);
printf("Enter the second midterm's score ");
scanf("%d",&score2);
printf("Enter the final's score ");
scanf("%d",&score3);
if(a=='y'){
printf("Enter the quiz/homework's score ");
scanf("%d",&score4); }

t1=0.01*rate1*score1;
t2=0.01*rate2*score2;
t3=0.01*rate3*score3;
t4=0.01*rate4*score4;

total=t1+t2+t3+t4;

printf("\nYour average score is %d\n\n",total);

}
●Getting started to PIC Programming 1

♦What is PIC?

Before starting to introduction, I firstly explain what the PIC is. PIC is the name of the microcontrollers produced by Microchip Technology. You can see it here. There plenty of models of microcontrollers such as PIC16F628A and PIC16F877. But in my introduction, I will talk about PIC16F628A cause it has an internal oscillator runs at 4MHz. So, we need no more crystal setting.

♦What can we do with the microcontrollers?

Actually, the name of the microcontroller simply contains the answer of this question. Microcontrollers are the ones that controls required operations in a automatically controlled system. In simple terms, we can make robots, remote control systems and even a sign board with 7-segment-display by the aid of microcontrollers.

♦How is the architecture of PIC16F628A?

If you want to have a PIC to work, you need to program it. So, the software in it is essential. Two other essential things for a PIC are the power supply and the oscillator. We have an internal oscillator in PIC16F628A, so we don’t need any external oscillator such as crystal. Also these microcontrollers have 18 pins. Two pins are related to power supply pins named as VDD (which should be connected to positive power supply) and VSS (which should be connected to negative power supply or 0V). Other 16 pins are input/output pins. MCLR pin is used when we want to re-program the PIC and, normally it is connected to positive supply. INT pin is used to restart to program and the program restarted if it is high. RA is a 5-bit bidirectional port, so the pins RA0 to RA4 can be configured as an input or output. Also RB is a 8-bit bidirectional port, and the pins RB0 to RB7 can be configured as input and output pins. Also the detailed information can be learned from the datahsheet of the manufacturer.

♦What are the essential tools to get started programming?

Firstly, a kind of PIC microcontroller is needed for programming and I will talk about PIC16F628A. Also you need to choose alternatively which programming language you will use for the coding, then you need to have a compatible compiler to convert the program,that you write, into .hex formatted file that the PIC understands. The other thing is a PIC Programmer and the software provided with it. PIC programmer is used to program the PIC with the compatible software. To put it clearly, you write a program in any programming language, you get an .hex file by compiling with the compiler, then, by the aid of the software and PIC programmer you can program your PIC using this .hex formatted file.

♦Which programming language can we use?

You can alternatively choose a language among the plenty of programming languages. PIC C (contains the languages like CCS C, HI-TECH C), PIC Basic and PIC Assembly are the options available. But PIC Assembly is a little bit different. Actually, it is the language that the manufacturer of PIC (Microchip) developed as fundamental software language. It is a little difficult and slow to create your program with assembly language because of using a lot of common commands of language. But, you have the opportunity to learn the programming structure intimately. Also, when you choose PIC Assembly, you need to have a PIC Assembler to convert the codes into machine code (.hex code). You can get MPLAB provided with mpasm which is an assembler. MPLAB is a well-known program to write programs in assembly, compile them and find the errors in it. Also, you can use its feature to find the error, if you use another compilers like CCS C. You can download this freeware program from the site of Microchip.

ShareThis