r/hamdevs • u/hrvoje • Mar 16 '23
Software Digital voice in a super-cheap microcontroller project
I've started something silly - porting Codec2 to a non-fpu sub-1$ microcontroller. The idea would be to minimize the number of external components by using PWM to generate audio + integrated ADC as an input. In theory, this could be a tiny 25 x 25 mm board (roughly 1 x 1 inch for the non-metric folks). Would there be any interest in actually using this or am I simply doing a fool's errand? :)
9
Upvotes
2
u/scubascratch Mar 16 '23
Can you get quality audio output with PWM? I assume you use an RC filter to convert to analog audio, any thought on using a small external DAC which could have a similar footprint to the RC filter passive components?
5
u/SA0TAY Mar 16 '23
Oh heck yes, I would retrofit my radio before the ink dried.
1
u/FullFrontalNoodly Mar 16 '23
I'm not sure what your goal is here:
1
u/BeaverlakeBonner Mar 16 '23
Count me in if you decide to go forward with the project...
Just DM me and I will send email and phone number.
1
u/silasmoeckel Mar 16 '23
Interest in codec2 on small cpu's but not really on the pi2040. This seems more for building a freedv adapter board and I can do that now with a pi xero2 thats pretty inexpensive.
esp32 sure but I can get that along with a small display, gps, and lora radio for under 10 bucks.
Arm sure but something like a MC13260 where you have the radio onboard with the CPU. Would love to see codec2 and thus m17 like bolted to a radio capable of TDM to get 2/4 timeslots within 12.5 or 25khz of bandwidth.
1
u/jinkside Mar 16 '23
This looks pretty cool to me, but not so much for ham stuff. One of the projects I'm working on is a color sensing tool for a family member with colorblindness. We've been workshopping what its user interface might be like, and I can easily see using something like this to pack a bunch of recordings of color names into memory.
1
u/jasiek83 Aug 28 '26
I've managed to pull out the AMBE codec out of the firmware of a Baofeng DM-32UV - you may find it useful.
https://github.com/jasiek/baocoder