Hi Richard, sorry for later response. Thanks for pointing me in to right way how to do it. Your first method not works for me, the second method polling works just fine but slows down the response...
Type: Posts; User: louislouis; Keyword(s):
Hi Richard, sorry for later response. Thanks for pointing me in to right way how to do it. Your first method not works for me, the second method polling works just fine but slows down the response...
Cool, thanks. Both pbp,asm version works. Anyway, I tried two encoder types which I had on hand. Both works, but one count two counts to one detent, and the second count four to one detent.
I tried...
Hi All,
I'm struggling around rotary encoder with push button. I read the forum but not find any successfully solved example.
Here is my code:
; PIC16F1847
...
I use them a lot. Easy to use in PBP, here some test blinks:
'****************************************************************
'* Name : APA LED *...
Hi Folks,
I started to play with this RFID reader. For beginning I try to create a simple TAG reader and show the tag number on NOKIA LCD. I can read the tag and display it, but I can't extract the...
at the beginning of your code try this:
@ errorlevel -306
Thanks Henrik,
It works.
How simple and elegant solution.
Hi Folks,
I need a little help with this task. I want to read data from Ultrasonic distance meter which put out every 100ms serial data.
The protocol is here:
8945
The captured data looks like:...
For optical encoder I use this:
; PIC18F4520
DEFINE OSC 4
INCLUDE "DT_INTS-14.bas" ; Base Interrupt System
INCLUDE "ReEnterPBP.bas" ; Include if using PBP interrupts
Everything is solved in previous thread.
Did you read this?
http://www.picbasic.co.uk/forum/attachment.php?attachmentid=8825&d=1586510417
This is the working code for LM335 probably for LM235...
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 =...