look here
http://www.picbasic.co.uk/forum/showthread.php?t=17867
Type: Posts; User: EarlyBird2; Keyword(s):
look here
http://www.picbasic.co.uk/forum/showthread.php?t=17867
A Thermistor changes resistance with temperature change. To read a 'remote' Thermistor a 'completion resistor' (CR), typically 1000 ohms, is used in series and a known voltage is applied to the...
I also found this code written by norohs difficult to work out and eventually I decided that it works more by accident than design and that there has to be a better way of doing this. This is what I...
There is information here.
http://www.picbasic.co.uk/forum/showthread.php?t=19222
Not quite Richard. In theory
0=102.4 at 0.5 volts and 0.07=921.6 at 4.5 volts.
assuming as you say the vref=5 v.
102.4 is the zero offset and 0.07/(921.6-102.4) is the slope.
to convert...
'* Notes : For a 18F1320 and 54AL07H2210 *
was it not?
PDF works for me.
The sensor is a 0.07 psi low voltage range with output from 0.5-4.5V
Is this not a repeat of the left and right output justification as on the previous thread in Richard's link.
7040 left justified is 110 right justified using Henrik's 4.88mV then
...
Hi Andy,
To use the code tags go advanced and use the # icon.
A way forward is to use a bit pattern within a byte simply by indicating . as 0 and - as 1.
this would make S 000 or the whole...
My thinking is that flashing the LED pin affects the RELAY pin therefore they must be connected in some way.
Check your wiring for a short between LED and RELAY
Post your code and schematic then I can help.
Sound easy enough to me.
Looks like a good reason to learn. Let me know if you want me to help.
I am sad to hear this and I feel that I have failed in some way. Never give up in the search for perfection and ignore the defeatists is my advice. So now it works you should have time to try again...
This is exactly what you need to do.
Yes when the DATA places the Tag in the EEPROM the largest number is in 0 and smallest in 9
DATA "1400434B9C"
locatn 0123456789
and when the Tag is...
' -----[ EEPROM Data ]-----------------------------------------------------
Tag1 DATA "1400434B9C"
Tag2 DATA "1500649EC3"
Tag3 DATA "150063C82C"
Tag4 DATA "X50064A4CA"
' -----[ Program...
Good thinking! Maybe I should try Rye.
Obviously you could use all of the upper nibble as flags giving four sets of special cases if you set them as individual bits. By using the upper nibble as a...
Are you sure you can see how it works?
IF ("C" = buf(9)) and ("9" = buf(8))THEN loc1
Looks like
IF ("C" = buf(9)) THEN
IF ("9" = buf(8)) THEN
loc1
ENDIF
What you need to do is
For each id check each character and if one does not match jump out. If all match unlock door.
FOR idx = 0 TO 9 ' scan bytes in tag
READ (((tagNum-1) * 10) +...
But this line
IF (char = buf(idx)) THEN loc1
unlocks loc1 when char = buff(idx)
if you scan any card the first character is 1
the first data character is 1 at buff(0)
therefore they match...
FOR tagNum = 1 to 4 ' scan through known tags
FOR idx = 0 TO 9 ' scan bytes in tag
READ (((tagNum-1) * 10) + idx), char ' get tag data from table
IF (char = buf(idx)) THEN loc1
...
You are welcome and if you need more help, as always, just ask.
Interesting explanation Henrik. I was trying to work out how 0-65535 was achieved knowing that the PIC ADC was 10 bit. Reading the datasheet
I was puzzling over the last word "justification" and...
There are ways around this.
One is to use maths
myvar=PORTA.0+PORTA.1*2+PORTA.4*4+PORTA.5*8
Another way is bit manipulation
myvar=PORTA & %00110011 ' select the input pins
myvar=(myvar...
t2 is the timed pin?
is tflag being reset to 0 elsewhere in your code?
Like you I see no problem with this snippet.