There are mainly classes. But it seems that there are nearly no conflicting function names if not class based.
I found a way by using https://github.com/dwd31415/single-c-file for the headers and cpp files. There...
Hi,
Do you know the gameduino card and screen ?
https://excamera.com/sphinx/gameduino3/
These are the best arduino screens that I know of.
there is this mod also compatible with the library. This one goes up to...
Please notice, that your chunk size of 1200 is not optimal - a block is 512 bytes - so (2*512) would be better. Not sure how Bills library handles that. Perhaps it has its own buffer, so your chunk size may be ok....
The handling for me would be easier (in Arduino IDE) - not so much files.
But the main reason is that I can use it like a Teensy-Audio-Library object (e.g. as synth_dexed()). So others can use this object simply by...
I see no problem setting the CSCMR1 to be ipg_clk_root and using interval timers. As the clock is 6.25 times faster, the timing needs to be adjusted but still works. For example
IntervalTimer myTimer;
uint32_t...
Here is v1.01 (already....). Rather than dialing back resonance parameter to try to reduce self oscillation loudness, which has the disadvantage of often cutting out the self oscillation unintentionally, I've added a...
Hi Edwin, no, I think I made a mistake. My previous post was on a phone via email link and I thought the comment was directed at me (misread, my fault = apologies), but I think they were intended for Rolfdegen. Your...
About reports: 1.8.13, Teensyduino 1.53. I just installed the latest core from github and no change.
Sometimes it seems to be the writing that's filling the buffer (big jump between Before write and After write) and...
If they are poper c++ files
Using classes the merge should be possible without any issues, however if there is non classed functions with the same names in the CPP files then you get conflicts.
Just to confirm, which version of Teensyduino do you have installed? In Arduino, click Help > About to check.
Serial1.addMemoryForRead() is relatively new for Teensy 3.x.
Looks great - I'm very tempted to build one - I don't really need one, but I'm still very tempted!
One thought is that by replacing the opamps with something like the AD8656(*) you'd have enough drive
level to avoid...
About your 2 questions...
To answer directly, yes, you probably would see some improvement, but it's unlikely to be enough. This approach is simply not a good way to read a switch.
Hi,
sorry, this is more of a general C++ topic, but my question is aimed at a Teensy project. So I hope it's ok if I ask the question here.
I am developing MicroDexed, a 6 OP FM synth (compatible with a famous...
I'm trying to receive a 300,000 bytes SysEx message over midi with a Teensy 3.6 and to save it to the onboard SD card.
Thanks for Paul's suggestion to use Serial1.addMemoryForRead(serial1buffer, sizeOfSerial1buffer);...
On the ATmega328 multiple interrupts of the same interrupt vector are discarded - not queued. It
only queues interrupts of different types (in other words the queue has one entry per vector).
Not sure if the T4 is...
Could you put a block schematic for the DSP used in the README file, and it needs high-level comments
and API spec. - this all goes in gui/index.html ultimately of course.
You need to programmatically change the data used for touch event mapping when you change which form is
presented on the screen. If you make this data-driven this will be more straight-forward. Maintain lists or...
Quick read suggest a FORM is a screen layout of some button images.
A touch on those image areas is calculated as a hit if the conditional code in TouchEingabe() finds the touch point inside one of the tested areas?...
Personally, I prefer the classic teensy format. I know which will be larger with the 1170.
If the MicroMod version is there in addition, why not but if not I prefer to stay on the classic teensy format
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,...