-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to replicate the circuit - diagram? #1
Comments
I can get you exact values I used in a few hours, but the gist of it is:
|
Thank you so much for the diagram! I managed to figure out most of the stuff, but couldn't get it to work. However, I went with different values for the voltage divider and didn't clamp the voltage for pin 37. I'll try it again with your circuit tomorrow. Until now I was looking for a circuit to remove the 3.3V DC bias from the signal. This would also allow us to use the full range of the 12bit ADC. |
You don't want to entirely remove the DC bias (or you want to re-add some of your own bias) because I think the ADC only reads positive voltage values. |
Absolutely right. My plan was to reintroduce some bias to go into positive values again. Anyway - I'll let you know if the circuit works somewhen tomorrow. Thanks! |
Unfortunately I still can’t decide any packages :-/ The samples look better (the code passes Galesburg the range of about -100 to 100) to LibAPRS. It’s just that the callback is never called. Could you tell me how the samples are supposed to look, or maybe send me a sample dump of a successfully decoded package to make sure everything else is set up correctly? (I would just hardcode that sample in an array and pass that array into libaprs on start-up) |
Also note that I get the following log output which might indicate an issue with the sample rate of the ADC?
|
I did have a lot of trouble getting the sample rate to behave when I set I haven't yet tried out the patch defined here espressif/esp-idf#3380 (comment), but it seems promising. |
Oh, I also double checked the resistor values on my divider: I'm using a 10k and 3.3k resistor instead of the 33k and 10k that my diagram says. This shouldn't make a difference - the code doesn't seem particularly sensitive to amplitude, and I'm already using a HPF to cut out any DC offset. |
Thanks for re-checking. I'll also give these new resistor values a try :-) |
just to clarify: The 10k instead of the 33k at the baofeng side and the 3.3k instead of the 10k to ground? |
Yes, to cut voltage to ~25% of its original value. |
Here's the full output of me receiving a packet, with these printfs uncommented. Looks like the |
Hello there,
I'm trying to replicate your project - while the software part is easy I've got a few issues with the ADC conversion on the hardware side. My signals are either way out of the range of the ADC or too attenuated to get decoded :-)
Could you provide a simple description of the audio input circuit?
Cheers
The text was updated successfully, but these errors were encountered: