Hello,
I am working on replacement tachometer for a 30Yr old lathe that im helping rebuild. I am planning on using a hall sensor pickup and a 4x7-seg display readout. The system needs to read from 10Rpm to 5000Rpm, the hall pickup is from a 30 tooth gear.
I have had experience writing assembly for mega128 mC's although its been a few years. This will be my first venture into PIC land.
From reading around it looks like a PicKit 2 is a well regarded programmer / debugger?
I am also considering a PIC16F886 as I would like a chip with an internal oscillator, as well as comparator and 16-bit timer.
The main function would increment a count variable everytime a comparator interrupt occurs from the hall sensor.
I would like to update the display every .5 sec, so i have been planning on using a timer that would interrupt after this long. At the timer interrupt the current count value will be fed into a LUT function using "case" statements that will output the binary to drive the 7-seg's from the current count.
The 7-segs will then be updated and the 7-segs cleared.
Does this sounds like an efficient way of accomplishing my goal with using this chip?
Also, I would like a resolution of 5rpm, this would result with almost 1000 values in that LUT, I am concerned that this will not fit within this device, as the binary values for the display alone will be almost 16kb. How can i translate this into program memory requirements to size my device?
I am working on replacement tachometer for a 30Yr old lathe that im helping rebuild. I am planning on using a hall sensor pickup and a 4x7-seg display readout. The system needs to read from 10Rpm to 5000Rpm, the hall pickup is from a 30 tooth gear.
I have had experience writing assembly for mega128 mC's although its been a few years. This will be my first venture into PIC land.
From reading around it looks like a PicKit 2 is a well regarded programmer / debugger?
I am also considering a PIC16F886 as I would like a chip with an internal oscillator, as well as comparator and 16-bit timer.
The main function would increment a count variable everytime a comparator interrupt occurs from the hall sensor.
I would like to update the display every .5 sec, so i have been planning on using a timer that would interrupt after this long. At the timer interrupt the current count value will be fed into a LUT function using "case" statements that will output the binary to drive the 7-seg's from the current count.
The 7-segs will then be updated and the 7-segs cleared.
Does this sounds like an efficient way of accomplishing my goal with using this chip?
Also, I would like a resolution of 5rpm, this would result with almost 1000 values in that LUT, I am concerned that this will not fit within this device, as the binary values for the display alone will be almost 16kb. How can i translate this into program memory requirements to size my device?