• Scam Alert. Members are reminded to NOT send money to buy anything. Don't buy things remote and have it shipped - go get it yourself, pay in person, and take your equipment with you. Scammers have burned people on this forum. Urgency, secrecy, excuses, selling for friend, newish members, FUD, are RED FLAGS. A video conference call is not adequate assurance. Face to face interactions are required. Please report suspicions to the forum admins. Stay Safe - anyone can get scammed.

Tachometers

@whydontu - look what I found. Somebody who has direct access to the Arduino Interrupts and timers....

Arduino Interrupts
That’s going to take some digesting. Fall project, maybe.
 
That’s going to take some digesting. Fall project, maybe.

Yup, for me too! But the article just made my digesting sooooo much easier! This is exactly what I wanted to know how to do. Like you, I plan a dive deep this fall too - right after harvest and plowing is done! If the learning works out like I hope, it will break the Arduino speed door WIDE open for both of us!

It's hard to believe that such a perfect article showed up in my google feed! Google isn't just listening, she is thinking! (I have very mixed emotions on that.....)
 
might need to go farther afield, since I’d like more than two interrupts so I can use rotary encoders for HMI devices.

Not saying the ESP32 wouldn't do a better job....

But I think the article is just showing how to access the timers and Interrupts directly. I would think the rest of the hardware can be accessed the same way.
 
might need to go farther afield, since I’d like more than two interrupts so I can use rotary encoders for HMI devices. So I looked at this


32 interrupts, WiFi, ble, bluetooth, lots of RAM, 33-bit, freeRTOS, and $13.

down another computer rabbit hole we go!

Here is another option. It's much more expensive but adding WiFi and Bluetooth adds a crap load of capability.


Note - that is US dollars.

One of the things I'd like to do is to solve my access to the spindle problem to pickup rpm on my mill. I can do it if I take my mill head apart, but that will be a long ways from now and I'd like RPM sooner. I've been thinking about sensing motor or bull gear rpm and then multiplying that by the ratio to get rpm. An Arduino could do the calculation. Depending on where the physical rpm is measured, i might need a small bank of switches to tell the Arduino which pulleys are being used and whether or not the back gear is engaged.

Anyway like you - other than simple research, all this has to wait till the snow flies.
 
I would think the rest of the hardware can be accessed the same way.
Yes, the AVR microcontrollers are really easy that way. The data sheets are pretty clear, and with built-in pull-up resistors they are really easy and forgiving to wire up.
 
The data sheets are pretty clear, and with built-in pull-up resistors they are really easy and forgiving to wire up.

Thanks for that Paul! I had not realized that the pull-up resistors are already on board! Having one less thing to wire up is always a good thing.

If only they added analog output instead of pulse width.
 
Thanks for that Paul! I had not realized that the pull-up resistors are already on board! Having one less thing to wire up is always a good thing.

If only they added analog output instead of pulse width.
As usual check your particular part, your mileage may vary, etc.
But you know that :-)
 
Back
Top