@defragster or whomever... Ok i mostly have this working except the timing between strokes is way off. Will you look this over and see where I am going wrong before I really mess it up?
//Teensy 3.2
const byte...
I will start with just having one drum interfacing with an app on the PC and go from there.
Thanks for that link, I think hid is the way to go. You just saved me a ton of time.
Yes, you can freely mix tgx with any other library since it does not access any peripheral hardware. The only thing tgx does is to write inside a tgx:Image which is basically a just buffer in RAM...
Here is a very...
Hey, MatrixRat thanks for posting reply and answering my initial question. Very interesting. Thanks.
Also, just like to say that I agree with you re luni starting new thread for the rotary encoder library he/she has...
I'm learning all about "automagically"!!!
After trying 16-bit stuff with no issues, I went to the SGTL5000 driver in the Teensy Audio Library and changed the I2S control to
write(CHIP_I2S_CTRL, 0x0010); //...
If you use only the full voltage from the battery and buck converter(s) you'll be able to change to a different power
source flexibly, as well as not unbalancing the cells.
Yes, you found the problem as well! Thank you very much for looking. It is very appreciated.
Still have a problem with resetting the counter value to zero for testing. I get some strange output, but that is just...
You should try with your T4.0, since FreqCount takes a gate interval in microseconds for T4.x. See the FreqCount library examples Serial_Output (T3) and Serial_Output_T4 in TeensyDuino.
Think I found part of the problem! Was calling Serial print way too often. I updated the code to only print out the RPM once every 100ms, it seems it was trying to output every time it went around the loop. That plus...
HID is part of the USB specification. There are people on this forum, Paul and others, who know a lot about USB and HID, so if you go that direction or CAN, you should be able to get help here. I thought of CAN because...
That sounds logical. This is great info, I will look into CAN bus. I know that the edrumin which is a teensy based drum module uses something called HID to send data for the monitoring of waveforms and such.
That was easy ;-)
You print the current position in the encoder callback. At high encoder speeds the printing is not yet done when it tries to invoke the callback again. This will basically lock the system.
I moved...
Got a crash at Count = 99591/100000 counts. freq = 100000. My instance of spindleEncoder did not print out the count of 99592, but did for 99591. It printed out "-", then restarted and printed the setup information. ...
Think it will crash before then, but yes. Also, I see that EncSim is outputting a couple of random counts in the beginning on start up. Not always, but occasionally. Might be the outputs changing state, but it is...
@mjs513: That looks like an old fileset pre MakeFiles "2204", please Purge and recreate with "t" command on start.
The verify scheme and mechanics of file content have evolved. Old file sets are not...
@Bob, I have made myself primitive test examples (basically pass-thru or a sincos generator to an output). Based on your "PassthroughF32", which now automagically does hires. These replaced lines print the level in dB,...
RE: Posts 1188,1190,1191,1192
I'll sync to the latest and confirm when I get back to it ... later today.
> assume Mike/Kurt are running Win 10? : Win 11 here on desktop, will have to try on Win 10 laptop.
Try to...
The Error_Callback is a left over from development and it not working anymore. I'll remove the leftover code in the next update. The error callback was invoked whenever the internal state machine detects an A/B pattern...
@luni, sorry to keep bothering you. In your Encoder library there is a member that is an error callback. I keep getting odd resets at certain speeds, where the count value stops updating. How could one use this error...
Now with some more digging I might have wanted to change the title and contents of my original post to clarify the issue, but I cannot find out how to do this?
It might be that the MIDI device (Novation Launchkey...
Feel free to post your program or a link to it for a review. My experience is that you can stare for days at some code and don't find a bug while someone else with fresh eyes might see it in minutes.
It will use...
Ok catching up now after the dentist. This is what I currently have on my ext 64gb samsung sd card:
Storage Index 2 Name: EXT1 Selected
Space Used = 19660800
Filesystem Size = 63831015424
Directory
---------...
Hi @defragster
Quick update - as I mentioned in the last post I merged back to the one _part2 branch and deleted the _part2_format.
At some point soon I will take a closer look at the issues you are seeing with...
This does look like a major contribution. Thank you Dragon!
Will this perform 24 or 32 bit conversion at 96khz? Because if it does this is very exciting for pro audio users. My personal interest is 24bit/44.1k.
I...
@defragster - not sure about everything else but I just copied a 1.1MB .bin file to an ext sd card without issues, then took the card out and was able to transfer back to the pc. Was also able to transfer it to the PC...
@PaulStoffregen
All I can say is ditto to what Kurt said. Parts shortages I think is going to be a way of life for the next year and may get worse. Sorry to hear about PJRC getting hit with Covid-19 but sounds like...
Hi Everybody,
I am working on a project that needs to count the total number of photons emitted in a very short time interval.
This is done counting the pulses (one photon = one pulse) coming from a photodiode.
Up...
Yikes - I hope you all stay well! Also keeping fingers crossed on port shortages!
I just merged the branch with the Format code back into the branch with the open PR: ...
I did some googling about electronic drums to see how they work, and I still don't know much, but it looks like you have done a lot of good work on the project. If you haven't already put multiple drums together, it...
@luni, what you showed me works! I didn't understand how to use the command from the header file - ie. I'm not a very proficient C/C++ programmer. :(
Have an unusual problem showing up. Occasionally, my program is...
Yeah, been thinking about this recently.... we really do need better notification of filesystem / device connect & removal. It really wants to be integrated at the FS class level so the API is consistent.
Might be a...
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 tgx with ILI9341_t3(n)...
Hi,
I'm thinking about teensy 4.1 to replace an esp32 which reached its limits in a project. But I need ethernet and wifi.
For ethernet, no problem, it's embeded in Teensy 4.1, cool!
But for wifi, it seems more...
It will be interesting to see what you come up with. But as noted, as far as I know there are no T3.5 or 3.6 chips available and no ETA when they may be available.
Always interesting to see different trade offs.
...
I believe what you want is a MIDI splitter, so you can send the MIDI output from your keyboard to both Teensy and something else which receives MIDI. Right?
Many MIDI devices have this built in, called "Thru", which...
I am working on reading an External 3 bit parallel CMOS ADC (44MSPS) digital output through teensy 4.0/4.1 board , my only concern if the teensy 4.0/4.1 can handle this amount of samples then print them in the IDE...
Hi,
I am totally new with Teensy (have a very basic understanding of the code) and am trying to build a MIDI controller with 16 stretch sensors (adafruit conductive rubber) as separate MIDI inputs. ultimately, I...
Very close, but with some improvement. I notice on that board the Teensy sits on top of the board with the USB port unavailable when the shield is on top. My design has the Teensy facing the opposite direction and...
Only change to github.com/Defragster/.../MakeFiles.ino was an #ifdef.
Starting a T_4.1 with a usably empty SD card running MTP Experimental Makefile.ino create files with "t - Test Files write 2204"
> confirm Windows...
Hi,
Yes, the tgx library is independent of the screen (an driver) used. All the library does is creating the graphics inside a memory framebuffer and then you choose which ever method you prefer to display the...
Hi Folks
I'd love to "feed" the digital audio signal from a YAMAHA YMF-262 (OPL-3) FM chip directly into Teensy so I can play with it in the digital domain before pushing out of the audio shield.
According to the...
The I2S microphone has LSB bot 0 while the I2SInput (from audio library) uses as LSB bit 16 (uses top 16 bit)
you can hear only very loud signals
test: hit on microphone, you should hear something.
Unfortunately...
I´m building a synth where I use an old midi keyboard to control a teensy using the schematic on this page.
I want to be able to control other synths with the midi controller, so I simply split the signal from the...
Thanks, I have gotten great reactions from people so far which is encouraging when you have been working hard on something. The difficulty is really to differentiate the cross sticks from the rest. So far this is the...
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 ILI9341 T3? the...
The problem relates to simple Notepad text file open using MTP when size is 500 bytes.
SD card on T_4.1 holds files created up to Jan/Feb 2022. The Makefiles folders and files.
> Going to set that Samsung 128GB SD...
Honestly, that demo vid blew me right out of the water.
It seems that first, you need to establish comms with juce so dig in discover what it needs as a pathway.
I’ve been making this project for about 2 years, so a lot of effort has gone into it and I have learned to program from scratch with no prior knowledge to do it. It is not some half assed attempt.
I have learned a...
Theoretically, with powered USB hubs, up to 127 other Teensy boards could connect to the USB host port on a Teensy 4.1.
But if your goal is to just send MIDI events to a PC (implied but unclear from your question),...
It would be A LOT less cables if you can connect them in series. It’s sort of a big deal in edrumming to get rid of the cables.
How long cables can you use? The laptop is usually a meter from the closest drum. The...
Sheesh! I made a dumb mistake by overlooking the overflow value to load into the TPM1 counter. I was running the full 16-bits which of course effectively divided the clock frequency by 65536.
I fixed that and am...
Some might suggest its a waste of processing power but usbHost is a possibility where Teensy 1 plugs into PC, then Teensy2 plugs into Teensy1's usbHost port then Teensy3 plugs into Teensy2's usbHost port and so on....
Looks like Microchip has LAN8720A in stock! Ordered 25 just now.
https://www.microchip.com/en-us/product/LAN8720A#buy-from-store
If anyone's considering building ethernet prototype PCBs, now's probably a good...
#Dragon that looks like a major contribution. We need to get this into the floating point F32 Teensy library.
It looks like there are really two areas. First is handling 24 or 23 bit I2S words on input and output. ...
Those pins worked a treat. The display updates in 3.4 milliseconds now. It was 35 milliseconds when i was using I2C, Massive difference.
Being able to pick the SPI pins will also help when creating the PCB.
...
How about trying
analogWriteFrequency(16, 8000000); // 16 and 17 max 8mhz uses TPM T3.6 only
analogWrite(16, 128);
after starting the analogWrite() you could print out the various TPM1 registers to see how...
Maybe look at your power supply startup and stability?
Many years ago, in the days of Teensy 3.0 & 3.1, there was a big project using an Arduino Mega and 3 Teensy boards which suffered from power supply problems. ...
Yes, as far as I know it's okay to do that. I'm not sure of the terminology with respect to read, but my understanding is the processor "translates" accesses to QSPI flash or RAM into the proper QSPI transactions and...
Great! After playing around with it I am able to read the program on the flash simply by reading a variable pointed to the flash address, I thought I would need a special function to read from the flash.. does the cpu...
Sorry,
When it comes to completely custom boards, I am not experienced in seeing what is different versus a stock T3.2.
So I am probably not much good at debugging this. Except to suggest that you might want to...
In the attachinterupt() function can HIGH be used as the mode?
From the Arduino Interrupt reference
Parameters
interrupt: the number of the interrupt. Allowed data types: int.
pin: the Arduino pin number....
Of course it is a bug :D. I am running the stepper at 6 TPI, (4.23 mm pitch) which has the highest N/D ratio 0.781. Stress test! Rather see the SW break on my comfortable desk, than down in the shop. At least...
@defragster
Hi Tim
A little confused are you transfering files from the PC to the Builtinsd Card over MTP. I just transferred 104MB of audio files to the BUILTIN SDCard in about 14 seconds?
Writing you 'B'ig...
Hello Forum,
In the first step of using the AUDIO SHIELD circuit (rev D for TEENSY 4.0) I connected an analog microphone at the input and a pair of headphones at the output to listen the audio input signal. Using the...