2015-10-06 12:10 PM
Hi.
I've started to play with STM32F7 discovery. I got to DSP audio example from hands-on and I would like to use line-in instead of microphones. Unfortunately when I've changedBSP_AUDIO_IN_OUT_Init(INPUT_DEVICE_DIGITAL_MICROPHONE_2, OUTPUT_DEVICE_HEADPHONE, 90, DEFAULT_AUDIO_IN_FREQ);
to
BSP_AUDIO_IN_OUT_Init(INPUT_DEVICE_INPUT_LINE_1, OUTPUT_DEVICE_HEADPHONE, 90, DEFAULT_AUDIO_IN_FREQ);
Only thing that's coming is noise. Could anyone help me to get line-in working?
Best regards
Konrad
#https://github.com/laurent-lator #stm32f7-audio
2015-11-06 07:41 PM
Maybe you are right about the ''signal'' being just crosstalk.
But I find nothing in the codec manual that indicates single-ended line one cannot be be digitized and output through AIF1DAT and reintroduced through AIF1DAC.Nice job getting EmBitz up and running quickly.2015-11-07 09:41 AM
2015-11-07 12:21 PM
I'm looking into using an Olimex STM32F405 header board with an external codec (not a wm8994) for my audio project.
2015-11-07 12:24 PM
2015-11-12 07:44 AM
For now, I am looking into using the PWM pins on the Arduino header to use as audio output. The good thing, many PWM pins available. The bad thing, low resolution, poor freq response, and high CPU usage
2015-11-16 08:59 AM
If you want to do output without input, you might try this demo code that outputs synthesized sound to the headphone.
________________ Attachments : HeadphoneOutput.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hzix&d=%2Fa%2F0X0000000bOi%2Fv4uW969leSCZoxKdmFcL_N5hg58ytMdgJWFqtOlDDAk&asPdf=false2015-11-17 09:08 AM
I tried out your app here on the 32F746 board. Works very solidly! That's very well written code.
I wrote very basic midi-triggered sample-playback code on the STM32F407 & STM32F429 discovery boards, but I always lacked the knowledge of how to apply filters to the output. Then I came across this guy who coded a fully-functioning Monophonic Subtractive Synth with Midi control. Check it out. It has a very well written synth engine (synth.c). Very easy to adapt to new boards.Demonstration video:I modded that code to run more than one instance of the synth engine and added a mixer to blend all the voices to mono. I could get 4 simultaneous voices, but that was with > 95% of the CPU usage, and it became very unstable.I was hoping to try to adapt this code to the 32F746 board to see if it would run smoother and with possibly more voices. Unfortunately I lost my entire project to a faulty backup drive, so maybe I will just try to piece it together again from scratch.2015-11-29 12:41 PM
Hi guys
Did anybody find the answer of how to solve the problem with the line in on the same timeslot ...I need to take sound in on that plug and use the ear plug to play when it have been filtered ...My code is working very fine with the mics but i can not see how to setup the wm8994 ....anybody have the answer ?Hjalmar2015-12-26 07:24 PM
Hi Hjalmar,
I was never able to get the input jack to work without noise.2016-01-19 10:23 AM
Try this configuration:
BSP_AUDIO_IN_OUT_Init(INPUT_DEVICE_INPUT_LINE_1, OUTPUT_DEVICE_HEADPHONE, 70, DEFAULT_AUDIO_IN_FREQ);
Do not set volume over 70!