Re: NuttX and continuous ADC conversion

2020-10-21 Thread Disruptive Solutions
s 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 > > Maybe you could propose a modification on ADC upper-half driver to en

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

Re: NuttX and continuous ADC conversion

2020-10-21 Thread Daniel Pereira Carvalho
IFO 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 Hartman > Verzonden: woensdag 21 oktober 2020 20:36 > Aan: dev@nuttx.apache.org

Re: NuttX and continuous ADC conversion

2020-10-21 Thread Brennan Ashton
Verzonden: woensdag 21 oktober 2020 20:36 > Aan: dev@nuttx.apache.org > Onderwerp: Re: NuttX and continuous ADC conversion > > 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 af

RE: NuttX and continuous ADC conversion

2020-10-21 Thread disruptivesolutionsnl
Hartman Verzonden: woensdag 21 oktober 2020 20:36 Aan: dev@nuttx.apache.org Onderwerp: Re: NuttX and continuous ADC conversion 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

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
: woensdag 21 oktober 2020 17:14 Aan: dev@nuttx.apache.org Onderwerp: Re: NuttX and continuous ADC conversion 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

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

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