Hi,
I would like to modify the PJRC freqMeasure library to measure frequencies up to, or possibly slightly exceeding, 16 KHz. I would like to set count > 800. I am using an Atmega328p microcontroller on a custom board with a high stability 16 MHz clock. If someone could tell me if this is possible and provide me with suggestions on where to start or what needs to be changed, I would be very appreciative. I am aware that PJRC has another library that is more suitable for this frequency but I am interested in being able to set the number of edges that are counted instead of setting a fixed period. I am trying to control the frequency of a spinning object and would like to be able to detect that the frequency is changing and apply fixes as quickly as possible. I think the fixed number of edges approach will be better in this application.
Thank you,
Greg
I would like to modify the PJRC freqMeasure library to measure frequencies up to, or possibly slightly exceeding, 16 KHz. I would like to set count > 800. I am using an Atmega328p microcontroller on a custom board with a high stability 16 MHz clock. If someone could tell me if this is possible and provide me with suggestions on where to start or what needs to be changed, I would be very appreciative. I am aware that PJRC has another library that is more suitable for this frequency but I am interested in being able to set the number of edges that are counted instead of setting a fixed period. I am trying to control the frequency of a spinning object and would like to be able to detect that the frequency is changing and apply fixes as quickly as possible. I think the fixed number of edges approach will be better in this application.
Thank you,
Greg