Thanks!
The reference manual says not any word about this. (only that it can be 29 (or was it 30?) Bits wide) - I'll test if it makes any difference. As said.. the program works .. so i wonder if there is a difference...
Hi,
AudioProcessorUsage() does not take the time needed for the DMA ISRs into account.
Some need quite a time (like S/PDIF emulation on Teensy 3.x).
I'd suggest a function like update_all() that informs the...
You may have seen setup() and loop()
Forget that.. they are just functions.
its something like
void setup() { your code here }
void loop() { your code here }
void main() {
First of all, you should think about what you actually mean by "memory management".
Since you obviously know C, you know that there is at most new/malloc/free - and there is the stack, variables and pointers, RAM and...
You don't want 44100Hz... there is no divisor for it.
Try 44117,64706Hz (there is no audible difference)
As said above: It works. As it is :) I'm aware that it fires twice.
Which Teensy are you using?
Teensy 3.x with Audio Board Rev A to C uses pin 22 for Audio you use it for the LED.
Teensy 4.x with Audio Board Rev D uses pin 20, and 21 for Audio.. which are DC and CS in your...
Hmm... not an expert here... electronics noob, still :)... but... this this sounds a problem with the current?
Is it worth to try and add a buffer-capacitor?
No, my code works.
Maybe do a copy&paste.. or try the transmitter as a whole.
May I ask what you're tryong to archive? Must be something with frequency modulation, too...?
Hm,
no, for the SD it's always the same pinout (for clock)
SPI-Mode:
Not sure what it could be.. it's not audible, at least for me...
@Pauls (from Netherlands): If you're reading this.. have you tested this?...
Yes, use more relaible connections - plug the shield directly on the Teensy - , don't use these china wires ;)
As Pin 44 is the SD clock pin, SPI wouldn't help.. needs a clock, too.
Or try the SD on the shield?
We...
Take a look here: https://github.com/FrankBoesing/TeensyFMTransmitter/blob/main/output_fm.cpp#L159
Similar to yours... uses the timer @ audio sampling rate and uses the triggered dma to write to the video pll.
...
Just store it on SD? The waveplayer can play wav-files.
Maybe together with MTP.
You can record them in RAW format too. Maybe to SD, also. Or to PSRAM, or... wherever.
If there is no ready to use player, it's not...
Yup, I tried, but could'nt get more usable data to print.
At least it prints that something bad happened and what kind of problem it was. With a bit digging, it is possible to find where it was, because it prints the...
No offense, really! - but usually "no response" or "no statement" means that something is unlikely to be adopted :) So, I don't spend more time for this. The weather is good - I enjoy the sun.
In fact, I really don't...
also, for flash, perhaps just add the numbers for "data" and "headers"... the information "headers" is not that useful, i think.
Also, "free for files" is not correct. is can be used for code and data , too - same for...
I think two blank lines and a little formatting would make it clearer.
"C:\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-objcopy" -O ihex -R .eeprom...
Yes.. things like these are fun.
But for me, it's not that interesting. In addition, the VIC is very tricky. It has to be cycle-excact to be 100% compatible - I have it working in the emulaton, but for 3.6 I had to...
...not more.
I am quite disappointed and frustrated with this Si4735 stuff. This happens to me very very rarely.
After working wonderfully for a short time, it is now pretty much "dead". I2C works, but there is no...
It does not want 44.100 Hz :)
But this works (with the library mentioned above):
tone(0, 32000); // Output 32kHz on Pin 0 - connect Teensy Pin 0 with RCLK on Si4735
si4735.setup(RESET_PIN, -1, FM_FUNCTION,...
Maybe there is nothing against simply using the 44.1kHz I2S Framesync for this as well. That would be a good opportunity!
I soldered the pins to my Si4735 board, and put it on a breadboard. I have the I2C...
So, you're using the DAC for ultrasonic sounds?
Have you tried the PT8211? It's capable of 384khz (according to the datasheet) and cheap.
The bats will not notice that, I think..... (otherwise...RUN! :)
Yes, exactly this :)
In the mean time I read the datasheet - it does not have to be 32768Hz - it takes almost anything.... like 4MHz or so... you just have to tell it the frequency.
My Chip (yes, akmodul-bus) arrived...
It prints that :
Der Sketch verwendet 0 Bytes (0%) des Programmspeicherplatzes. Das Maximum sind 8126464 Bytes.
Globale Variablen verwenden 0 Bytes (0%) des dynamischen Speichers, 524288 Bytes für lokale Variablen...
I'm not a hardware-guy, too. And I have not enough practice with creating PCBs.. maybe I do 3 different in a year.. and.. 70% of the first run have a mistake somewhere!
But from china, that's not a big problem.. paid...
All information is in the reference manual.
But more important: WHY? and WHAT do you want to change? It would help to know that, and maybe we can help, then.
Is that now about the SGLT or HiFiBerry?
If you have crackling noise other effects with the Audio Board, there is something wrong with your hardware...
Increasing the Audiomemory does not help... the additional...
As said a few posts later, I don't think we can simply replace the size-tool. The builder prints a defined text and gets its data by using the regexs on the output.
So we need an extra tool - but then, we don't need to...
Thanks :)
What do you think?
- The analog joystick + Fire is on a extra connector.
- 3 Buttons "on board"
- C64 Joystick connector,
- Big connector is for all signals but VGA + I2S
Schmatic attached
I klicked on your link and just read the heading "Driving 5 speakers".
I think you can do that by simply using the PWM outputs... ( analogWrite() )
Or tone()
Are you aware of the VLSI23S010D ?
This is a 1MBIT SPI memory with integrated DACS for video. It can do PAL, NTSC (and I think VGA) - LQFP48 (would have to practice soldering...)
There is also a successor, with...
:) I intend to order in china, so it will be cheap anyway. I'll publish the eagle files and gerbers..
How many do you need? I can send you some when they are tested.
I think I provide only the PT8211 and VGA, and...
Thank you!
He mentiones 12 Bit on Github. Are the resistor values for 12 Bit the same for the R2R?
Which pins does 12Bit use? ( I'll add some jumpers to my PCB, and then build both versions.. )
I2S: Have you tried...
After a long time not doing anything with VGA, It's now time again...
I ordered a simple hdm/vga screen, and a cheap vga->hdmi converter. They will arrive in 2-3 Weeks, and I want to use the time to make a simple...
Just converting the mp3 files to 44khz will save you a lot of time.
MTP will work with the SD on the Audio Board.
But its not that clear if it will work with concurrent accesses by the Audio Library players.. thats...
If the samples fit on a large Flash chip, it's possible. SD is too slow to play more than a few samples simultanously.
Another ways would be to copy them from SD to the FLash (or PSRAM), on request.
Have you seen the VGA Output? https://forum.pjrc.com/threads/62362-VGA-out-for-Teensy-4-0-4-1
Together with a cheap VGA->HDMI Adapter it should be possible to drive a 50€ Raspberry HDMI Screen.
The opus decoder is in my codecs lib... have not done much with it.
8khz could be done by downsampling from 48kHz easyly, with the CMSIS. From 44.1 it will be bit more complicated.
But.. didn't have it an inbuilt...
I'd say the video PLL can be used, too (with the 2nd I2S misused as clock generator). But I have not tested this - have used it for much higher frequencies only (100MHz range)
+ don't forget that there should be a lowpass at the outputs...
Edit: in any case. With or without interpolation. The higher frequency is helpful for the needed filtering.
They did not add any inbuilt lowpass......
No, its compatible :) let's say, compatible to the audio library. The T4 has a 2nd I2S.
Or, you can switch off the oversampling.
Anyway, you would need a ultra cheap adc that a PT8211 makes sense. Its more intended...
I remember there is indeed a pad which in theory could deliver the 32768khz directly - in theory - it's not available on any of the Teensys pins.
The 24MHz main oscilator does not give a chance for 32768kHz because...
Sure, here is a bit copy&paste:
The program calculates the filter on the fly, so if you want to that, you'll need this file: output_fm_math.cpp
You can do that one time and print the values and fill a const array...
The CMSIS has interpolation:
https://arm-software.github.io/CMSIS_5/DSP/html/group__FIR__Interpolate.html#ga62d0757246bbbe5bfaf67b9a95c16c51
It's part of the Teensy core, so nothing to install.
As said, it needs a...
Yup, "Warning! Unlikely big volume range (=4095), cval->res is probably wrong."
Tried different values, the biggest allowed seems to be 255. I'll make a pullrequest..
...
I may be completely wrong here:
I took a look at this earlier this evening.
The volume control is done by means of a "Feature Unit Audio Class Descriptor".
The problem is, this is only valid for so-called "Input...
Hi,
not sure where the "Pin2" comes from. Anyway, It's not important.
I believe that it is possible to distinguish different voices. At least maybe women's and men's voices?
I would take a teensy 4.1 with an...
Good question. It was illegible, so I had to take a picture and enlarge it. It is a very old audio shield.
It looks like I soldered in a W25Q128FV*.
For this test I connected the audio board to a Teensy 3.2.
You...
I'm not sure what you're asking or if I understand you question.
As long your sample is >=-1.0 and < 1.0 , a multiplication 32768 will do because it fits into 16 bits. 32767 does not make big difference. Don't know if...
@rvh: I have not looked at this in detail. It just caught my eye when I briefly looked over it. If it doesn't work without scaling because of tanh, ok. It also doesn't matter if you multiply by 32767 or 32768.
A question :
At the beginning of the loop, you do a normalization and multiply the samples whith 1/32768.
Is that needed?
There could be a chance for a little optimization...
At the end of the loop, you scale it...
The counter is at 202 now. How long does it take?
I'm using this:
#include <SPI.h>
#include <SerialFlash.h>
#define FLASH_CHIP_SELECT 6
// The file where data is recorded
You could tell the others which part (with less thermal dissipation, perhaps?) you used or how you fixed it.
I promise, I will not read it, and don't intend to answer.
Lets take a look at the documentation:
For remove, it states:
So remove does not not free any space. It just meas you can create a new file with the same name.
Deleting the filename would need time-expensive...