After becoming frustrated with the lack of support for internal interrupts, I made code to do it myself. I used this mostly for sensor readings and the encoders for the DFRobotShop Rover v2. I thought that I may as well share it for others to learn from.
thcode.co.uk/projects-2/ardu … hop-rover/
It should be basic enough for people with a little programming experience.
Please let me know what you think.
Tom.
Hi Tom,
Great work on your code for interrupt driven ADC and the PID control.
You may want to consider making this code into an Arduino library package for ease of integration. Here is some information about it here and here.
Also, since you have a working robot project, it would be interesting to see it in a video, maybe showing the difference between movement with the PID enabled and disabled.
Keep up the good work!
Sincerely,