Help needed with magnetometer coding.
i trying make sensor hmc5883l magnetometer detect change in magnetic field , send serial message when change. i'm trying go tracking first reading of sensor , compare recent reading. problem can not figure out how save first variable compare new readings. appreciated.
typically would, in setup(), call function reading , save reading in global variable. give try , if can't work, post code.
Arduino Forum > Using Arduino > Programming Questions > Help needed with magnetometer coding.
arduino
Comments
Post a Comment