Search Results - MEL PICBASIC Forum


Search:

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

Search: Search took 0.00 seconds.

  1. Replies
    20
    Views
    10,259

    Re: Cruise Control

    I can't figure out how to edit my post. Correction: "I hope this gives you some direction."
  2. Replies
    20
    Views
    10,259

    Re: Cruise Control

    Below is a snippet. I did this a long time ago, so it is not that fresh in my mind.

    Remember that it does not give you the speed or the time between pulses directly. It provides the number of...
  3. Replies
    20
    Views
    10,259

    Re: Cruise Control

    I would think you would only need one ccp. You are just trying to monitor the one thing, vehicle speed. The smoothing out part is a whole other portion of code, I presume. That is where the...
  4. Replies
    20
    Views
    10,259

    Re: Cruise Control

    I am pretty much a rookie. I have to second the CCP (runs in the background) method. I was doing a speedometer project a while back and started with count, then pulsein, then looked at interrupts. ...
  5. Replies
    3
    Views
    3,090

    Re: LCDOUT and 4 *40 displays

    In this thread, Lester discussed using AND gates and Darrel Taylor has another approach. Thanks guys and the Darrel Taylor LCD bargraphs are great!
    ...
  6. Replies
    3
    Views
    3,090

    LCDOUT and 4 *40 displays

    I have a 4 line by 40 character LCD that I am wondering how painful it may be to use. Since it has two enable lines, I ran them together and, of course, I have 2 identical 2 * 40 displays. My first...
  7. Replies
    2
    Views
    2,438

    I got it figured out. I needed to get my port...

    I got it figured out. I needed to get my port bits and ANDING to coorelate correctly. I did have the CMCON and ANSEL set correctly. I am using a rotary binary switch with the common pulled to 5V...
  8. Replies
    2
    Views
    2,438

    PortA input and outputs

    I am using a 16F676 with all of PORTC and PORTA.0 driving a 7 segment display. All is fine if I simply display a digit or count up. I would like to read a dip switch using 4 other bits of PORTA,...
  9. Replies
    1
    Views
    2,836

    OK. I got it to work as expected. I had no...

    OK. I got it to work as expected. I had no config commands regarding the comparators and analog inputs. I disabled the comparators and set the inputs to digital and both types of LCDs act the...
  10. Replies
    1
    Views
    2,836

    Strange LCD Behavior

    Greetings, I have been successfully using several different LCD modules from several different manufacturers. Of course, I ran into an issue. I have an existing circuit using a 16F676 that seems...
  11. Replies
    9
    Views
    5,722

    I put the new overflow checking inside the little...

    I put the new overflow checking inside the little delay loop (delay value was shortened) of the main loop and the results seem right. I need to verify w/ scope. I have been meaning to check out the...
  12. Replies
    9
    Views
    5,722

    I thought about this some more and thought that I...

    I thought about this some more and thought that I came to the conclusion that I should do it in the main loop. When I used the y=y+525 in the interrupt routine, it only worked for the first timer...
  13. Replies
    9
    Views
    5,722

    Aratti, I think I understand the concept, but...

    Aratti,
    I think I understand the concept, but where would I put the variable increment in my code example? In the main loop, or something in the interrupt routine? That is basically what I was...
  14. Replies
    9
    Views
    5,722

    "Extending" timer1

    Greetings all, this forum has been a great source of info, so thanks!

    I am doing the speed, miles thing as shown in the following code. This works great until I slow to around 9 mph, then the...
  15. Replies
    1
    Views
    2,652

    16F684 - Capture - Timing - Counting

    I have done a bit with interrupts, but am new to the CCP feature. I am looking to use "capture" to measure a shaft revolution time. In addition, I need to count the shaft revolutions (1 pulse per...
  16. I would think some diode isolation with a pull-up...

    I would think some diode isolation with a pull-up on the PNP base and a pull-down on the NPN base. Something along those lines anyway.
  17. Replies
    22
    Views
    11,520

    Russ...The 60000 math thing worked great. The...

    Russ...The 60000 math thing worked great. The digits changing on the LCD actually looks quite natural and "smooth". It doesn't look jerky. It is faster that you can read.

    I applied all of...
  18. Replies
    22
    Views
    11,520

    Thanks Andy.....kick, kick, kick... And...

    Thanks Andy.....kick, kick, kick...
    And Russ...equally good insight. I'll kick myself once for you too.
    Almost too obvious, I have been away from math for too long.

    Kamikaze...I tried your...
  19. Replies
    22
    Views
    11,520

    Thanks. A bunch of if-thens came to my mind as...

    Thanks. A bunch of if-thens came to my mind as well. I just was not sure about it. I think I'll try it.
  20. Replies
    22
    Views
    11,520

    I am a bit of a rookie. Some direction would be...

    I am a bit of a rookie. Some direction would be much appreciated.
  21. Replies
    22
    Views
    11,520

    With my millisecond values are integers, I don't...

    With my millisecond values are integers, I don't expect 100% accuracy. Using PBP, how do I get from say, 16mS to 62Hz ?

    Scott
  22. Replies
    22
    Views
    11,520

    Thanks for the reply. I made all variables...

    Thanks for the reply.

    I made all variables words to give myself plenty of room, at least for now.
    Ultimately, I want to get to pulses per minute, ie. RPMs with a range from maybe 240 RPM (4...
  23. Replies
    22
    Views
    11,520

    Converting milliseconds to frequency

    I have code written to measure the time period of a square waveform using pulsin . I measure the low time and the high time and add them together and send it to an LCD. It is quite accurate...
Results 1 to 23 of 23