The reason I use FreqMeasure and QuadEnc is because they use hardware ( but only on specific pins ) Takes all the fun out of setting up ISR's etc. The hardware does all the work and lets the rest of the code do its thing. but you make a valid...
This is my controller. I could have easily done a touch screen controller, but I like the tactile feel off buttons and knobs.
I went 1000ppr because the stepper motor is closed loop with a 1000ppr encoder. It will be driving a 4mm leadscrew so...
if (FreqMeasure.available()) {
Of course......I knew it would be simple
Yes, I really am using a 1000ppr encoder and the 1ppr resolution for RPM.
Now for the reason.
If you use 1000ppr ( say you use 'A' or 'B' ) the individual pulses or not...
So I tried the serial output example and it worked fine, same hardware and connection
/* FreqMeasure - Example with serial output
* http://www.pjrc.com/teensy/td_libs_FreqMeasure.html
*
* This example code is in the public domain.
*/
#include...
Hi All
I am trying to get an RPM tachometer working for my lathe using FreqMeasure.h
the RPM range will be 1RPM-2000RPM
The encoder is a generic Chinese ( OMRON style ) 1000ppr with A,B & Z. The Z outputs 1 pulse per Rev with 5v output
The enc...
Problem solved.
I used FreqMeasure on pin 22 and QuadEnc on pins 31 & 33 and just shared pin 22 and 31 from the Quad encoder.
works flawless up to 2000rpm and now I get enc posn and RPM and as they use the hardware encoders it lets the program...
I did find Quadencoder, but it was after I had the PCB made, so it is going to make it very hard to use. grrrr
Direction is not a factor for the RPM, but essential for the leadscrew sync
I am not using the SPI bus at this stage so I might be...
I am wanting to get an RPM value from a quadrature encoder that is used to control a stepper motor driving a lead screw on my lathe
Full project
https://github.com/MorryStu/Lathe-controller
Unfortunately I am tight for spare pins on the...
Hi Mark
Thank you for that. I do use indentation, but for some reason, when I pasted it it did its own thing.
I added your changes to readButton() it it worked as intended, as you original thought. The switch,case,break etc was me just trying...
Well so far it is almost doing what I want.
Currently it does not change mode when the respective button is pressed, just stays in "mm" mode and I am not sure why.
The button light does display when the respective button is pressed, but no mode...