Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. Re: How to get encoder direction and speed / rpm ? ( with DT INT ?)

    I can find direction with this code:

    A tied to portb.4
    B tied to portb.5

    Direction = portb.5 ^ portb.4
    lcdout $FE,1,DEC(Direction)


    but, the reading is NOT consistent , if I turn...
  2. Re: How to get encoder direction and speed / rpm ? ( with DT INT ?)

    I thought about that , but I worried about DT-INT would block it in the process

    is it possible to put this in-line with speed detecting process ?
  3. Re: How to get encoder direction and speed / rpm ? ( with DT INT ?)

    i am not quite clear about it, is it something like this ? :

    porta =00000001 direction is clockwise
    porta =00000010 direction is counter clockwise

    what happen with the direction WHILE the...
  4. Re: How to get encoder direction and speed / rpm ? ( with DT INT ?)

    Hahaha, yes indeed 18F2431 would be overkill :)

    Okay, the issue with rpm is clearer now, but what about direction ?
  5. Re: How to get encoder direction and speed / rpm ? ( with DT INT ?)

    Thank Henrik !

    I am planning to use 16F88 , but I will look at 18F2431 as your suggestion

    As for the speed , it just 0 - 10 rpm max , with 100 count encoder.

    The pic will then output led...
  6. How to get encoder direction and speed / rpm ? ( with DT INT ?)

    Is there any simple way (minimum code) to get encoder direction and speed / rpm , not position ?

    Encoder is incremental type , output are A,B,Z

    I am thinking about using DT INT , but not sure...
  7. Replies
    2
    Views
    2,182

    Re: Help : Byte calculation question

    Ok, it works now . Thank you Aratti
  8. Replies
    2
    Views
    2,182

    Help : Byte calculation question

    how to get result C ?
    C shall be byte size integer

    input :
    A : byte , function as a ratio to B
    B : byte

    output:
    C : byte
  9. Re: Need help: 16f722a : Failed to blink on portc.3

    SOLVED:
    It was a bad solder :)

    Sorry
  10. Need help: 16f722a : Failed to blink on portc.3 - SOLVED

    I tried to blink a LED on portc.3 ( only on this port ) unsuccesfully.
    Blinking on all other ports ( even on other portc ) were not a problem, so I must be missing something.
    Any clue ?
  11. Replies
    5
    Views
    3,652

    Re: Zener on input pin OK ?

    Thank you Charles, great information :)

    I will not use zener as it is not required now
  12. Replies
    5
    Views
    3,652

    Re: Zener on input pin OK ?

    I am wondering , what will happen when a millisecond peak voltage above the zener limit hit the analog pin ?
  13. Replies
    5
    Views
    3,652

    Zener on input pin OK ?

    I want to limit the voltage on analog input pin, can I use a zener diode ?
    my setup is as follow : v in ---> opamp --> rc filter ---> PIC
    does it have side effect if I put zener between RC and...
  14. Replies
    10
    Views
    6,691

    Re: PBP 2.50 with 16F722A

    Thank you comrades, I will place an order for 16F722A tomorrow :D

    As for the upgrade, I would like to upgrade to PBP3 Gold, but I bought my PBP from digikey, and melabs said on their website that...
  15. Replies
    10
    Views
    6,691

    Re: PBP 2.50 with 16F722A

    The device is virtually same, please take a look :

    http://www.microchip.com/wwwproducts/ProductCompare.aspx?product1=PIC16F722&product2=PIC16F722A

    As PBP 2.50 has no INC file for 16F722A , can...
  16. Replies
    10
    Views
    6,691

    PBP 2.50 with 16F722A

    I am planning to use 16F772A for my application.

    I see PBP can handle 16F772 ( not A ) , question is, can PBP 2.50 handle this chip?

    Thank you
  17. Replies
    3
    Views
    3,831

    Hi Ioannis, My application is simple, it just...

    Hi Ioannis,
    My application is simple, it just read the potentiometer / analog pins and then output the pulse accordingly.
    Usually I put a hardware RC filter between the pots and the pins. It serves...
  18. Replies
    3
    Views
    3,831

    Need help on ADC : Software R/C filter

    Instead of hardware R/C filer to delay ACD input, is it possible to do it with PBP ?
  19. Replies
    6
    Views
    19,957

    You should use temporary counter like this: ...

    You should use temporary counter like this:

    start:
    button blabalabla... click
    if a= 1 then blablabla
    etc..
    goto start:

    click:
    a=a+1
  20. Replies
    6
    Views
    4,844

    Thanks Bruce, I will go with 2431. Have a nice...

    Thanks Bruce, I will go with 2431. Have a nice day !
  21. Replies
    6
    Views
    4,844

    Thanks guys :) I am experimenting with both...

    Thanks guys :)

    I am experimenting with both PICs , both system run well as expected

    Beside those hardware specific features, is the CPU utilization lower with power control pwm compared to...
  22. Replies
    1
    Views
    4,104

    PIC 18F2331 has feedback input and 8 power...

    PIC 18F2331 has feedback input and 8 power control pwm. This is suitable to your need.
    As for usb connection to VB, just use normal usb to serial cable. This way you do not need to learn usb .
  23. Replies
    6
    Views
    4,844

    CCP vs power control PWM

    If 3 hardware pwm output needed and we have to choose between a 16F737 ( 3 ccp pwm ) and a 18F2431 ( 6 channel/ 3 pair power control pwm )

    Which one is better ? Why ?
  24. Replies
    10
    Views
    4,863

    thanks Kamikaze After few hours trying any...

    thanks Kamikaze

    After few hours trying any possible setup, I solved the problem

    The problem is with HSPLL config.

    If I change the config to:
    _FOSC_HS_1H
    define osc 10, it works
  25. Replies
    10
    Views
    4,863

    I changed my code to : main: LCDOUT $FE, 1...

    I changed my code to :


    main:
    LCDOUT $FE, 1
    LCDOUT $FE, $C0, "test"
    hserout ["test" ]
    pause 1000
    goto main
Results 1 to 25 of 52
Page 1 of 3 1 2 3