I am working on a Teensy 4.1 module that is actually a sound synthesizer, but generates a visualization on ILI9341 with the excellent TGX library.
It's using the synthesizer parameters to control...
Type: Posts; User: neutron7
I am working on a Teensy 4.1 module that is actually a sound synthesizer, but generates a visualization on ILI9341 with the excellent TGX library.
It's using the synthesizer parameters to control...
I just noticed a function called "_drawCircleHelper" that appears to draw quarter circles for the rounded rectangles. is there a way to use it from the sketch? It would be quite handy for what i'm...
That is a nice solution! "milkdrop" here we come :D
I don't know If you have done something like this already and I could not find it, or if it is too slow, or this is asking a bit much! but is there something like the layer blending modes in graphics...
Thank you, that is the same one I found elsewhere and used for the footprint "for now" because it looked the same. I wish they would use a common reference point!
The teensy 4/ 4.1 schematics show there is a separate power pin for the ADC, and the iMXRT1060 (VDDA_ADC_3P3) which is also the voltage reference for the ADCs. documentation about it seems a bit...
That is really good. I made a new image 128x64, for an oscilloscope overlay, and draw directly on to it with "persistence" done by drawing "transparent black" over it every frame, then blit it on to...
I am thinking of using this display for a project, but the page for the displays does not show a dimensional drawing for the 3.2" version, just the 2.8".
Thanks! i will try it.
I was wondering if there is a way to set a Viewport "clipping window" for 2D as well as the renderer? it can be quite useful.
That was a big help, thanks! I got it working with t3n, single buffer for now with 50mHz SPI, its getting the same FPS as before without any TGX primitives, (36FPS which is quite acceptable, its just...
That's good to hear, thanks! A simple example set up with t3/t3n with a few 2d primitives and text using alpha blending would be a big help getting people started.
another question, can you mix...
This looks really useful, I would try it with your ILI9341 t4 library, but my PCB is already set up for the t3 version and i would have to take my module apart and cut traces. will it still work with...
What about a solenoid, you would need to activate it with a relay. I'm thinking something like a pinball flipper (or several), maybe it can yank on the spring with a piece of fishing line.
I have a project that would use a USB C connector that would be used on a board that does not need USB power. (its an addon board for something)
I have copied this circuit from sparkfun: ...
I know this is very old, but if you are trying to squeeze a few more cycles out of the teensy, I improved the time taken to set a value for the DACs on a teensy 3.6 by moving the instruction that...
It can be done sample at a time, but there are more "gotcha"'s. I did it with t3.6 on my eurorack module "dust of time" I had to forgo having any floats in the ISR though. that makes it harder to do...
I have used this ASM saturation function borrowed from the audio library.
inline int32_t clampU_rsh(int32_t val, int bits, int rshift)
{
int32_t out;
asm volatile("usat %0, %1, %2, asr...
Thank you. I did have a look at the .lst file in the past when i was working on a polynomial sine generator, there was also an asm example i was going to try, but i found the compiler had basically...
I am trying to do an unsigned version of this assembler code in the audio library, but I really have no idea how it works.
the code is:
// computes (((int64_t)a[31:0] * (int64_t)b[31:0]) >> 32)...
That explains a lot! Is there any way around it?
I have 2 intervaltimer ISRs, for clarity on the scope when suing sync they are running at:
"audio_ISR_Timer" 15us set to priority 0.
"controlLoopTimer" 300us priority 64.
it is easiest to see on...
Another way, which might be better for procedurally generated waveforms, is oversampling. Say you do 4x oversampling, you use 1/4 the phase increment you normally would, but calculate the oscillator...
I'm glad i found this! using teensy 4.1 with single reads of several pins assuming 4.1 had "all ADC pins work with all ADCs"
It was stopping reading when ADC1 read 24/A10 and 25/A11, swapped them...
No, you were right, but i had to start at byte 100, not 99 and also multiply the float by 2147483648 before saving it as int32.
Thank you i have wasted a lot of time on that!
something different did happen, it looks like a +-1 bit wave.
Doesn't that read the 4 bytes 0-1-2-3? they need to be 3-2-1-0
I am trying to load some wavetables from SD to the external PSRAM on teensy 4.1, they are wavetables created with "serum" synthesizer. they are mono 32 bit wav files up to 524288 samples.
I have...
I see that the block diagram for the i.MX1170 says "1 Gbps ENET with AVB" is that the same AVB "Audio Video Bridge" that is used by comapnies such as MOTU to transfer audio over ethernet, and if so,...
All the different PWM bit depth vs maximum frequency are in the table here. https://www.pjrc.com/teensy/td_pulse.html
This worked well, I even increased the second "MISO" frequency to 30000000 and it works.
Just aside, I was reading about the imx1170 for some reason, and it's page shows it has "pxp pixel...
I don't know if this is the right place to ask, please correct me if wrong! but this was the first ILI9341 library i got to work for me.
I was wondering if there is there a way to have a "fake...
Since the analog inputs work best with a low impedance driver, I like to use a rail to rail op amp that is powered by 3.3V, so it can never output a higher voltage than the teensy can take. there are...
Team Monsoon, not only the "famous" battlebot but also "drizzle" antweight you wouldn't want to mess with.
No help here, but your name reminds me of a certain combat robot team from the UK. "get in your house!"
there are a few ways to do it, depending on how accurate you want, how much memory you have, and how fast you need it to be.
you can use "POW" function, which is quite slow but the most accurate,...
Is there more information about "Use standard (not low power) ADC mode"
is it just teensy 4.x that is affected? or will it change performance of 3.x ADC as well?
I think most of that “off time” is doing the compare and loop increment, What if you count the loop down to zero? “compare to 16384” probably takes more cycles than “loop if non zero” then you might...
The o&c has the DAC and display on the same SPI bus, It makes the timing tricky. if you want audio rate out the display might have to do nothing while it is playing.
I don't know much about how this works, but there is
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0489d/BABJFFGJ.html
there are comparators,
could you set one to...
I have 2 boards which are the same, both use a teensy 3.6 and DAC8562. On one of them the DAC would not start. the Sync(CS), Clock, and Data signals to the DAC looked the same on a scope, but the non...
have you got a MIDI monitor software? you could check to see if the buttons are bouncing like crazy and sending enough MIDI data to interfere with Mainstage?
Hmm, i think this must be it then?
HFW8R-1STE1H1LF
That is the cable itself, this is for the connector.
Can I use this one instead? the data sheet does not have a footprint.
https://www.mouser.ca/ProductDetail/Amphenol-FCI/HFW8S-2STAE1LF?qs=sGAEpiMZZMs7i6cT6ogu4%252BM5B8TmbFcyy4tps6v3cqo%3D
Thanks! I ended up adapting the code at the bottom of this page https://www.best-microcontroller-projects.com/rotary-encoder.html one of my encoders was still not so great, but a short delay...
I have had trouble with encoders skipping counts and sometimes even stepping in the opposite direction.
I am using a teensy 3.6 with the encoder library 1.4.1
the sketch is the example on the...
I just noticed the updated back side graphic, i guess there is no more external AREF? is there a way to get the same sort of performance from the ADCs with potentiometers across a 3 or 3.3v supply?
I just ordered 4, i have been looking forward to this! quick question, the teensy 4 page shows the top side pins in both pictures instead of the usual top and bottom, I just want to confirm that the...
The audio shield goes on top of the teensy.
Thank you, i tested the timing on the "almost working" verion (which outputs half a sine) and it did not run any faster, it was worth a try though!
On a wild guess i removed the "bx lr" at the end and now it "works" but not properly.