I am trying to get my rotary encoder to work with my teensy 3.5 however I am pretty confused, it's been a few years since I have used a rotary encoder, but I don't remember having any issues like this in the past.
So...
I picked up a couple ec11 rotary encoders and have been using the encoder library and things were working great but now they are not, turning the knob causes my teensy LC to reboot.
I did not have any resistors on...
I have a hunch as to what happened. I have been using the battery pin with an extra jumper pin, and apparently the pin occasionally stuck high was right next to the battery pin. Furthermore, upon desoldering the pin,...
Hi Brian, let me munch on this. I think I've figured out how to send the least amount of code which will show what I'm doing along with the results which show intermittant outrages on the S-Bus data recording.
best,...
For this prototype I want to connect line out to a panel-mount audio jack in a way that I can disconnect the board from the jack without unsoldering it. Sounds like I could just use some regular 0.1" header pins.
Installed the 1.49-beta1 from msg #43 and was a little confused.
2013 iMac with Catalina 10.15.1
1. When I ran the TeensyDuino App it overwrote the Arduino App in my application folder (with no questions asked)...
Anytime, and I mean anytim e at all you need a musicians perspective or you need someone to test out something you are working feel free to send it my way, I am honored I could help!
"Thank you" isn't even close to a strong enough phrase at this point. That one addition made the synth beautifully, perfectly playable! A million times, thank you so much! Now I'm off to add on my last few additions,...
Hey no worries, to be honest I am learning a ton hearing a musician's perspective, and voice stealing is something I really needed to address on my synth.
The way I showed above is very naive about still-held notes....
First of all thanks again wcalvert you have been a godsend! I still am having a bit of a problem that I cant understand fully. So lets say I play a chord with my left hand ... 2 or three notes, lets say 3 to be safe....
Well, one thing first, I see your max release time is nearly 12 seconds which seems pretty high to me, but then again I don't know what's considered normal.
The other thing, these oscillators don't take a lot of CPU...
There are certainly variations possible in a note stealing scheme: Oldest note, oldest note in release phase, same note # as new note... maybe others.
But they’ll probably all need oldest note as a last resort. So,...
Is it possible to get a teensy chip set not on a board? I am looking to make a custom keyboard and it would be nice to integrate the components directly onto the PCB without having to attach a separate board.
Thanks.
It might depend on what you are trying to connect to the line out pins. Here is an extension cable that has the missing pin:
https://www.newegg.com/p/2BX-001W-00005
The pins are arranged in a standard 0.1"...
Also maybe instead of freeing up the note when it totally finished there is some way to test if a note is in the release phase of its envelope... maybe I'm overthinking this.
I have to really study the code to figure out exactly how its working as I'm still not 100% sure what wcalverts contribution is doing exactly. I appreciate your advice tele_player I'm just having some trouble wrapping...
@KurtE
Just added the last of the basic ADC functions, setOffset, to the base class.
Started looking at using the ADC_test sketch for some of this. But lost on checking errors. Not sure this is correct or will...
Thanks for the help Paul. Using the hex file for the 4.0 worked! I must have been using an old version of the blink code that wasn't working.
I'm trying to make sure I soldered the Audio Shield correctly, now...
You will need to implement voice stealing in your onNoteOn function. If an idleVoice is not found for the incoming note, find the oldest note that is playing, shut it off, give the newly freed voice to the incoming note.
Everything you've described sounds like Teensy 4.0 is working perfectly, but you're programming a HEX file onto it which does nothing.
On this page, you can download known-good HEX files. Click the "LED Blink, Both...
So I implemented the envelope pots today (for attack and release) and I'm running into a problem I think is related to the inability of this system to voice steal that I need help with. When I turn up the release a bit,...
When I first connected it to my computer it did. Somewhere during the course of me attempting to switch between the fast blink and slow blink programs is when I began to experience the issue noted above.
I've only...
You will have to add the wrapper to support CBC mode (initialization vector and chaining) and maybe worry about paddding if you need to be compatible with other crypto libraries.
The NXP SDK can be configured with...
The default Keyboard/Mouse/Joystick is not showing buttons or axes in the "set up game controllers" menu. It worked for one board, then one board lost the axes and just had the buttons and eventually it lost the buttons...
@KurtE
Though I had a problem with the compare code the after an hour or so realized I forgot to make a change in to use ACMP4 for the results. So code seems to be working.
As for the branches I will stick to the...
@mjs513 - Hope you are doing well.
As for new branch/master/DMA.. hard to say, I started new branch as there are at least the two of us, and did not want to break everything yet.
I am trying to decide for...
Definitely use 1.49-beta1 from msg #43.
Unless any Mac-specific problems turn up or Arduino makes a non-beta release, all remaining work planned for 1.49 is for the code running on Teensy. The Macintosh stuff will...
Sorry, missed this thread and just installed the 1.49 beta #1 yesterday.
For any help I might provide should I install the version at #43 above or wait for 1.49 beta#2 or ? Will betas be code signed in the future?...
@KurtE
Yep added some stuff - basically the equivalent Compare functions for ACMP3 and ACMP4. Only tested a small piece of it. Think there is only one more easy piece to put in and that for adc offsets. Ran out of...
I'm going to give @Gibbedy's code a try when the hardware is ready (sometime tonight). In this code, a tubes should be blue when not activated and red when it is. Fingers crossed:
// LED
#include...
Thanks for the reply Paul. I'm not seeing a slow red LED blink. Also the Teensy is showing up as a USB device when its plugged in (Teensy USB Serial). What is happening is as follows:
When I press the button on the...
Hey John,
In the SBUS library, you'll see that I set the baud rate to 100,000 in the begin method:
https://github.com/bolderflight/SBUS/blob/master/src/SBUS.cpp#L47
Where _sbusBaud is defined as 100000 in the...
I'm using Paul's Ethernet library (Ethernet-2.0.0) with good results on a w5500 IC, connecting to remote servers but I really need a ping library that is compatible as I need to make sure a local PC is up and running....
Okay, we finally have the sensor harp very close to finished, but I can't get my head around the LED programming. The "harp" has 8 three-foot acrylic tubes on a frame positioned vertically. The tops of the tubes have...
Digi-Key HR1941CT-ND (DM3D-SF) SD Card socket is out of stock.
But they do have H126097CT-ND (DM3D-SF(41), which appears to be identical.
Will that one work on the blackketter/teensy4_sd_breakout ?
Thanks,
Bill
Hi Bryan,
After relocating and the usual hassles getting back up to speed, I've got my Teensy 3.1 based flight data recorder running. It probably doesn't make much sense to get into the code given it's complexity...
Indeed, sounds like a Win issue - the few cmdline t_sermon dumps were garbage free output to file - it was good to see that finally.
Security:: for sure some of the dumps of garbage could have been who knows what for...
@mjs513 - I see that you added some stuff...
Note: I just pushed up a new branch DMA_SUPPORT -
Where I am trying get some of the examples to be able to build and then hopefully work like the ringBufferDMA test...
@Pete: Good observation. I modified this demo program from Frank DD4WHs original program. In it he defines BUFFER_SIZE = partition size, which is 128. For some reason I removed that line- probably because my older...
Replying to my own thread, as I found the cause of the issue I raised! The cipher mode used by AES encryption using CryptoAccel library appear to be Electronic Codebook (ECB) and the output corresponds just fine with...
Quick question, after playing around with the CryptoAccel library, I found that it utilizes the ECB cipher mode. This mode is known to have some security issues if repetitive text blocks are being encrypted. Does...
Sure does look like a bug in Windows, maybe even a buffer overflow, judging by the sudden appearance of stuff about PCI bus devices in what looks like 16 bit wchar format that Windows uses internally. That data sure...
Indeed Win CMD output is slow - that is why I was doing the 1,000 batches before printing even one buffer. Though doing 10K batches did not run any faster - likely the minimal code overhead to clean and check receive...
One more question then: since there's a lot more RAM onboard than on many other MCUs, I'd like to experiment with code loaded at runtime (either from flash or an SD card). If I do access everything through variables and...
Doing this :: T:\arduino_1.8.10\hardware\tools>teensy_serialmon.exe usb:0/140000/0/1 > seeme.txt
The created file this way doesn't seem to show the printed corrupt messages in a couple of tries. Also hitting ENTER...
@ Frank. Thank you- I'm pleased it ran nicely for you too. I couldn't find the mods mentioned above on my Github site, under Pull requests or Issues. Then I went to your site and found them. The Serial while command is...
@Brian:
I downloaded your library just to have a look. It doesn't compile because BUFFER_SIZE is not defined. Looking through previous messages here, I assume that it should be 128.
Pete
Odd things noted above - using sketch with no delays posted below.
Not sure if any of this is T4 related - but all make at this this Win_10 PC an unreliable test bed::
> I see garbage spew on GUI and TyCommander...
@ Frank. Thank you- I'm pleased it ran nicely for you too. I couldn't find the mods mentioned above on my Github site, under Pull requests or Issues. Then I went to your site and found them. The Serial while command is...
@mjs513 - Still totally distracted :D Hopefully later today I will maybe have the opportunity to concentrate a little.
I probably should start off hacking something up, but I find myself wanting to generalize...
@KurtE et.al.
Added the ADC compare piece of the puzzle. Only tested on case for comparing on one value. Still needs some work - since I think I messed upped what pins are on what adc in code. Need a break - been...
Unfortunately, I’m of no help with the Touch Bar. My 13” MacBook Pro from 2018 is the version without. I never saw a reason for spending additional money at gimmicks like this.
Thanks Theremingenieur, hpyle, grahamguitarman, jwx49 for testing. It's a huge help.
If I could ask you one more question... do you use the touch bar? I don't own any Macbooks new enough to have the touch bar, so I...
The urgent question right now is whether the USB code on the Teensy side is working properly. With the recent tests on issue #401, and many tests I did before this week's MacOS Catalina work, and with every indication...
One other variable to consider is your Mac's power source. Apple's CDC driver uses a *lot* of CPU time (for reasons unknown, Windows & Linux drivers don't do this) when receiving data at high speed. Sustained high...
Red LED blinking (slowly) means something is wrong with the USB cable or port. It only does the slow blink when you're in bootloader mode, but your PC hasn't performed any USB communication, not even enumeration to...
Simply including those other libs will not make Adafruit_NeoMatrix play nice. Adafruit designed their library to block interrupts.
To make this work smoothly, you need to completely remove all use of...
Windows CMD is slow, much slower than the Arduino Serial Monitor.
Usually when I run this, it will show an impossibly high lines/sec speed, like 600000 to 750000. But just by watching which digit of the count number...
While working on the teensy_serialmon.exe that's in 1.49-beta1, I did quite a bit of testing running it from a CMD window. It expects a single input on the command line, which is the port name shown in the lower right...
For a small WS2812 based led project I'm using both FastLED and Adafruit NeoMatrix libraries (mainly for displaying text) and this was running perfectly on an Arduino Nano. However, I need to control it with an iOS app...
Other than getting the index for the terminating character wrong the code from post 11 worked and I got the ACK back from a Teensy 2.0.
void onSysEx(byte *sysExBytes, unsigned int length){
if (sysExBytes == 0xF0 ...
Brian, your code runs and performs very well! Well done, thats very good!
I added some very small modifications in the example file --> AUDIO_BLOCK_SAMPLES, Serial printing processor load, fixing Serial while command...
@Paul - modified prior PC app to read 512 bytes in groups of 1,000 times - and sends each buffer back to the T4, but only prints the last buffer of the 1,000. One sign of trouble with that garbage buffer - though not...
Why would you want this? What's the practical purpose, that's worth risking having too many cooks in the kitchen?
If you want a big block of 100K for a buffer, it's so very simple to just create an array as a global...
Hello PJRC!
I got a Teensy 4.0 and soldered on the audio shield, following this tutorial: https://www.youtube.com/watch?v=UJcZxyB5rVc
Everything seemed fine, I plugged it in to my computer, the driver...
Indeed it is that thread. That post preceded the notes on T4 memory pjrc.com/store/teensy40.html
And above was right > what speed is RAM2 that it needs to be cached?
There is a memory thread - search forum for imxrt-size - details there may be helpful, also that exe imxrt-size will spit out info on what is allocated where at compile time. I posted an output of that in the 1.49 beta...
OK, that cleared many things for me already.
The thing I was mostly concerned about in the "bare minimum" setup was damaging or locking up the hardware by leaving something in an uninitialized state (not sure if...
I wrote a full library that does this with its own midi editor that is scalable and the editor is web based with also a desktop app running on electron. All done with sysex for communication, the library handles...