@KurtE
Figured out what was happening with analogRead when doing implementing compare with the T4. The current analogRead gets stuck in in infinite loop on:
while (!(_padc.HS & ADC_HS_COCO0)) when the compare is...
That confirms you *do* have a libraries folder in Documents.
Look again, it's in Documents/Arduino/libraries/Audio.
You need to move or delete that library, because it's interfering with Arduino finding the one...
I've tested the pins with outputs and inputs and they seem to be ok. Sorry, you are right, I have done the voltage divider in the canrx and cantz, and not canh and canl. But it is still not working. Unfortunately I...
I do not know what's wrong here. But I do have another idea that might help give more info.
Click File > Preferences and turn on "Show verbose output during compilation". Then copy this into the code window and...
Thanks for the quick response, Paul. I don't have a libraries folder in my documents folder. Are you sure that's the directory I should b e looking for?
Thanks for this help! I have had the teensy selected in the tools> boards menu, so I went ahead and installed the teensyduino from the link you shared. Unfortunately, I'm still not seeing audio in the examples. Here are...
Here is support for the Logitech F310 Dual Gamepad using USBHost_t36 (The latest forked from @Pauls repository).
I do not usually play video games so just to be able to play around with USBHost_t36 and @Kurte's...
Assuming you are using the Teensy version of the Wire library.
Wire.h and Wire.cpp I believe are only used for AVR boards like Teensy 2.
WireKinetis.h/.cpp - Are used for Teeny 3.x and LC
WireIMXRT.h/.cpp - are...
Hi, I am using two Teensys that communicate with each other to handle separate parts of a project. I am currently designing the wiring for my system and need to power some 3.3V devices. So far, I am planning on using...
at a glance it looks like that should prevent the compiler from saying that - assuming it is called with no (params)? - confirm in verbose console output it is building with the sources from that edited folder (where...
I don't know whether the SD and ILI9341_t3 libraries play together nicely on the T4, but the SdFat and ILI9341_t3 libraries do. You can either make a minor tweak to one file in the SdFat library to get it to talk to the...
@defragster - Will have to remember that later. Luckily not building too much with it here...
@mjs513 - Pushed up a few more changes/fixes - Playing with the continuous update example. Having issues with enable...
Hi Folks.
Am working on a Mega based device found on Git. Have built one and got it working. It could use more horsepower and less hardware real estate so I've managed to get it *partially* working on a Teensy 3.2 or...
I googled ‘Arduino key matrix example’ , and the top hit was an article which explains it clearly:
https://www.baldengineer.com/arduino-keyboard-matrix-tutorial.html
That sounds great Paul. Other simple test done here looked good and reliable - even if it was not built for speed - it was reliable. And as noted dumping some @luni_LATIN text quickly pushed to 10 MB Rx in...
I have been making custom keyboards that only have 24 or fewer keys because the Teensy 2.0 only has 24 pins. I've come to the point where I want to create a keyboard that has a greater number of keys, so I surfed...
Well you might try calling beginTransaction and endTransaction in your code to manually switch between the two.
There are two separate SPI ports underneath the Teensy 4.0. For accessing a SD card, using the 8 pins...
Really good to know it's working well. I've already started on the other USB types with this receive code. Will probably start pushing code to github later today.
Looks like 8 buffers will be a pretty reasonable...
I know there are probably easier ways and maybe I will play around some more with it, but as for test sketch, can always use Audio library. Example one I just setup to run on T3.5 (or 6)...
#include <Audio.h>
//...
@PaulStoffregen
Tried the LSMinimumSystemVersion key and no go, same message. I already have 1.8.5 and TL 1.44 running on it, was just curious why your not recommending this code signed version for 10.8+ to save...
Maybe try editing Contents/Info.plist. Look for these lines:
<key>LSMinimumSystemVersion</key>
<string>10.8</string>
Arduino 1.8.5 definitely does work on 10.7. It has an older Java runtime.
Normally 1.8.6...
Hi balckketter!
The reason is actually the placement of those pins, I'm a new beginner in this field! I thought it would be easier to don't use the SD pins since it i use SPI to communicate with SD.
Here is the...
FYI
I was a little surprised (and thankful) that I was able to modify the boards.txt file in the app and gatekeeper didn't seem to mind. I even transferred the modified app to a mac mini running 10.13.6 and it ran...
Oh my... :o
This was a silly bug on the Teensy side. I was for some reason assuming that the transmitted 25kB are always synchronized with the data in the USB buffers. I fixed that and get the following result:
Max...
Sorry, but the USB pads on the bottom of Teensy 4.0 are for an additional USB host port, they aren't connected to the existing USB device port on the board used for connecting to the host computer.
There aren't...
Hi all,
I'd like to simultaneously record audio data from four plus MEMS microphones. For the moment, my understanding is that the Teensy4.0 supports a single I2S channel (thus supporting to mics). It would...
Any reason to not use the SD pins available on the bottom of the T4? There are a few breakout board designs that ease connection to those pads:
https://forum.pjrc.com/threads/57122-Teensy-4-0-Breakout-Kit...
Ok,
the S-Bus reader is running in a sub-routine of my flight-datar- ecorder sketch. The GPS is a UBLOX M8N running at 10 Hz but not with your code Brian, I had other code which worked and doing the migration will...
After looking at the source code, there doesn't appear to be support for the T4 in the SD_t3. Real bummer.
Might have to find a way to break out the bottom SPI connections into a separate board to use both devices.
...
Adding the pull up resistors did not fix the problem where the LCD and SD card couldn't work at the same time, but it did fix another problem.
I was having to unplug and re-plug in my SD card every time I uploaded...
Hi,
It might be trivial but I'm missing something.
I received the new teensy 4.0 this week and it seems great.
Now, I'm trying to connect a usb-c breakout, so I could use the new type of cables. I'm using this kind...
Hey Paul, your absolutely correct, I used the larger picture as a reference for the schematic, but on my breakout board, the GND is actually more in the middle like in the picture you posted. I think that is correct...
The ILI9341 module sold by PJRC differs from the one sold by Adafruit.
The SD card and LCD share a SPI bus on the module sold by Adafruit. I have gotten the two to work independently of each other, just not together...
Yes, VIN would be your CV signa. Analoginverted would go to your analog input on the teensy in the second example, and Analognoninverted would be your analog input on the teensy in the first.
The circuit will devide...
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...