[SOLVED] Powering up a fan (3 wire) using MOSFET LL110

Status
Not open for further replies.
the error shows about int8 something not defined,
and which headers file should i include other than
Code:
#include <pic18f4520>
..
 

You must include pre-processor. I thought you will be aware of that. I need more information.
1. Which controller are you using?
2. Which kind of display?

Post the code which you have. I will try to correct the file.
 

Im using PIC18F4520..
The display that i want is to have the temperature readings from the TC74 sensor to be displayed on the LCD screen. and to refresh the readings every 1 second.
 

Attachments

  • temp.rar
    50.5 KB · Views: 54

It seems that you didn't configure the i2c.
You have to add #use i2c (master,sda=PIN_C4, scl=PIN_C3)
 

after header files(#include).
add the line
HTML:
#use i2c (master,sda=PIN_C4, scl=PIN_C3)
 

Here is my schematic

- - - Updated - - -

updated.. the file is not sent yet
 

Attachments

  • Schematic.pdf
    157.8 KB · Views: 65

If you have proteus, load this hex file and check whether it works for you.

i2C should connect to RC3 and RC4

But while connecting the lcd to uC in proteus. do as follows:
RS to uC A2
EN to uC A1
R/W to ground
LCD D0-D7 to uC B0 to B7
 

Attachments

  • main.rar
    889 bytes · Views: 44

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…