Close

I2S IO on arduino Due

A project log for wireless microphone digital

developing a digital wireless radio mic in both 2.4ghz and UHF

ben-bilesben biles 07/26/2016 at 03:520 Comments

So I have the Codecs working on both Arduino Due with this I2S library.

https://github.com/delsauce/ArduinoDueHiFi

I get get cliches in the audio pass through as soon as I try do anything especially send the radio packets with the RH_RF24 uhf radio driver.

I made a circular buffer to see if that would help but I think the issue has more to do with timing.

I am looking at the ArduinoDueHiHi I2S library trying to understand how the SSC timer is working.

Does anyone know if the M3 Cortex has any multitasking capability and if I can run two processes at a time ? I moved up from the arduino UNO to Due ( already had a couple ) thinking I would get some more horse power.. but I'm pretty sure it more a case of user error now and I need to learn a little more about timing and M3 ISR's before this will work.

At least for now I have packets being fired off very quickly!

I am bit shifting the 32bit 48khz samples input to 8bit and sending 8bit packets.

eventually i would like to time stamp the packets.

The RSSI receiver is also not behaving entirely,.. I think since I am sharing the SPI bus there is something again with timing. Although I did think CS was supposed to wake and put to sleep the relevent chip on the bus.

I could have made a hardware error so I will check that through , but it seams like both modules are initialized and yet i am only getting RSSI read back from one module. ( module2)

Anyway , Its fun playing around with the RF modules and its been a challenge to get the modues working with RadioHead library , mainly since my modules have a 26mhz oscilator rather than the more standard 30mhz.. so I had to build new gfsk configs for the library !

I built a 200khz 4GFSK profile that will be hopfuly enough data rate for the eventual audio !

Then again 8bit x 48khz = 384,000 ( 384 kb/sec ) ? mmmm might have to try and know it down to 4 bits until I get some better DSP compression working :)

Discussions