Search found 33 matches

by plusorc
Tue Sep 15, 2020 3:08 pm
Forum: Hardware
Topic: Gaps in ADC voltage response when using DMA
Replies: 14
Views: 1139

Re: Gaps in ADC voltage response when using DMA

ADC works , actually it works like you expect it to work , but sometimes it just makes strange behaviour If you look at the link I posted earlier , it works but gives strange results from time to time and only by inverting the signal from HIGH to LOW or (pulling the PIN LOW) , it worked very accurat...
by plusorc
Tue Sep 15, 2020 12:49 pm
Forum: Hardware
Topic: Gaps in ADC voltage response when using DMA
Replies: 14
Views: 1139

Re: Gaps in ADC voltage response when using DMA

I'm getting the same thing you have , even when I pulled it low .. same result
bands.png
bands.png (60.26 KiB) Viewed 509 times
by plusorc
Mon Sep 14, 2020 10:37 am
Forum: Hardware
Topic: Gaps in ADC voltage response when using DMA
Replies: 14
Views: 1139

Re: Gaps in ADC voltage response when using DMA

I actually meant externally , If you're trying to read from INPUT pins like GPIO34 .. AFAIK it doesn't have internal resistors see this thread , I ended up using 2n222 to invert the signal and only that made it work accurately In my case I also couldn't pull down the PIN externally so I inverted the...
by plusorc
Sun Sep 13, 2020 9:28 pm
Forum: Hardware
Topic: Gaps in ADC voltage response when using DMA
Replies: 14
Views: 1139

Re: Gaps in ADC voltage response when using DMA

can you repeat your simplified test after pulling low the PIN you're reading from ?

I had strange results recently when I was just reading mains frequency , and now all is good after
inverting the signal (had to do that instead of pulling low the PIN)
by plusorc
Mon Sep 07, 2020 1:25 pm
Forum: ESP32 Arduino
Topic: ESP32 Can't make an accurate Frequency Counter ???
Replies: 10
Views: 893

Re: ESP32 Can't make an accurate Frequency Counter ???

Thanks for all the people who tried to help and special thanks to @chegewara for a previous help in a different topic . The problem was fixed by inverting the Signal , not by any software changes . It looks like if you hold an INPUT PIN high , you get that behaviour but if you invert the signal "whi...
by plusorc
Sun Sep 06, 2020 4:17 pm
Forum: ESP32 Arduino
Topic: ESP32 Can't make an accurate Frequency Counter ???
Replies: 10
Views: 893

Re: ESP32 Can't make an accurate Frequency Counter ???

@woodmna69 The complete circuit OptoCoupler_Circuit.png The Data analysed Screenshot from 2020-09-05 10-41-34.png The Zeros and Half Values Screenshot from 2020-09-04 07-07-08.png Looks like no one is taking this seriously I usually code IDF not Arduino core , Only this project needed Arduino becaus...
by plusorc
Fri Sep 04, 2020 8:17 am
Forum: ESP32 Arduino
Topic: ESP32 Can't make an accurate Frequency Counter ???
Replies: 10
Views: 893

Re: ESP32 Can't make an accurate Frequency Counter ???

@idahowalker I don't think the behaviour I'm getting from the chip is related to the method I use to detecting the edge Rising/Falling It looks like a Power Issue I powered the Opto Coupler on the Circuit above from an external source , and now I'm getting much more stable readings .. I still get th...
by plusorc
Thu Sep 03, 2020 2:38 pm
Forum: ESP32 Arduino
Topic: ESP32 Can't make an accurate Frequency Counter ???
Replies: 10
Views: 893

Re: ESP32 Can't make an accurate Frequency Counter ???

If this statement: // I got One ESP32 to produce a Square wave and send that through 1 wire to another ESP32 that reads the pulses , everything worked perfectly and it was so stable , but once we connect mains power .. we get those erratic readings // Then your problem is with your power circuit an...
by plusorc
Thu Sep 03, 2020 8:05 am
Forum: ESP32 Arduino
Topic: ESP32 Can't make an accurate Frequency Counter ???
Replies: 10
Views: 893

Re: ESP32 Can't make an accurate Frequency Counter ???

Could be that the issue is that you're naively assuming that you're the only thing running on an ESP32... while in reality, you also have the OS, WiFi stack, BT stack, NVM, whatever that all can interrupt your task and make you detect the edge too late. Suggest you use a hardware peripheral (e.g. R...
by plusorc
Thu Sep 03, 2020 6:06 am
Forum: ESP32 Arduino
Topic: ESP32 Can't make an accurate Frequency Counter ???
Replies: 10
Views: 893

ESP32 Can't make an accurate Frequency Counter ???

After so many issues with esp32 as a frequency counter , I decided to put the issue here ..hopefully I'm wrong . So , during making this project ..we needed the addition of frequency counter ..and we started noticing erratic behaviour from esp32 I'm the software guy , so I thought something is not r...

Go to advanced search