MahmoudJaser
Newbie level 5
my project is Home automation with power saving technique i have used 2*PIC 16F877A ,OSC = 4Mhz ,Mikrobasic language program and the connection diagram is as in the picture
my problem is when i have connected the hole project hardware and start it up no response from LCD at all pls guide me about:
1-what is the best supply needed and do i have to use two separate sources and if any part of my project needs its own source??
2-i used timer0 interrupt only so no external or internal interrupt are used what are the best configuration bit for me
3- what is the amount of capacitance needed for both Vss,Vdd and the master CLR and the oscillator
4-what is might be the problem in LCD as it worked perfectly on Proteus the configuration i used is:
LCD_config(portb,7,6,5,4,portb,1,2,3)
and this is a sample of display code:
is there any special connection needed ,like when i connect the 15 and 16 pin's of the LCD to 0,5 volts to turn it on ??
5-what are the best wiring length (For parallel port connection and for the sensors and leds ....etc )
6-is there any difference between built-all and built operation when compiling the project ??
7-the code 100% works i checked every may-happen scenario so nothing wrong with the code it appeare to be hardware problem as nothing even starts up
* note: the ROM in the 1st PIC (left on the graph) is reaching 88% and on the other one reaches 75%
please help me its my graduation project and it must work !!!!!
additional photos
my problem is when i have connected the hole project hardware and start it up no response from LCD at all pls guide me about:
1-what is the best supply needed and do i have to use two separate sources and if any part of my project needs its own source??
2-i used timer0 interrupt only so no external or internal interrupt are used what are the best configuration bit for me
3- what is the amount of capacitance needed for both Vss,Vdd and the master CLR and the oscillator
4-what is might be the problem in LCD as it worked perfectly on Proteus the configuration i used is:
LCD_config(portb,7,6,5,4,portb,1,2,3)
and this is a sample of display code:
Code:
LCD_Cmd(LCD_CLEAR)
LCD_Cmd(LCD_CURSOR_OFF)
LCD_Out(1,1,"******WELCOME******")
LCD_Out(2,1," H.M.H HOME ")
LCD_Out(3,1," AUTOMATED SYSTEM ")
5-what are the best wiring length (For parallel port connection and for the sensors and leds ....etc )
6-is there any difference between built-all and built operation when compiling the project ??
7-the code 100% works i checked every may-happen scenario so nothing wrong with the code it appeare to be hardware problem as nothing even starts up
* note: the ROM in the 1st PIC (left on the graph) is reaching 88% and on the other one reaches 75%
please help me its my graduation project and it must work !!!!!
additional photos
Attachments
Last edited by a moderator: