David_
Advanced Member level 2
- Joined
- Dec 6, 2013
- Messages
- 573
- Helped
- 8
- Reputation
- 16
- Reaction score
- 8
- Trophy points
- 1,308
- Location
- Sweden
- Activity points
- 12,242
Hello.
I am trying to construct a with noise generator to play sound in earphones or speakers in order to find out if white noise is beneficial to people with ADD(Attention Deficit Disorder) and I have a arduino due which contains a SAM3X8E AVR/ARM flash microcontroller.
It has a True Random Number Generator(TRNG) which outputs a 32bit word every 84 clock cycles, and it has a 12bit DAC(DACC, two channels).
The DACC clock is the master clock(84MHz) divided by to so 42MHz and every conversion takes 25 clock cycles, which I interpret as 50 master clock cycles.
Anyway, am I wrong in thinking that I can use the TRNG to generate random values with white gaussian distribution and tailor that value to a 12bit range and then drive headphones or speakers through some buffer with the DAC?
I have read and I am reading but I don't understand how I would actually use the TRNG for this purpose, does anyone have any suggestions?
All inputs are much appreciated.
I have determined that a digital generator is the way to go since that should allow greater means of adjusting the sound to something that can help me, I really hope this will work in some manner to help me study or not get distracted so easily and it will be interesting to see what effects this can have. I'm also interested to see what effect this can have on tinnitus.
Does anyone ave any experience with these kind of things?
Regards
David
I am trying to construct a with noise generator to play sound in earphones or speakers in order to find out if white noise is beneficial to people with ADD(Attention Deficit Disorder) and I have a arduino due which contains a SAM3X8E AVR/ARM flash microcontroller.
It has a True Random Number Generator(TRNG) which outputs a 32bit word every 84 clock cycles, and it has a 12bit DAC(DACC, two channels).
The DACC clock is the master clock(84MHz) divided by to so 42MHz and every conversion takes 25 clock cycles, which I interpret as 50 master clock cycles.
Anyway, am I wrong in thinking that I can use the TRNG to generate random values with white gaussian distribution and tailor that value to a 12bit range and then drive headphones or speakers through some buffer with the DAC?
I have read and I am reading but I don't understand how I would actually use the TRNG for this purpose, does anyone have any suggestions?
All inputs are much appreciated.
I have determined that a digital generator is the way to go since that should allow greater means of adjusting the sound to something that can help me, I really hope this will work in some manner to help me study or not get distracted so easily and it will be interesting to see what effects this can have. I'm also interested to see what effect this can have on tinnitus.
Does anyone ave any experience with these kind of things?
Regards
David