I see the problem rather with a Teensy which is deployed within a custom device. Imagine that the end user is not aware of the fact that it's a program button and tries to use it as a reset button. Result is, the Teensy...
As one can see in many threads of these forums, there is a general misconception about that button which is erroneously seen as a reset knob. Thus, defaulting to reset/reboot after a timeout sounds like a very good idea!
So, it must be something different which makes the USB HID communication hang at a point that the Arduino IDE stalls. That’s definitively not normal. If I were you, I’d look for anomalies in the system log files....
The button is NOT a reset button, it’s a PGM button which forces the Teensy into programming mode, in case of troubled USB connection. Since you are on Linux, did you install the needed undeveloped rules as required and...
Yes, because my circuit would work and yours not... :)
You might still try to build yours for pedagogic fun, just to see that in the best case it just would not work and in the worst case (drain-gate capacitance...
So, you might go with the USB hub. The latter will have to power the Teensy and probably other devices present on the hub, so count 500mA per USB device connected for the current which the buck converter should be able...
Why making it so complicated ? No USB hub is needed for that. You can use a 14.4V to 5V converter and power the Teensy directly via its Vin pin with these 5V.
Here it is :
R1 serves as a bypass resistor for the gate-source capacitance of the MOSFET and would by around 10kOhm when using a common N-MOSFET like the BS170 as long as the switching frequency wouldn't go up in...
Easiest way to diagnose the problem with your setup is taking a logic analyzer and an oscilloscope to check the signal quality arriving at the TFT in general, making sure that there is neither ringing nor slow signal...
Apparently, this library is designed to rely on a bunch of #defines for every different (supported) MCU. If there aren’t the needed definitions in the ino file or in the ..._boards_added.h file, the library won’t simply...
Man... Read the reference manual... By default and to save energy, many of the internal peripherals like the DAC are disabled by default and trying to access the corresponding registers leads to a hard fault.
While the...
Basically, the human ear can (in the best case) perceive dynamics of ~120dB which means that true 20 or 21 bit would be sufficient to cover everything.
Using a higher resolution (24bit or 32bit) during digital signal...
It seems that there is no better solution in terms of quality/price on the market for the moment. Since the SD card access seems to stray into the analog audio section, approved techniques like separate power supplies...
After looking at the source code of the play_sd_wav.h and play_sd_wav.cpp files of the audio library, I can tell you that it's hard coded in 2ch mode (allocating 2 channel buffers and so on). To work in 4ch mode, a new...
This code uses generic AVR (original 8bit Arduino etc.) registers to define the interrupt setup and handling. This can not work on modern 32bit ARM processors like the Teensy 3.x series. You’ll have to rewrite the...
Hi Bart,
only Paul and Robin have access to the IP block list. So, you'd have to wait until one of them might look up and do something about your IP, but everybody is actually pretty busy with developing for and beta...
There are so called pogo pins which are soldered into the pcb and which, thanks to an integrated spring, will contact the pads when the Teensy is inserted into its socket. Another way is using pin headers and solder...
Actually, you are driving only 15 mcp input pins (0 to 14) high with your pull-up configuration which would explain the missing bit:
// setup pins, pullup resistor and INPUT
for (int i = 0; i < 15; i++) {
...
Just a guess: The USB cable you are using for the Teensy, is it a really full USB cable with all data line connections wired or is it a simple USB charger cable without data link?
Hammond Mfg does produce several series of housings for electronic projects with different IP (humidity protection) classes. I'd go for that instead, to prevent thermal or condensation problems:...
Since I was running short on pins with a T3.2, I decided to go for a PCM5102 from TI, using a cheap AliExpress breakout board for development. This chip is also Plug and Play and has several advantages over the CS4334: ...
An analogWrite() will leave the pin connected to the DAC output (to maintain the output signal). An analogRead() on the same pin will disconnect the pin from the DAC and connect it to the ADC signal multiplexer which is...
The 6bit DACs are not accessible from outside. They are kind of hardwired to the comparators.
The 12bit DAC should theoretically be able to deliver a voltage which the ADCs could use as a reference by adding an...
I think it’s mainly to ease people’s life that Paul created the Teensyduino plugin for the Arduino IDE. The Teensyduino core files handle (among others) the boot process and the startup hardware configuration. Since...
If I’m not dyslexic, the question was about iOS and not Windows. It is known that Windows does not only have a bunch of problems, but it is a problem in itself. But I’d also be interested to read from an iOS expert how...
Help in these forums is provided by unpaid volunteers (even Paul does unpaid volunteering here) who are willing to sacrifice their free time to help everybody with Teensy platform specific issues. But C++ class...
These analog multiplexers are not ideal switches, they need time to settle and they have a nonlinear series resistance from 40 to 250 Ohms which can highly trouble these SAR ADCs with their switched capacitor inputs....
Very important point! In opposite to these old and asthmatic 8bit AVR processors, where the few integrated peripheral blocks are always enabled, the modern 32bit ARM processors have a very sophisticated energy...
As old javascript developers know, key codes are not always identical to ASCII, since there are more and wider character sets than ASCII and since there are hundreds of different keyboard layouts. If you want to emulate...
Did you check if the VM does work correctly with the internal keyboard, or will these keystrokes also be unshifted ? Or does the VM perhaps have a different caps lock mechanism?
I wonder why one would ask that...
All read or write accesses to h/w registers can fail on the Teensy if the corresponding peripheral has not been previously activated in the system integration module (SIM). People are often not aware of this need...
I did draw the schematics with my words in a way that an experienced technician should be able to understand and to reproduce it, I think. Sorry if I haven’t been clear enough. I’m actually in Switzerland, teaching...
Basically, this is a potential problem with all MCUs, be their logic voltage 5V, 3.3V or 1.8V. If an input signal is too weak, one has to design an appropriate amplifier. The SN74LVC1404 can be used for that. It...
Ok, I‘ll clean that up...
Edit: Done. @Paul: if you‘ll need a short break from T4, you might perhaps consider processing the long, long ip blocklist...
Ask in the Arduino forums or look at the source code of the Arduino SPI library. There must be a documented default pin configuration somewhere.
Edit: A quick look at the Arduino library reference let me find this...
Instead of potentiometers, use Alps rotary encoders. These are cheaper and less bulky than potentiometers. Especially for Midi stuff, where almost everything is quantified in 0 to 127 steps, using analog potentiometers...
That seems to be a handbrake at a first glance, yes. But since no graphics, fonts and other heavy payload (it's all already precompiled in the display) has to go over that connection, just the raw data to display and a...
Depending on the project details, using a Nextion HMI display might make sense. These exist in different sizes from 2.4 to 7 inch and have touch functionality. They have an integrated cortex M0 processor and a free...
No, you can't since only one single interrupt vector can be assigned at a time. But you could use "BOTH" and check for the pin voltage (i.e. with digitalReadFast()) within your interrupt handler to check if it was...
You are asking strange questions... Why don’t you simply hook up your logic analyzer or your oscilloscope to see what happens with these pins?
Even the cheapest logic analyzers (Saleae Logic clones can be found on...
pinMode() is needed to configure the pins (which are hi-z and/or analog by default) as GPIO pins by changing the pinMUX configuration for each pin from ALT0 to ALT1.
This might be confusing, since on the old AVR...
Professional circuit design requires taking all "worst case" scenarios into account. And yes, there are "USB chargers" like the one for the iPads which can deliver up to 2.4A. But you can't know in advance how your...
The ADCs have 12bit resolution. You can even set them to 16bit, but the last 3-4 bits will mostly contain noise, so we start with 12 usable bits which corresponds to 4096 steps. Then, you might choose between two...
30 simple LEDs à 20mA = 600mA. 30 RGB LEDS à 60mA = 1800mA. Both variants exceed the USB specification where one port can deliver a maximum of 500mA. Thus, you'll have to invest into an extra power supply for the LEDs....
You have given the answer yourself, at the end of your question. :)
Depending on your LCD’s brand and model (these are built by many different manufacturers), it might work with a 5V power supply on one side and...
The audio shield does just the A/D and D/A conversion, all processing is done within the Teensy. There is no hard limit for the number of wave table objects, everything depends on the over all memory consumption of your...
AFAIK, there should only one single instance of Teensy_reboot be running. The Teensy loader should always "grab" the existing instance and use it instead of launching a new one. I've never seen your phenomenon happen,...
Although this is not forcibly a Teensy question, I only can give you a few hints: TDM is a serial audio format, similar to I2S but allowing more audio channels (for example 4) in a frame than the latter which is limited...
1.) Arduino comes with its own bundled Java runtime. There is no need for an extra Java installation.
2.) There is a known incompatibility between Teensyduino and the Arduino releases which can be installed through...
Telling us simply "it does not work" is not enough to give efficient help. The forum rule requires that you publish all needed information like code, schematics, and so on, so that others might precisely reproduce your...
You had been banned as a suspected spammer, not because of the domain, but (I can only guess, I'm not the admin who banned you) based on what had been posted (content or form) from your account. I lifted the ban for the...
The second USB (host) port can be used to send Midi over USB.
Besides the two USB ports, the Teensy 3.6 has 6 hardware UARTs which can do „classic“ Midi with DIN plugs.
Reading the exhaustive documentation of the audio library (pdf, tutorial video, and GUI design tool) on the PJRC website will tell you that you can use the audio library without the audio shield. The audio libray works...
I2C is not designed to handle such scenarios. It was invented by Philips to allow communication between ICs on the same circuit board and with common power supply, i.e. in TV sets. Leaving a unpowered Teensy on the I2C...
Nobody hinders you from forking the audio library on GitHub and to create a 24/32bit and 48/96kHz variant. If you are there, you might add a breakout board for the PCM3060. It's no witchcraft.
Dear sir. "Dose" you not have had a look onto the Teensy reference page of the PJRC website (https://pjrc.com/teensy/pinout.html)? There you could see that there are no additional USB pins or pads on the Teensy 2.0++.
Creating (and destroying) objects dynamically during runtime is extremely dangerous on embedded systems with limited RAM. There is the theoretic opportunity du use delete for object pointers, but the memory would not be...
You are doing a weird/silly thing, which is creating a new AudioConnection (and eat up new memory) with each loop iteration until the RAM is full.
You should initialize connection = new...
If I understand well, you are writing blocks of 6 bytes, 1300 times a second, to the SD card, which seems to be highly inefficient in my modest old eyes. Best SD performance is normally obtained when writing complete...
Ok, I'd be ready to implement the analogReference() function in the adc and adcs objects and do a pull request to save everybody most of the work.
When it comes to the variable clock, it is true that the new Teensy...
Please accept my apologies. It was for sure not my intention to tell you how to do your job, but from reading what you wrote before, I wasn't able to see that you were definitively looking for a cheap and simple...
Basically, everything you want can be already done. You'd naturally not have the advantage of using the audio library (in fact, it's called "audio" and not "DC" or "biomedical") but you'd need to write some more lines...
Sorry, defragster, it's perhaps because I'm not a native English speaker. For me, sounded explicit enough...
Besides of that, I guess (including my own professional experience) that Eclipse has established itself as...
Playing a bit with the audio design tool, you'll discover that you might draw a patch cord from one ADC to multiple effects. Then, you would place a patch cord from each effect output towards a mixer block which allows...
The OP asked explicitly about Eclipse, so it's somewhat strange that this thread went totally noisy with unsolicited stuff and OT within only 9 posts.
Following the Sloeber install guidelines, use the...
I‘m using „Sloeber“ (written and actively maintained by a Belgian or Dutch guy called Jantje) which exists either as an Arduino plugin for an existing Eclipse Installation or as a full bundle including the needed...
Yes, a small local MCU like a Teensy LC or an Arduino mini might capture and concentrate the data and transmit it via Serial/RS232/RS485 or any other technology which is designed to support longer wiring to the main MCU.
Frank is right, that’s ways too much wiring capacitance since the clock and data pins will see all these wires in parallel. And that’s not what SPI was designed for. SPI is (like I2C) a protocol to transmit data from IC...
I'd not say a bug, rather an annoyance. And it's not always the case. Some macOS versions seem to block the window access when it is not in the foreground, others don't. The current 10.14.3 beta does. In ever case, it's...
I wrote to Robin today that I was ready to give my list position to another person since I won't be able to do much testing/developing until earliest mid February. But I will naturally read and follow here how it goes.
Since the Teensy's internal DAC(s) and ADCs have only useable 12bit resolution (even when you select higher resolution, the finer "bits" will mostly contain noise), people looking for more Hifi-like audio quality use...