Hi! I'm not sure if that would work as whenever I received a wave it wouldn't oscillate with the wave, it would only oscillate as it was before. The difference was that the serial plotter wave would look more distorted, like the picture I'll put down below. I put the analog pin as input_pullup and now I can get a variation below 1018 (very quick before it goes back to 1023), so I can know when a wave is being received, I think I can work with this for now, thank youhi,
If I read that correctly, when no object vo =0 and when object present it is vo =2.24V.
So set your ADC sketch to read and average say 10 readings and if average greater than 1V an object is detected.
E

Hi, I tried the first two ones but apparently arduino can only do around 10k samples per second.. I saw some people do more only with external ADC's. The rectifier also gave me the same results with oscillation. But I put the analog pin I'm measuring the voltage at with pull_up so now whenever there is a wave the voltage goes down to below 1018 for a split second, which allows me to know when I receive a wave by arduino too. Thank you and everyone for your helpNot everyone on this forum can interpret an ino file, so the rest of us (with the exception of @ericgibbs ) missed the fact that your sampling rate was far too low.
Either:
sample more than twice the signal frequency 80,000 samples per second
Or:
rectify the output signal and sample that.
or:
trigger a monostable with the first output from the comparator, and read that as a gpio input.
In which part of the circuit? I have the capacitors that were on the circuit diagramhi,
I don't see any power rail decoupling capacitors on your project boards.?
This will most likely cause electrical noise problems.
E
Hello, with the 1k + 100k that I added as suggested it would be at the 100k end right, where the power is? Also I don't have any as high as 470... would two of 100uF in parallel + 100nF work or does it strictly have to be 470? I only have 2 of 100uF
I think an oscilloscope display should be used to see problems with the analog fairly high frequency waveform.hi agu,
Post #64.
His plots how the Arduino Sketch output of the ADC.
The vertical scale is the ADC count value 0 to 1023] == [ 0v to +5v] and the horizontal scale the sample number.
This gives rise to the triangular profile.
E