This is all the code that deals with it.
#include <Encoder.h>
#define ENCODER_OPTIMIZE_INTERRUPTS
//Pins for rotary encoder (must be interrupt enabled
int enc_pin1 = 16; // 3 on connector CN11
int...
I need to print the value of the volume(level) function as it is changed by a pot which is the headphone volume,
out to a serial but I need to map it to 1 - 10 with .5 step increments..
Currently its a float that...
lol sorry guys..
Here's the specifics.
I have 1 audio shield. I"m currently using it as an ADC.. into pin 8 of the teensy. Out of pin 7 of the teensy is going into another I2S device.. works fine.
Now...
I have 2 teensy boards that are using the same code. I am telling the compiler which code to run based on the level of a specific pin which I have tied to ground. This saves me from having one project per board.
I...
Please do not apologise. I'm learning a heap. If my issue can trigger a wider conversation about something. I'm all ears.
also, approx 46900 - 48550 Hz , C0 does not change when C2=10000000 so there is a wide range...
Well, changing that int to a float and changing the denom to 10000000 has now given me access to those decimals. Currently at #define AUDIO_SAMPLE_RATE_EXACT 48000.814f
no more sliding clocks now.... so now i...
Its only transmitting raw data. I am transmitting a 32bit word (left & right together), 16 bit quality of course, at 48k and I'm using 16 buffers at a time in one packet
Brilliant. I'll try that myself. But I did notice that changing AUDIO_SAMPLE_RATE_EXACT to something like 48000.1 had an effect but 48000.05 did not so... I'm still trying to work out how that floating point is used...
ok so I can just ditch that calculation code and make the numbers anything I want as calculated manually in excel? are there any limitations? it says c1 and C2 are 30 bit so looks like I can.. This might actually do...
If i use 1 teensy and dont use (air) then its no longer wireless, which is the whole point of the project I'm doing. The role of the second teensy is to provide user interface functionality ie. LCD, buttons, control of...
The AUDIO_SAMPLE_RATE_EXACT is a float but when it hits your code wont it lose the decimal accuracy? I'm trying to experiment with 48000.nnn and 47999.nnn . I've only been programming in C seriously for about 6...
If a teensy 4 usb input is accidently fed more than 5 volts, what blows first? I have a spare teensy here for parts that i might try to fix if I know what blows, cheers
so adjusting this might help?
C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4\AudioStream.h (3 hits)
Line 57: #ifndef AUDIO_SAMPLE_RATE_EXACT
Line 58: #define AUDIO_SAMPLE_RATE_EXACT 48000.0f...
To be more clear, I could see from the scope that one of the teensy boards is running the I2S clocks slightly faster so over time they go out. I was hoping to do something in software to slow this clock creep down. I...