Comments (2)
Hi marwand,
The smartport use a cyclic pull of addresses, which triggers the answer.
But you don't want this.
The EagleTree RPM sensor gives a pulse at every rotation. It is very
basic, as any hall effect or optical sensor does.
Here is some part of code I did write for a simple RPM counter. I've
modified it to print the RPM on serial once per second. I think it will
fit better you needs.
Regards, Jean-Christophe Heger
#define RPM_PIN 2
unsigned long sum = 0;
unsigned long count = 0;
void setup() {
Serial.begin (115200);
pinMode (RPM_PIN, INPUT);
attachInterrupt (0, rpmISR, RISING);
}
void loop() {
float freq;
unsigned int rpm;
delay (1000);
detachInterrupt (0);
freq = (sum) ? ((float) count * 1000000.0 / (float) sum) : 0.0;
rpm = int (freq * 6.0) * 10;
Serial.println (rpm);
sum = 0;
count = 0;
attachInterrupt (0, rpmISR, RISING);
}
void rpmISR () {
static unsigned long last_micros = 0;
if (last_micros) {
sum += micros () - last_micros;
count++;
}
last_micros = micros ();
}
Le 24. 12. 15 12:04, marwand a Γ©crit :
Hello jcheger,
This is more of a question than an issue and I apologize for
contacting you this way I was wondering if the arduino can read rpm
without having the smart port connected I have an eagle tree brushless
rpm sensor and everything is connected according to the diagram
provided (except the smart port) and I'm getting no output from the
arduino I suspect that the smart port is needed because of the line
[FrskySP FrskySP (10, 11);] Also, is all the decoding happening
through the smart port? Is there any way around it? Finally, can I get
more information about the smart port?Thank you very much & I appreciate your help
β
Reply to this email directly or view it on GitHub
#4.
from frsky-arduino.
Thanks a lot man. Hope you're enjoying your holidays!
from frsky-arduino.
Related Issues (2)
- Cells and Cell HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from frsky-arduino.