Do you think the op just troll us?
Type: Posts; User: louislouis; Keyword(s):
Do you think the op just troll us?
I'm pretty sure, He has incorrectly wired the lm35 and that caused the weird behaviour. Tested in proteus, working firmware with wrong lm35 wiring causes relay always on.
Conclusion, I need a drink...
Yea lm35, I overlooked that. You have right. I had no info about Cobuccit's setup, wiring, etc. Difficult to gave correct advice. If he use your posted schematic, and code it must be run whitout...
no, no. The problem why is the ADC reading high is the LM335 wiring. Cobuccit has wired a "pullup" resistor to LM335 from 5V and this shifting the output voltage to 3V at 30degC.
My ADC settings...
on 10bit adc?
Here is the code. Look at the comments, and modify the RAW number to number when the display show 30.0degC.
define osc 4
adcon1.7=1
ANSEL = %000001 'Disable Inputs Tranne AN0
ADCON1 =...
I'm just curious, can you please try this hex, is It working OK?
That's weird behaviour. I don't had on hand 16F88, I run it on 16F690, but it doesn't matter.
OK, one more chance try this:
That's confirms the ADC readings is OK.
If you program this HEX (thermometerNOrele.hex), the rele must be allways switched OFF. Yes or No?
Then program this HEX (thermometerTEST.hex), probably...
OK, please program this HEX and tell what number shown on display. Then warm up the sensor with fingers or soldering iron. The numbers should be arround 600 for 30degC and 700 for 35degC and so on....
This compiled HEX test your PORTA.6 (pin 15) on your PIC if is it wired right.
It switch ON and OFF the relay five times, on LCD write: Rele ON if activate the pin
and Rele OFF when deactivate the...
Here is the compiled HEX file. Take it in to your programmer and program your PIC. It must run.
What kind of programmer do you use? What is your programming process?
First you compile in MCSP and then take the compiled HEX file and program to PIC with your picprogrammer? Or? How you program...
Yes. And now it runs OK?
and if you take away the config part, it compiles without errors?
Copy and paste this, and try to compile.
define osc 4
adcon1.7=1
ANSEL = %000001 'Disable Inputs Tranne AN0
OSCCON =...
did you have set the correct microcontroller to 16F88 in microcodestudio?
I think, You want this:
https://www.youtube.com/watch?v=nm7L-FTlR2M
Here is a Richard's corrected and tested code. I hope it will be works:
...
Try this:
'****************************************************************
'* Name : 16F88_LM235.BAS *
'* Author : ...
Pplease post the whole code.
Try this:
INTCON = 0 ' NO INTERRUPT
ADCON1 = %10001110 '
ADCON0 = %000101 'Disable Converter Module
ANSEL = %00000001 'Disable Inputs Tranne AN0
OSCCON = %01100000 'Internal RC set to 4MHZ...