I can't figure out how to edit my post. Correction: "I hope this gives you some direction."
Type: Posts; User: chips123; Keyword(s):
I can't figure out how to edit my post. Correction: "I hope this gives you some direction."
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...
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...
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. ...
In this thread, Lester discussed using AND gates and Darrel Taylor has another approach. Thanks guys and the Darrel Taylor LCD bargraphs are great!
...
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...
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...
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,...
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...
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...
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...
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...
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...
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...
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...
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.
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...
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...
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.
I am a bit of a rookie. Some direction would be much appreciated.
With my millisecond values are integers, I don't expect 100% accuracy. Using PBP, how do I get from say, 16mS to 62Hz ?
Scott
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...
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...