We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello!
I'm doing a project using the ADXL335 accelerometer from SparkFun. The actual project I'm using P5 and it's working great. I'm running workshops in parallel and want to demo the chip in real-time but am currently out of time to build something from scratch. I'm desperate for a simple processing (or something else) sketch that takes my x, y, z values being printed to the serial port from Arduino and visualizes them in some way. Can anyone point me to anything that won't need a lot of coding time and effort just now?
Thank you! Claudia
Answers
I use variations on this program:
Sensor:
My Arduino is sending tab-separated lines of data.
Let me know if you have any questions.
I had made a joystick out of that for NFS mostwanted... Basically see which side it is tilted to and use keyPress(key) in robot class mimic the keyboard! You could always create your own game like DXballs that uses arduino as the console... Let me know if you need the code for reference for the NFS thing... it is somewhere deep down in my drive! :p
Cross questioned here . Just mention that in the question so that people from both forums can follow your progress...
Amazing srinag!! It worked almost out of the box - I am putting commas between my values in my arduino code but that was an easy switch. I'm going to play a bit with the visuals but this was an amazing help. One thing that I can probably fix on my own but I don't see the z value showing up - probably difficult to advise without seeing my setup / code, but if you have any thoughts on that let me know. THANK YOU for this - such a big help!
Hello, I use as well the processing code of the “simple accelerometer”. The code is running well and prints out single points of my Arduino MPU5060 acceleration data. The data is changing very quickly, so I need some change of visualization settings. The attached code runes on com7, data split with \t. How can I change the print out settings:
a) Connect every measurement (point) with a line?
b) Change the thickness of the lines or points?
c) Change the range to, + 3000 -> -3000?
Sorry for opening this question twice...
I have gone through your code and your problem. I had not worked so much but i have the some idea about the accelerometer co-ordinates display. For this you have to make changes in the program according tot he speed of your hardware. Change the speed and the thickness of the lines. Also make sure that the line must be connected with the every measurement.
assembling pcb