Search Results - MEL PICBASIC Forum

# Search:

Type: Posts; User: EarlyBird2; Keyword(s):

Page 1 of 4 1

1. ## Thread: DHT22 interface problem

by EarlyBird2
Replies
2
Views
3,012

look here

2. ## Thread: Temperature does not go below 0

by EarlyBird2
Replies
16
Views
12,183

### Re: Temperature does not go below 0

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...
3. ## Thread: Interfacing with Arduino I2C LCD

by EarlyBird2
Replies
47
Views
52,607

### Re: Interfacing with Arduino I2C LCD

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...
4. ## Thread: Interfacing with Arduino I2C LCD

by EarlyBird2
Replies
47
Views
52,607

### Re: Interfacing with Arduino I2C LCD

There is information here.

5. ## Thread: Help with the conversion math

by EarlyBird2
Replies
30
Views
11,480

### Re: Help with the conversion math

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...
6. ## Thread: Help with the conversion math

by EarlyBird2
Replies
30
Views
11,480

### Re: Help with the conversion math

'* Notes : For a 18F1320 and 54AL07H2210 *

was it not?
7. ## Thread: Help with the conversion math

by EarlyBird2
Replies
30
Views
11,480

### Re: Help with the conversion math

PDF works for me.

The sensor is a 0.07 psi low voltage range with output from 0.5-4.5V
8. ## Thread: Help with the conversion math

by EarlyBird2
Replies
30
Views
11,480

### Re: Help with the conversion math

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
...

by EarlyBird2
Replies
19
Views
11,342

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...
10. ## Thread: 12f675 to latch output while it does something else

by EarlyBird2
Replies
24
Views
13,901

### Re: 12f675 to latch output while it does something else

My thinking is that flashing the LED pin affects the RELAY pin therefore they must be connected in some way.
11. ## Thread: 12f675 to latch output while it does something else

by EarlyBird2
Replies
24
Views
13,901

### Re: 12f675 to latch output while it does something else

Check your wiring for a short between LED and RELAY
12. ## Thread: 12f675 to latch output while it does something else

by EarlyBird2
Replies
24
Views
13,901

### Re: 12f675 to latch output while it does something else

Post your code and schematic then I can help.
13. ## Thread: Creative ways to make macros with the least amount of code space

by EarlyBird2
Replies
4
Views
3,728

### Re: Creative ways to make macros with the least amount of code space

Sound easy enough to me.
Looks like a good reason to learn. Let me know if you want me to help.
14. ## Thread: RFID Issues.... HELP !!!!!

by EarlyBird2
Replies
19
Views
9,187

### Re: RFID Issues.... 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...
15. ## Thread: RFID Issues.... HELP !!!!!

by EarlyBird2
Replies
19
Views
9,187

### Re: RFID Issues.... HELP !!!!!

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...
16. ## Thread: RFID Issues.... HELP !!!!!

by EarlyBird2
Replies
19
Views
9,187

### Re: RFID Issues.... HELP !!!!!

' -----[ EEPROM Data ]-----------------------------------------------------

Tag1 DATA "1400434B9C"
Tag2 DATA "1500649EC3"
Tag3 DATA "150063C82C"
Tag4 DATA "X50064A4CA"

' -----[ Program...
17. ## Thread: Truth Tables in PBP

by EarlyBird2
Replies
18
Views
8,203

### Re: Truth Tables in PBP

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...
18. ## Thread: RFID Issues.... HELP !!!!!

by EarlyBird2
Replies
19
Views
9,187

### Re: RFID Issues.... HELP !!!!!

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
19. ## Thread: RFID Issues.... HELP !!!!!

by EarlyBird2
Replies
19
Views
9,187

### Re: RFID Issues.... HELP !!!!!

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
20. ## Thread: RFID Issues.... HELP !!!!!

by EarlyBird2
Replies
19
Views
9,187

### Re: RFID Issues.... HELP !!!!!

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...
21. ## Thread: RFID Issues.... HELP !!!!!

by EarlyBird2
Replies
19
Views
9,187

### Re: RFID Issues.... HELP !!!!!

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
...
22. ## Thread: Truth Tables in PBP

by EarlyBird2
Replies
18
Views
8,203

### Re: Truth Tables in PBP

You are welcome and if you need more help, as always, just ask.

by EarlyBird2
Replies
18
Views
12,388

### Re: A to D reading confusion

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...
24. ## Thread: Truth Tables in PBP

by EarlyBird2
Replies
18
Views
8,203

### Re: Truth Tables in PBP

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...
25. ## Thread: Truth Tables in PBP

by EarlyBird2
Replies
18
Views
8,203

### Re: Truth Tables in PBP

t2 is the timed pin?

is tflag being reset to 0 elsewhere in your code?

Like you I see no problem with this snippet.
Results 1 to 25 of 100
Page 1 of 4 1