GeoGebra Printer
Want to get some sensor data to the GeoGebra (.ggb) format? Follow these 7 easy steps!
- Copy the
geogebra_printer.inoto your project folder. - Make sure you’ve enabled Serial printing. (Eg. by calling
Serial.begin(9600)in thevoid setup()) - Use the
printGeoGebraPoint(float x, float y)function to record a sample. (Eg.printGeoGebraPoint(millis() / 1000.0, 1.0)would output a data point with the x value of the current time (in seconds) and the y value of 1.0) - Run your Arduino for a while, gather the samples.
- Copy the Serial Monitor contents to a text file, eg.
serial.txt. - Run the
makeggb.pyPython script with the name of the text file and the name of the output .ggb file as arguments. (Eg.python makeggb.py serial.txt output.ggb) Note: You could just name your fileserial.txtand run the script without any arguments, the defaults areserial.txtandoutput.ggb. - Done! You can open the
output.ggbin GeoGebra and do whatever analysis you’d like.