Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    151

    Re: Rotary encoder with DT interrupts

    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...
  2. Replies
    4
    Views
    151

    Re: Rotary encoder with DT interrupts

    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...
  3. Replies
    4
    Views
    151

    Rotary encoder with DT interrupts

    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
    ...
  4. Re: Anyone used smart leds with APA102/SK9822 controller, with Picbasic ?

    I use them a lot. Easy to use in PBP, here some test blinks:


    '****************************************************************
    '* Name : APA LED *...
  5. Replies
    8
    Views
    6,818

    Re: RFID RDM6300 Code.. Sample ?? Anyone ??

    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...
  6. Replies
    6
    Views
    779

    Re: Supress "MSG" in compile

    at the beginning of your code try this:



    @ errorlevel -306
  7. Re: Ultrasonic sensor, serial communication.

    Thanks Henrik,

    It works.

    How simple and elegant solution.
  8. Ultrasonic sensor, serial communication.

    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:...
  9. Replies
    46
    Views
    6,613

    Re: Can PBP read optical encoder damn fast? :)

    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
  10. Replies
    7
    Views
    2,606

    Re: Value of temperature

    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...
  11. Replies
    68
    Views
    8,217

    Re: Compare value ...

    Do you think the op just troll us?
  12. Replies
    68
    Views
    8,217

    Re: Compare value ...

    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...
  13. Replies
    68
    Views
    8,217

    Re: Compare value ...

    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...
  14. Replies
    68
    Views
    8,217

    Re: Compare value ...

    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...
  15. Replies
    68
    Views
    8,217

    Re: Compare value ...

    on 10bit adc?
  16. Replies
    68
    Views
    8,217

    Re: Compare value ...

    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 =...
  17. Replies
    68
    Views
    8,217

    Re: Compare value ...

    I'm just curious, can you please try this hex, is It working OK?
  18. Replies
    68
    Views
    8,217

    Re: Compare value ...

    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:
  19. Replies
    68
    Views
    8,217

    Re: Compare value ...

    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...
  20. Replies
    68
    Views
    8,217

    Re: Compare value ...

    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....
  21. Replies
    68
    Views
    8,217

    Re: Compare value ...

    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...
  22. Replies
    68
    Views
    8,217

    Re: Compare value ...

    Here is the compiled HEX file. Take it in to your programmer and program your PIC. It must run.
  23. Replies
    68
    Views
    8,217

    Re: Compare value ...

    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...
  24. Replies
    68
    Views
    8,217

    Re: Compare value ...

    Yes. And now it runs OK?
  25. Replies
    68
    Views
    8,217

    Re: Compare value ...

    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 =...
Results 1 to 25 of 91
Page 1 of 4 1 2 3 4