Pages

Saturday, April 21, 2012

Using Compiler


#include <16f877.h>
#fuses XT,NOWDT,PUT,NOPROTECT,BROWNOUT,NOLVP
#use delay(clock=4000000)
#include "flex_lcd.c"


void forword_dir(void)
{
lcd_send_byte(0, 0X18);
}


void backword_dir(void)
{
lcd_send_byte(0, 0X1E);
}
void main() {
int a,i;


lcd_init(); //lcd initialize
lcd_putc("\f"); //lcd clear
// lcd memory can hold up to 40 characters 
lcd_putc(" http:// shibuvarkala . blogspot . com");


for(;;){
for (i=0;i<14;i++)
//for(i = 0; i <> )
{
backword_dir();
delay_ms(50); // scroll delay
}


for (i=0;i<14;i++)
{
forword_dir();
delay_ms(50);
}
}
}




// Above coding is for scrolling the text on LCD. With this example, we can adjust the code for our project. There are lot of example on internet for coded a PIC. Several link can be use for our study like http://www.edaboard.com/ to implement on project.

Using Proteus For Simulation

If the actual circuit is not working fine, protues is the best way to check or troubleshoot the circuit. With this procedure, i can adjust the coding and ensure the code working fine before burn on real PIC. Below picture of testing procedure...



 Tx side on Proteus

Simulate and check the error.

Circuit Process

 Construct RX and TX circuit on etch board
 Transmitter side.

Testing LCD before actual coding.

Etching for Tx and Rx Circuit

 Transmitter Side
Receiver Side

- Circuit has been constructed on Proteus software 1st before the etch circuit. In this case, im using Express    PCB to build a circuit. Etching process can has been done with this reference link http://www.memsnet.org/mems/processes/etch.html.

Thursday, February 16, 2012

Apr97600 Example.


Below is my Apr9600 and 5v circuit. When the button pressed, recorded sound will produce. In this case, only 1 message has been record. Which is on M1 pins. The output for audio is slow because there are no Amp circuit provide. Later on I will put it after all circuit constructed nicely.

-Sorry for bad quality Vc-


Constructing Apr9600 circuit


Cirucit for audio has been constructed. This circuit base on Apr datasheet which is the IC can be operating in many ways. There are 3 type to operate the Apr IC.
  1. Random Access Mode - This mode can be 2/4 or 8 message at on time.
  2. Tape Mode, Auto Rewind - Auto rewind the message
  3. Tape Mode, Normal Operation - Normal operation . 1 message at 1 time and can record over 60 sec.

For this project, the circuit for random assess mode is suitable. This caused when we need to record 4 message in different length and type.

Friday, February 10, 2012

Constructing 12v to 5c dc ConverterCircuit



Above circuit is 12v to 5v dc converter. Circuit has been construct on the breadboard because this only for testing purpose 1st. Another week I'll post the new one circuit which is constructed on the veroboard. The circuit will be use at PIC16f877a. PIC16f877a operated on 5v dc only.