ATmega1284P - arduino uno pro- freq count
hi
did try read frequencies on arduino uno pro? http://www.hobbytronics.co.uk/arduino-uno-pro
i using freqcounter.h
i have had included atmega1284p ( guide on site above)
but no input readings
code
does know change in freqcounter.cpp?
thank you
svato
did try read frequencies on arduino uno pro? http://www.hobbytronics.co.uk/arduino-uno-pro
i using freqcounter.h
i have had included atmega1284p ( guide on site above)
but no input readings
code
code: [select]
#include <freqcounter.h>
#include <wire.h>
#include "rtclib.h"
#include <spi.h>
#include <sd.h>
#include <pinchangeint.h>
float frq,fdbm, bdbm;
void setup() {
serial.begin(57600);
serial.println("frequency counter");
}
void loop() {
//pcintport::attachinterrupt(5, measure, rising);
measure();
}
void measure(){
//pcintport::detachinterrupt(5);
delay(10);
freqcounter::f_comp = 1;
freqcounter::start(10);
if (freqcounter::f_ready == 0)
frq = freqcounter::f_freq; // read result
frq = frq - (frq * 0.00034);
frq = frq * 100 * 80;
serial.println(frq);
fdbm = analogread(a2) * 5 / 1023;
bdbm = analogread(a3) * 5 / 1023;
}
does know change in freqcounter.cpp?
thank you
svato
Arduino Forum > Using Arduino > Microcontrollers > ATmega1284P - arduino uno pro- freq count
arduino
Comments
Post a Comment