You might try adding 2.2K pull-up resistors between each of the two CS pins. A pull-up resistor is connected in parallel between the pin and 3.3v. This comes from this page of how to make better SPI buses:
...
Quote from ILI9341 page here (with link to the mentioned HW mod thread): https://www.pjrc.com/store/display_ili9341_touch.html
"We do not recommend using the SD card socket on this display. It does not work, but this...
Thanks retroD,
so VIN would be the CV-signal and AnalogInverted would go to an analog input on the teensy?
The analog inputs have been very unstable when I have used potentiometers, would the signal in this circuit...
Here's a nice guide from PJRC themselves: https://www.pjrc.com/better-spi-bus-design-in-3-steps/
Since the T4 digital pins are 3.3V, you don't need a tristate buffer in the MISO, MOSI and SCLK pins, unless you wanted...
Here's a few options using the OP-amp/offset circuitry:
If you want the -5V/5V to be mapped to 0V/5V (Non inverting solution) :
If you don't mind it being inverted, -5V/5V mapped to 5V/0V ( which is easily...
Restarted in safe mode. Same problem.
HOWEVER: The game controller's axes and buttons show up appropriately in a third-party app (Joystick Gremlin), so this is something weird with Windows specifically.
KurtE,
Thanks for the reply.
So the way I understand it from your example, the following are...
KINETISK_UART2.S1 = (*(volatile uint8_t *)0x4006C004)
KINETISK_UART2.C2 = (*(volatile uint8_t *)0x4006C003)...
I'm working on displaying the files from an SD card on the ILI9341 LCD I bought from Adafruit (https://learn.adafruit.com/adafruit-2-dot-8-color-tft-touchscreen-breakout-v2/overview ) It has a built in microSD card...
...either an external ADC that accepts your range or use an op amp gain and offset circuit and regular analog read....
http://www.ti.com/lit/pdf/sloa097
@KurtE
Sorry for the delay. I downloaded the latest and greatest and going to have to change the enabling of the compare function. Decided to add this to the code as a test:
analogWriteFrequency(14, 60;
...
Very nice! It's awesome that you can do vibrato and pitch bend with the same fingers that play the notes. Are the FSRs on the joystick? I'd love to see the code that runs touchRead side of it.
Simple question is why not just uses the values in kinetis.h ...
But Lets look at S1...
#define UART2_S1 (KINETISK_UART2.S1) // UART Status Register 1
It is based off of the address of UART2:
#define...
@mjs513 - fixed (I hope) the problems I mentioned in the last message, like adc->analogRead(pin);
Will now check to see if valid pin on any ADC if so it will use the first valid one (i.e. if in my table does not have...
After removing the existing Arduino app I performed the Catalina upgrade and then installed TeensyDuino from the Msg 43 link. Absolutely no issues with programming T3.6 & T4 so many thanks to Paul Stoffregen. If only I...
Hello!
I'm using an extern micro SD on T4. I've tried to find out if i need to use pull-up/pull-down on the CS,MISO,MOSI and SCLK , currently I'm using pullup ( to 3V3) resistor on MISO only. Should i use any other...
Gentlemen,
I am reading in Kinetis.h as well as the K20P64M72SF1RM.pdf datasheet and trying to understand the actual address is for these three values.
I know that these are for Serial and this whole activity is...
I have essentially no surface mount soldering experience, but I thought I would add a couple of comments for others in my situation. 402 sized components are so small that I would call them 'dust'. I'm sure that in...
Hi, I want to interface with eurorack modules using a Teensy and I have some questions that some of you may be able to shed some light on.
Since the digital pins are 5V tolerant I guess these could be used for the...
@mjs513 - Hopefully I did not screw up everything, but I merged in the DMA branch...
Still not totally functional yet, but it also has a lot changes for housecleaning.
That is I moved most of the functionality out...
I just wrote a simple library for this kind of thing and wouldn't mind some feedback on how it works for other people. Try the "variable_stable" example from this library.
github.com/joshnishikawa/Flicker
@mjs513 - I will merge in some of my stuff soon, to master. It has some of the stuff for adc->adc0 (or 1) but so far I have not added in all of the error stuff.
Made some progress on the DMA stuff, The DMA ISR...
@KurtE
Interesting thing I just found out during testing using on the CMP function.
Since ACMP is on pins 26 and 27 you have to change the resolution on the adc1 (ADC4) to match the what resolution you are using...
I replied just now on your main thread.
There are 2 separate issues here... how tech stuff works, and how communicating with humans works. This forum is about DIY electonics. We all know everyone has to start...
I'm not going to get directly involved in your project, but I might add another USB MIDI example for use of rotary encoders.
First, I would like to ask, have you run *any* of the USB MIDI examples yet? In Arduino,...
Hello PaulStoffregen,
I am sorry if these seem like duplicates. I do not have a good understanding of how these projects work, so it is hard to tell what is considered a 'duplicate.' I thought that if a project is...
The app I sent in #1 is just sending that 25kB string over and over. I can do a more simplistic console application if that helps? But let me check my code first, might be some bug on my side as well.
How did you check the pins on the Teensy 3.6 are still ok ? The CANH and CANL doesn't connect to the T3.6.
You can try and add a voltage divider from CAN_RX (CRX pin) to the T3.6 but damage might have already been...
Please do not create duplicate threads. Continue this here:
https://forum.pjrc.com/threads/58564-Teensy-3-2-USB-MIDI-Controller-Coding-Assistance-*Willing-to-Pay*
Difficult to say when I can't run it here. This USB code is pretty new, so it's quite possible there may be undiscovered bugs.
If you can give me a test case to run here, I can try investigating. I can watch the...
Hey guys,
I am designing a usb midi controller using a Teensy 3.5 with 12 tactile buttons and 20 rotary encoders (KY-040 no push button). I have no problem physically connecting everything, though I am having a hard...
Hey guys,
I am designing a usb midi controller using a Teensy 3.5 with 12 tactile buttons and 20 rotary encoders (KY-040 no push button). I have no problem physically connecting everything, though I am having a hard...
Hey Yeahtuna,
Thanks for reaching out. I know absolutely nothing about coding or C Language. I know how to upload a code already written, but writing one is out of my comfort zone. I actually simplified my design,...
Yes, the upload button was just a quick hack, I can fix that later today. Strange that you get transmission issues. Runs perfectly here (as long as I don't add more than 200µs delay). With or without a hub.
So, I added a background worker which delays (1ms) each second. Not much but this already generates problems.
IntervalTimer timer;
void worker()
{
// delay(1);
Serial1.println(millis());
}
The pins on the Teensy 3.6 seems to be OK. I have tried adding a voltage divider on the CANH and CANL on the Teensy 3.6 with no results. The 120R resistor is already implemented as part of the transceiver module.
If your program spends time doing work to "consume" the incoming data, like a blocking write to SPI for 4-wire addressable LEDs, those buffers will allow USB to receive the next incoming data while you work on using the...
You do not normally need resistors, since you would use the internal pullups on the pins and not have a VCC supply at all. If you do have a VCC to the encoder then you may have a situation where one encoder position...
I did use you inbuilt firmware upload - same speed 4.86? Seems to go to Panic flash after 1 iteration with send of 0.02MB?
It finds a single T4 nicely on hub or left front port - but not on right front port - though...
@Paul: Tested with RX_NUM = 32. Speed went up from 13.5 to 13.6 but that might as well be some other effect or just by chance.
@Defragster: I cloned the core files from Pauls gitHub repo yesterday. There was some...
The Teensy 3.6 is not 5v input tolerant. The way you have connected the MCP2551 to the 5v supply and the logic out to the T3.6 is 5v. You might have damaged the T3.6.
You also need a 120R terminator on each end of...
@luni - Nice. I took a quick look 'software' - 'firmware' - looks like usable files are there somewhere for both CPU's :) I grabbed the first line of the latin text 930+ bytes and threw that in the short send I was...
I can certainly try. However, my gut feeling is that download speed is currently limited by the maximum 512 byte reported by Serial.available(). Here the receiving function. (Sent text has a '\0' for EOF, buffer lives...
Thanks for testing. Really good to see the new USB code is running faster!
If you're feeling like experimenting, any chance you might try running this with different numbers of buffers inside usb_serial.c. This is...
Hi there,
I'm wondering if the Bootloader Chips for sale on the PJRC store (part number IC_MKL02Z32_QFN16, https://www.pjrc.com/store/ic_mkl02.html) support booting the Teensy 4.0 (aka the NXP i.MX RT1062 chip)?
I...
I did a quick Win10 app to test the serial communication speed of a T4.0 and a T3.6 under somehow real life conditions. The app continuously downloads a block of 25kB to the Teensy. The teensy copies the received data...
Hi Semaj4712,
When I looked at the product webpage you linked to, I saw that the pinout in silkscreen on the shown switch differs from the switch pinout that you showed in the diagram.
Look at the position of the...
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...