Comments (5)
from esp32encoder.
from esp32encoder.
thanks for your quick reply,
I did noticed that attachSingleEdge function, but one question:
Since I only got one signal pin, but which pin should I put into bPinNumber ?
thanks again.
from esp32encoder.
huge Thanks!
from esp32encoder.
Hello, I got error when ESP32 booting, in serial.
E (719) pcnt: pcnt_unit_config(57): PCNT pluse input io error
E (720) pcnt: pcnt_unit_config(57): PCNT pluse input io error
E (720) pcnt: pcnt_unit_config(57): PCNT pluse input io error
E (725) pcnt: pcnt_unit_config(57): PCNT pluse input io error
ESP32 does keep running. Any idea what cause this error? Does some GPIO I can't use?
Thanks.
Code I use:
#include <ESP32Encoder.h>
ESP32Encoder encoder_speed;
ESP32Encoder encoder_rpm;
//in setup:
ESP32Encoder::useInternalWeakPullResistors = UP;
encoder_speed.attachSingleEdge(27, 27); // SPD
encoder_rpm.attachSingleEdge(34, 34); // RPM
//in loop:
PulseCounter_SPD = (int32_t)encoder_speed.getCount();
PulseCounter_RPM = (int32_t)encoder_rpm.getCount();
from esp32encoder.
Related Issues (20)
- Trouble with RPM calculation HOT 2
- cannot even compile example for regular esp32 dev board HOT 7
- ESP32Encoder::useInternalWeakPullResistors = DOWN does not work
- Compilation fails in Arduino IDE 2.0 for esp32c3 HOT 2
- esp32s3 crashes with Encoder.ino HOT 1
- A simple example of using the library HOT 2
- PCNT issue using FastAccelStepper 0.28.1 with ESP32Encoder 0.10.1 + workaround
- Not compiling for ESP32-S2 HOT 3
- Compile error 0.10.0 and 0.10.1 HOT 6
- Encoder Library with PCNT as Frequency Counter
- Function working and direction HOT 6
- Encoder not working in IO2, IO4. HOT 3
- Compile fails with soc.h not found HOT 5
- Not working with tasks HOT 1
- Compiling error HOT 12
- Attach Single edge problem HOT 1
- ESP32-C3 compile fail
- setCount after setup() HOT 2
- Encoder get difference from last read HOT 1
- Definition of NONE confliccts with other libraries
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 esp32encoder.