GeoGebra Printer
Want to get some sensor data to the GeoGebra (.ggb) format? Follow these 7 easy steps!
- Copy the
geogebra_printer.ino
to 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.py
Python 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.txt
and run the script without any arguments, the defaults areserial.txt
andoutput.ggb
. - Done! You can open the
output.ggb
in GeoGebra and do whatever analysis you’d like.