NuttX and continuous ADC conversion

2020-10-21 Thread disruptivesolutionsnl
Is it possible to achieve a continuous ADC conversion, where the sample[0].am_data is written in a struct (and constantly updated) and where I can get and check the voltage from the ADC? I have it working that the value I get is true and it also seems to measure the change, but after some time

Re: NuttX and continuous ADC conversion

2020-10-21 Thread Daniel Pereira Carvalho
If I understand well, you want to put the ADC to continuously sample an input at some sampling rate.The ADC ring buffer depth will be set to 1 and should store the value of the last sample. Is that correct? If yes I think that is not possible because adc_receive() will refuse new data if FIFO is f

RE: NuttX and continuous ADC conversion

2020-10-21 Thread disruptivesolutionsnl
Thats correct... so I have to start the conversion every time over again... and het the value after that conversion I have seen continuous conversions ADC on an STM32... I will try to find a plausible solution. Ben -Oorspronkelijk bericht- Van: Daniel Pereira Carvalho Verzonden:

Re: NuttX and continuous ADC conversion

2020-10-21 Thread Nathan Hartman
On Wed, Oct 21, 2020 at 2:26 PM wrote: > Thats correct... so I have to start the conversion every time over > again... and het the value after that conversion I have seen continuous > conversions ADC on an STM32... > > I will try to find a plausible solution. > Zero latency ISR to read ADC

RE: NuttX and continuous ADC conversion

2020-10-21 Thread disruptivesolutionsnl
I have implemented a daemon which uses sigaction. And indeed the ADC works with this solution until the FIFO is full... Maybe I have to add an IOCT that resets the ADC?... Or set the FIFO buffer back? Or make a ringbuffer instead of FIFO Ben -Oorspronkelijk bericht- Van: Nathan Har

Re: NuttX and continuous ADC conversion

2020-10-21 Thread Brennan Ashton
You might find this interesting. It's about sensors, but ADCs are just a voltage sensor so it might be possible to optionally wire the upper half. https://github.com/apache/incubator-nuttx/pull/2039 On Wed, Oct 21, 2020, 11:48 AM wrote: > I have implemented a daemon which uses sigaction. And in

Re: NuttX and continuous ADC conversion

2020-10-21 Thread Daniel Pereira Carvalho
Maybe you could propose a modification on ADC upper-half driver to enable overwriting. So, if the FIFO is full the oldest value is replaced by the new one. This could be an option on the config system. At this moment I am working on STM32L4 ADC driver. I am implementing the low level operations, b

RE: NuttX and continuous ADC conversion

2020-10-21 Thread disruptivesolutionsnl
Nice.. I just want to use the ADC as feedback sensor for a plunger... I all works fine until the FIFO is full 😉 -Oorspronkelijk bericht- Van: Daniel Pereira Carvalho Verzonden: woensdag 21 oktober 2020 21:01 Aan: dev@nuttx.apache.org Onderwerp: Re: NuttX and continuous ADC conversion M

Re: NuttX and continuous ADC conversion

2020-10-21 Thread Disruptive Solutions
Fixed it (workaround) by opening and closing ADC device. Then the FIFO cleans. It rather fast and performance is good enough for its purpose. Op wo 21 okt. 2020 9:33 p.m. schreef : > Nice.. I just want to use the ADC as feedback sensor for a plunger... I > all works fine until the FIFO is full 😉

Re: [DISCUSS] NuttX 10.0.0 Release schedule

2020-10-21 Thread Brennan Ashton
The last backports that I know of I just merged this evening. If anyone has outstanding issues that they think need to be resolved, please call them out. I would rather we try to deal with known questions now rather than after the RC is put up for a vote. I would like to cut the release Thursday