The first (extreme beta) version of the PID Front-End is up on the pid library page. It makes adjusting an Arduino PID much, much easier. The download includes the processing sketch (of course.) It also has an Arduino sketch showing how to send/receive on that end.
Links:
Download UPDATE: Download
PID Library Page
Arduino Forum Thread
Thanks for all your hard work, even if some of it involved a hammock. I’m a tinkerer with no formal education in electronics but have created a couple of Arduino projects that wouldn’t have been possible without the contributions of people like you. I’ve recently purchased a RoboCylinder linear actuator off ebay and am working on figuring out how to implement control of it through an Arduino. That is how I came across your PID work. I’ve got a long way to go yet but I wouldn’t even be attempting this project were it not for the open source community. So, you have help to expand my horizons and have brought happiness to the life of a stranger. Many, many thanks.
Hi Brett ! Thanks for your wonderful work 😉
When I try to run the front end I´m getting the following errors ( any hints on how to fix it ? ):
WARNING: RXTX Version mismatch
Jar version = RXTX-2.2pre1
native lib Version = RXTX-2.2pre2
[0] “COM1”
Exception in thread “Animation Thread” java.lang.ArrayIndexOutOfBoundsException: 1
at PID_FrontEnd_v02.setup(PID_FrontEnd_v02.java:117)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
Sorry about that Jorge. the download link was pointing to an older version of the front-end. it has been fixed.
hi Brett,
excellent job, i have lots of questions but i’ll shoot one…
i’ve got processing running your code and it gives me the graph,
i’ve loaded the sample code to the arduino, and i get the values on the terminal, but the graph does not show anything.
any idea?
cheers
The only thing I can think of is that the values that are coming back don’t fall within the range being graphed. Take a look at the Min Max limits at the beginning of the processing code and make sure that the values coming back from the arduino fall within those ranges.
thanx for the reply,
since am using both sample codes (for arduino board and for processing)
from your download, should’t that be already sorted?
still a newbee here, maybe am missing something else, much simpler.
just to check,
i load the “PID_FrontEnd_ArduinoSampleCode” onto the board,
i then run “PID_FrontEnd_v03” on processing 1.5.1,
at the end of the compilation the graph pops up (empty)
if i check from IDE the serial monitor,
the adruino runs the sketch (although it reboots) and i get data printed
cheers again
great work
nevermind, i got it to graph.
i messed aroung with the com settings.
thanx again for your brilliant work.
now, i’ve got some tuning to do…