Hello all,
I am using the Adafruit Assembled Data Logging shield.
In my case, one temperature sensor is attached on a stepper motor.
I want to run the motor every 1 hour for three rounds and meanwhile also collect/log sensor data.
There is one RTC on the Adafruit Data Logging shield.
Can you please provide an example how to execute the motor and log data every 1 hour based on the RTC?
The log file will be named by the current date/time.
Thanks a lot.
It is appropriate that you attempt to get things working and then come here when it does not.
I would offer that adafruit offers a pretty complete tutorial on most of the products they sell. you should be able to get up and data logging and RTC'ing and stepping in short order.
Hello all:
Please take a look my simple code attached.
The only problem I have now is the sensor readings cannot be saved to the log file.
Any suggestions?
Thanks for your help.
WindSensor_Logger.ino (4.3 KB)
use the adafruit tutorial and only try to get the card to write.
once you can wite to the card, then add the bits about steppers.
Hello all,
I have a sensor attached with a stepper motor. This stepper will rotate and sensor readings will be printed out/logged. I see several posts are suggesting to use millis() for multitasking.
I just wonder there might be alternative ways to get sensor data when the stepper is running. It doesn't make sense to me I need to know the timing of a stepper motor rather than using its steps in order to get analog outputs.
Please help me on this. Thank you!
@changks, do not cross-post. Threads merged.