Brilliant setup, marvellously simple. Reminds me of a project I did for A-level with a PIC, that had a lower resolution still (8 bits, and at half the refresh rate as I had 2 inputs) to make like a graphics digitiser with a couple of pots measuring angles.
The Processing application is the key here, you've got very smooth plotting going on there, which is fantastic.
To those of you complaining it doesn't work:
Download the file and open it in Processing, then scroll down to the bottom of it, copy the code in the bit marked "// The Arduino code." into a new Arduino project and send that to your board. I then also had to look in the Tools -> serial port menu in the Arduino application to determine which serial port I was using. My port is the 5th one down, so that's number 4 (you start counting at 0). Then I went back to the Processing code (after quitting the Arduino application) and changed the line:
port = new Serial(this, Serial.list()[0], 9600);
so it read:
port = new Serial(this, Serial.list()[4], 9600);
Then after clicking Run in the toolbar it worked fine. :-)
Planning any additions or is this just proof of concept? I'd love to see some sort of scale, some controls to change refresh rate/voltage divisions?
Fantastic! (after a small change to the code)
Brilliant setup, marvellously simple. Reminds me of a project I did for A-level with a PIC, that had a lower resolution still (8 bits, and at half the refresh rate as I had 2 inputs) to make like a graphics digitiser with a couple of pots measuring angles.
The Processing application is the key here, you've got very smooth plotting going on there, which is fantastic.
To those of you complaining it doesn't work:
Download the file and open it in Processing, then scroll down to the bottom of it, copy the code in the bit marked "// The Arduino code." into a new Arduino project and send that to your board. I then also had to look in the Tools -> serial port menu in the Arduino application to determine which serial port I was using. My port is the 5th one down, so that's number 4 (you start counting at 0). Then I went back to the Processing code (after quitting the Arduino application) and changed the line:
port = new Serial(this, Serial.list()[0], 9600);
so it read:
port = new Serial(this, Serial.list()[4], 9600);
Then after clicking Run in the toolbar it worked fine. :-)
Planning any additions or is this just proof of concept? I'd love to see some sort of scale, some controls to change refresh rate/voltage divisions?
Looking good though!