OK let's see if Paul happens to stumble in that thread then. I suppose it would need a reboot of the Teensy, but that should not be an issue here. I did not get what you meant in your edit, sorry... :confused:
Hi
I have progammed a code with a touch screen (librarie Adafruit_FT6206.h). This touch screen runs perfect if I use only one form.
If I use a second form, the touch functionality from the first form is also...
Regarding the cpu usage:
It depends on the configuration (constructor arguments) of the class. The class has the same arguments as the AsyncAudioInputSPDIF3.
I just made some test to determine the typical range of of...
Thanks for the suggestion, but in this case I only have on e USB port and don't want to add a hub into the design. The data is packeted, so I can implement a mux/demux to combine the data into one USB stream.
Thanks.
Thanks Paul. Since it's clear my initial plan won't work, I can look at alternatives. Combining the 4 serial port data streams on the USB host and using one SerialUSB on the teensy and demuxing them is an option.
...
Here is the new full-model filter, which for now I've called AudioFilterLadder2. It's based on Huovilainen's full model, presented at DAFX 2004. Below are the filter_ladder2.cpp and .h files if you would like to try it...
Thanks for the suggestions. I've managed to get a 2x over-sampled version of the new model (which I'll describe in the next post) sounding as good as a 4x over-sampled version for all intents and purposes, so I don't...
Hi Blakaddr,, sorry, I was only trying to get people to think, apparently I missed some parts looking over the schematic.
The IRU LDO specifies an output capacitor with a minimum of 10uF, the text suggest to use...
I haven't used interrupts much as I wanted to go as fast as possible. I am sampling at a specific rate, so I poll on ARM_DWT_CYCCNT, which increments every CPU clock cycle. It takes about 4 or 5 clock cycles to sample...
button chatter, debounce needed. anyways, better to set state to the gpio result (HIGH (1) or LOW(0)) then set digitalwrite the state, that should solve that problem
state = digitalReadFast(interruptPin);
Could I get a little more of a hint please?
I am getting 0.5 microsecond interrupts, but shorter than that doesn’t work. Using the TeensyTimerTool.
Thank you.
Terry
So change of plan.
I changed the encoder library from encoder.h to Rotary.h and added debounced the button inputs.
This is what I have so far. Havent loaded it yet, Probably wont get a chance to do that until...
I'm starting a new project that will be using a Teensy 4.0 or 4.1, but I haven't ordered it yet, so I'm prototyping some concepts on an ATmega328 based SparkFun RedBoard. I'm simply testing interrupt code from a limit...
It's those little details that get me to. You know, the obvious ones that are so obvious you never notice them until they bite you:)
Anyway tonight I will download your latest and hopefully this weekend I can play with...
Okay, I think we've made progress.
I changed the library file so that it points to FXOS8700_I2C_ADDR3 instead of FXOS8700_I2C_ADDR0 and that bit works. I also did the same for the FXAS21002 and neither throw errors....
Wait nevermind it works, but it actually seems to be slower than before... I was clocking at about 500Hz for uploading, and now I'm only reaching ~330Hz. Delaying the flushes doesn't seem to work either, as it just...
Digital isolators, not opto-isolators. They are 1Mbps and up and logic inputs/outputs. They are becoming affordable and available
in a mix of directions per chip.
For instance:...
The T4 configures the GPT and PIT to clock at 24mhz, if you configure for 150mhz it will break the interval timer (PIT). here is example of GPT running at 150mhz...
I've updated the Teensy 3.2 page, under Power > VIN Pin, with a link to this thread. Hopefully if anyone else cuts the trace and needs to repair, it will help them find this info.
Perfect, now I'm having issues locating the SD card though. It keeps saying the card can't be located, but also BUILTIN_SDCARD isn't recognized. Is there a new variable that's used?
It found a chip with address 0x1F. From within the library:
#define FXOS8700_I2C_ADDR0 0x1E // SA1 = Gnd, SA0 = Gnd
#define FXOS8700_I2C_ADDR1 0x1D // SA1 = Gnd, SA0 = Vcc
#define...
Oh ok help says 1.54 beta 4 is installed, I notice you have a note about installing on a fresh arduino if I had this version previously. Should I uninstall and reinstall arduino then?
This is the serial output of the script. I assume the unknown chip is the IMU.
Scanning...
Device found at address 0x1F (unknown chip)
Device found at address 0x21 (MCP23017,MCP23008,PCF8574)
done
After downloading, you do need to actually run the installer. Quit Arduino before you run it.
If using Windows with Arduino installed the default way (the EXE installer, not the Windows store app) just click Next in...
Haha that's actually the link I used, I'm on windows so I just clicked the windows link there at the top and followed the download procedure. Did I have to uninstall my old teensyduino before or something? Sorry if...
As I understand it, any of the TMC drivers that can run on 3.3V or 5V are affected by it. PFET is not a bad idea at all. I've been through a lot of TMC driver datasheets (2208, 2209, 2130, 5160) and did not see...
I've been trying to update to 1.54 beta but I can't seem to find it in the list of installable versions on the arduino IDE. I tried searching online too and downloaded teensyduino 1.54 beta but it still says version...
I want to use the this product with a Teensy4.x:
https://www.tindie.com/products/onehorse/usfsmax-module-and-carrier/
The library is built for Teensy3.x and I need to upgrade it. It seems pretty straight forward to...
Hello everybody,
I was looking for a color display to integrate into a project that I am developing with the teensy 4.1. It must be readable under direct sunlight and low power consumption. I found THIS reflective...
I'm a little confused by your message. Are you saying that bluetooth data does stream into a USB controller, and that whether or not it uses up bandwidth that's shared with a given USB device depends on whether that USB...
Hi Edwin, thanks for the feedback. I've tried to answer all your questions comments below.
"In the schematic I see failrly low values of capacitors on the outputs of the voltage regulators, specially the LDO's...
First, upgrade to 1.54-beta7, if you haven't already. The old slow SD lib is gone, now just a wrapper for fast SdFat.
You may need to use IntervalTimer to run your code that collects incoming data, so it can...
Hello, I'm using the NXP Precision 9DOF FXOS8700 + FXAS21002 board with a teensy 4.0 but I've run into problems using the NXPMotionSenseLibrary.
I'll preface this by saying that I can successfully receive the raw...
It depends.
A typical modern PC might have 14 USB ports (including internal ones on motherboard headers), but only 3 USB controllers. Generally speaking, all the physical ports from the same controller share USB...
I did notice somewhere in the LiquidCrystalFast code something like:
digitalWrite (pin, HIGH) ; // pulse for at least 450ns
digitalWrite (pin, LOW) ;
which will obviously break on the T4 which can do those...
You are flushing every sample to SD card, flushing may involve several segment writes, segments are 512 bytes each.
Better to flush regularly in time, such as every second, than every sample.
So it still needs some work but this is what I have now:
#include*<Encoder.h>
Encoder knobLeft(8, 9); // Declare pins we will use for encoders
Encoder knobRight(11, 12);
void setup() {
pinMode(0,...
Does anybody know if these issues also effect the TMC2209? I've integrated a few of them onto a PCB with all the rest of my needed circuits. I can see how to add circuits to deal with the issues. If possible I don't...
Hi,
I'm working on a data collection device and am using the teensy 4.1 for its fast performance rate. However, while working on my project I have hit two road blocks:
1) The accelerometer I have been provided...
I don't know. I haven't tested these ancient LCDs in quite some time.
I wrote LiquidCrystalFast over 10 years ago, when we only had slow 8 bit boards. It was designed to get the best performance on that hardware. ...
Thank you for your answer. What a coincidence: I am using the GL.iNet GL-MT300N-V2 as well. :-)
My problem was that I did not know that I had to install the appropriate driver in order to be able to talk to the...
Resampling for inputs is a good thing.
Have measured how long it takes? (cpu usage)
How much memory does it need?
Would it work if I set the sampling rate of the library to 48k (or perhaps 96k) ?
Could the code...
Hi,
I tried to write a class that allows to resample the input data from the i2s slave inputs to the audio sample of the T4/ T4.1. The resampling class is a template class and the template argument is the audio input...
I am working on a project where I would like to stream large amounts of neural data to a computer via bluetooth, simultaneously with rapidly streaming Teensy 4.1 data via usb.
Does bluetooth data streaming count...
It looks like you have a nice project going on there, nice video's on youtube....
In the schematic I see failrly low values of capacitors on the outputs of the voltage regulators, specially the LDO's usually require...
Kurt is right. The Teensy 4.x hardware simply does not support enough endpoints to add a 4th CDC serial.
But it could be done on Teensy 3.x. Each CDC serial needs 2 endpoints (1 bidirectional data, 1 unidirectional...
Sorry, this is probably a question that maybe only Paul can answer,
But my gut tells me that you may not be able to do this.
That is the IMXRT1060RM section 42.2.1 mentions: Up to 8 bidirectional endpoints per each...
Note pin 26 (A12) is also a dedicated analog pin. From a coding point of view, it doesn't matter which pin you use.
Note, you might want to use A10/A11, and reserve pin A12 if you ever wanted to add sound effects. ...
Thanks,
I used a level shifter for all the pins to be safe, but it is good to know that only 1 level shifter is essential for the RW pin. Am I correct in my assumption that there are some compatibility issues with...
Perhaps the Pi doesn't have the needed USB serial driver installed. There should be a device like /dev/ttyACM0. You might also need to mess with stty to configure it or use a terminal emulator like screen, picoterm,...
First a word of caution. These displays usually run with 5V power. Of the 32 bit Teensy models, only 3.2 and 3.5 are 5V tolerant.
The 6 signal mode is safe, because all 6 signals are always in the Teensy-to-LCD...
Not all of the chip's pins can come to the outside pins on Teensy. Some are connected to the ethernet and flash chips on the PCB. Some aren't connected to anything at all, only because it's not physically feasible to...
I just switched between using LiquidCrystalFast and LiquidCrystal for the 2 types of pin configurations below:
#include <LiquidCrystalFast.h>
// initialize the library with the numbers of the interface pins...
Thanks, Michael.
I believe those pins are unpopulated as well. Is it simpler to use a dedicated analog input pin?
I was planning on using pin 26(A12) because it is right next to the power and gnd pins and that...
See code below for the I2C/SPI setup. It is currently set for I2C, you can see the SPI pins used below the I2C comments. There isn't much to it, all the work is happening in the library:
/*
Demonstration sketch...
Aargh and :D
Sometimes it is the simple things!
Like the right number of msc objects!
I pushed up a change in my temporary branch...
Sorry in this push, that I removed compiler stuff for MSC examples and...
Because the pins are needed for other things.
Usually I2C chips support different adresses, so for most applications three busses are enough.
Other things are important, too.
If your board hasn't used them, there are also pins 24/25 which are analog input only pins (A10, A11) that are on the inside row of pins (pin 25 is next to pin 21, and pin 24 is next to pin 22). You would need to...
I2C is a rather slow bus. You might be able to boost the speed of the bus by setting the I2C speed from its default setting of 100Khz by using the Wire.setClock function, but it depends on whether the device can go at...
Recently, I was able to build and run teensy_loader_cli for OpenWrt 19.07.7 running on an GL-iNet Mango GL-MT300N-V2 Mini Router.
As I mentioned in another thread, I'm able to reprogram the Teensy over the air, but...
You haven't posted your code so we can't see where the problem is. You also need to show the connections you are using
as there's more than one way to connect and some are inherently slower. The particular module is...
I've done something like this with plain serial. It's a little wonky if the serial port also has all the console messages. You can disable the console messages, but then debugging the system gets harder. What I do...
My setup is: RPi 3B+ and Teensy 4.1. I have loaded grblHAL on the Teensy and bCNC on the RPi. The moment I start bCNC it start running something and I can't do nothing to stop it, as can be seen in the video. I have no...
So I downloaded Teensyduino and Teensy Loader and got them installed but......Oh, no. It turns out the source code cannot be read once loaded onto the Teensy. I did not know that.
So change of plans....I guess I will...
I'm looking for some guidance on writing to LCD screens. I am running an adafruit 16x02 screen on newer Teensy boards (see test examples below)
1.) LiquidCrystalFast seems to yield poor results with the 3.6 and 4.0....
If speed is not paramount you could consider a PCF8574 I2C 8 bit expansion chip. The current per pin is 25ma with a total of 100ma for the package.
There are also 16bit versions viz MCP23017. This latter chip being...
Thanks Mark. Given that I have a dozen of these and the duty cycle could be high, I will plan on using something in-between the T4 and the Opto to be safe. I could use a simple NPN transistor, but I am considering a...
I just got mail that the Gamedunio 3X Dazzler with a Teensy specific shield for Teensy 4.0/4.1 is now available:
https://excamera.com/sphinx/store.html#gameduino-3x-dazzler-for-arduino-39
Here is the Gamedunio...
Hi,
I have tried expanding on TRIPLE SERIAL in the hope of creating HEPTA_SERIAL, which will give me Serial, plus SerialUSB1..6.
I have editied and created in some cases:
yield.cpp
serialEventUSB3.cpp...
After taking the advice to upgrade to the beta7 version the code compiles as fine as powder. Big thanks @@mjs513 @KurtE for the extremely fast reply and the advice, you guys are awesome.