Hello Arduino folks
I’m writing my bachelor in mechanical engineering, and I’m building a test bed for measuring impact forces and energy absorbing abilities. It this process, I have to measure angular velocity of a part and to do so I have chosen a rotary encoder together with an Arduino mega 2560. The problem is just; I’m totally new at programming, and don’t got the time to “fully” understand the coding language. My question is. Do you know where I can find an already complete code for measuring angular velocity? Which I can use to get inspiration from? The encoder is an old Leine & Linde AB, with 500 ppr, and runs on 24V (I have used voltage regulators to get an input on 5V). The velocity won’t exceed 5 rad^-1. I have tried some of the codes from the “get started”, and they all work nicely, expect that it seems the Arduino cannot keep up with the impulses it gets from the encoder, could this be the case? Do any of you happen to have a code that works for something like this? If would be much appreciated.
Best regards Mads Larsen