Skip to main content
Arduino

Timeline for Store data in flash/EEPROM and process it in parallel

Current License: CC BY-SA 3.0

13 events
when toggle format what by license comment
Apr 23, 2017 at 4:53 history edited dda CC BY-SA 3.0
deleted 1 character in body; edited title
Apr 23, 2017 at 2:51 answer added cjs timeline score: 1
Apr 23, 2017 at 1:12 history bumped Community Bot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Mar 23, 2017 at 22:49 history bumped Community Bot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Feb 21, 2017 at 21:51 history bumped Community Bot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Jan 22, 2017 at 21:50 history bumped Community Bot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Dec 21, 2016 at 12:47 comment added Ayush Thanks a lot. I am going to read more about it and try to implement it.
Dec 21, 2016 at 12:19 comment added Gerben Time between readings is constant in free running mode. I think you can even use a timer to trigger ADC conversions if you need a specific sampling frequency (instead of changing the ADC clock prescaler). You don't need an interrupt for when the buffer is full. Just have the loop check with a if statement if there is enough data in the buffer to start prosessing it. Ideally you'd process the data as it is coming in instead of waiting for a lot of data, and the process I'll this data in one chunk. But this depends on your situation.
Dec 21, 2016 at 10:06 answer added James Waldby - jwpat7 timeline score: 2
Dec 21, 2016 at 9:42 comment added Ayush But will I be able to measure the time between any two reading? I want to get the frequency and so I need the time between any two data which I intend to keep fixed. So to be clear, I should store data by setting clock frequency and using free mode in setup and attach a function (to process data) to interrupt when the ring buffer is full, and do nothing of this in Loop?
Dec 21, 2016 at 9:13 comment added Gerben Writing to EEPROM is probably too slow. Just store it in memory. You can set the ADC to run in free running mode, where it will continually measure the voltage. You can then attach a function to the interrup so it run whenever a conversion is ready. You can store the values in a ring buffer. So the interrupt will fill the buffer with new data, while the loop will process the data and remove it from the buffer.
Dec 21, 2016 at 8:56 review First posts
Dec 21, 2016 at 9:14
Dec 21, 2016 at 8:45 history asked Ayush CC BY-SA 3.0

AltStyle によって変換されたページ (->オリジナル) /