I actually added those lines because it wasn't working properly, just in case... I let Teensy run over the weekend and there was no change in EEPROM values (nothing was written), so I assume there is no problem in the...
Thank you. I tried compiling using your code and I'm getting "Compilation error: 'RTC_TPR' was not declared in this scope". Is there a library I'm missing?
It feels like something related to what you're doing in your ISRs, but that's just a guess. You don't need to disable interrupts when reading/writing EEPROM, so as a quick test, you could try commenting out those lines...
Yes, as mentioned Arduino IDE 2.0.5 is by default with 1.57.2, and I have been testing that today.
But I could/would very well use beta if that provides help with the wireless mouse etc. and not too badly breaks...
Hi joshnishikawa :) .. just picking up this older thread and wanted to send you my THANKY YOU, as I always use (and love) your library, works awesome, great ! fyi: Using your TouchSwitch (on-off_stable example)
The...
@Garug - not sure here... Especially if for example your Arduino 1.x version and 2.x version are both running the same version of Teensyduino code. Then I would think
they should give you more or less the same...
Hi, I produce midi controllers for use in live shows and one of my customers recently reported that using a Motorola radio (walkie talkie) in close proximity of the controller was causing it to spontaneously send a MIDI...
Thanks for the reply, KurtE. The RawHID was a red herring. I know all hubs are not created equal, and I tested with a few more hubs and could not reproduce the issue. The second test with the devices set to USB MIDI,...
@yeahtuna Quick thing on your sketch, which may or may not help.
On the second teensy, it logically looks like it boils down to:
void loop() {
myusb.Task();
if (rawHIDTimer > 50) {
...
Hi,
I have created an audio class that allows to create waveforms (square, triangle, sawtooth) by addition from sine waves. I want to use the class for a synth that should not get aliasing problems in the higher...
Thanks for trying to help me, Joe... That Int in the name was actually meant as eeprom_readInteger(), eeprom_writeInteger()... But I have a few ISR in the code, that's why I'm disabling and re-enabling interrups, when...
Here's a sketch to show that the USB Host MIDI driver is causing the Mass Storage driver to fail.
Both teensy devices should be running the same sketch included below. If the test is performed without the second...
That is not the serial port, and it's just an illustration to get the idea across. The first teensy is of course attached to a computer. It looks like the real culprit is the MIDI driver. I'll post an updated test.
Not sure that would ever work the way you have it set up. As far I as know you are only going to be able to access the mscDrive if its hooked up via the USBHost port not the serial port. Running the same sketch on the...
It's really not possible to help without seeing a complete program, so please try to reduce what you're doing to a small, working program that shows the issue. With that said, does "Int" stand for interrupt in these...
You may also want to look at https://forum.pjrc.com/threads/72233-OTA-through-Ethernet-with-Teensy-4-1 for and example using FlasherX to perform updates over the ethernet interface.
The way this works is that as the...
So actually I don't need to write to EEPROM at all, but EEPROM changes randomly on every restart when my code is running... Here, first at address 30 the value 250 is zeroed after a reboot, then at address 32 value 6 is...
Here is another example - I wrote 4 at address 26, but after turning Teensy off and on, I got a value of 0 at address 12 ... Then I just turned Teensy off and on again without any write and I got a random value of 6577...
I just wanted to say that JackTrip is an awesome project, never heard of it and I will be digging in for sure.
Exactly what connection is needed electrically to connect an external clock to the Teensy? I know I've...
Hi Joe, thanks for your time, your code is working as it should, of course... Not sure what is happening in my case...
Just to test the issue I'm trying to read EEPROM at the beginnig of the setup(), and then...
I've also got one of these old Kingston Datatraveler drives (a 4GB). When connected directly to a Teensy 4.1 it will not work at all, not matter how long the timeouts are or if the initial reset is skipped - the...
Thanks, with the help of /Users/{username}/Library/Arduino15/packages/teensy/hardware/avr/ and Go I found the relevant files
It seems the Arduino IDE 2.0.5 is by default with 1.57.2
also after
void...
As far as I can tell, in the code printed, you are using the standard SPI pins (MOSI = 11, MISO = 12, SCLK = 13). Note the Teensy LC, 3.2, 3.5, and 3.6 allow you to use alternate SPI pins (MOSI = 7, MISO = 8, SCLK =...
Well I've been hacking with this some more and I got this ADAT going on SAI3 (Teensy 4.x only), that's right the SAI3 used for Medium Quality Sound (MQS).:D Tx_Data0 out on Pin 31- EMC36,
There is also MCLK3 on Pin...
I just wired my Teensy 4.1 up using Adafruit's WifiNINA / Airlift library, and it seems to be working fine for me. I did not have any luck at redefining SPI pins, although I didn't try too hard on it. Here is my working...
Is only a single QSPI/PSRAM chip needed?
Most of those pads look awful. As long as they aren't shorted there might be a way to get one PSRAM working.
refer to the T_4.1 card and get the orientation right ...
The...
Long story short, I tried surface mounting additional PSRAM onto my Teensy 4.1 without having the requisite soldering skills to do so. As you can imagine, this resulted in the additional PSRAM not being recognized, and...
Yes and since this one is R2R, that dovetails with another lab where they have to build a 3-bit R2R DAC by hand :cool:
My laser galvo project is AC coupled, but if I decide to do anything where they have to measure...
I've got labs already using the 4725 but with either an Arduino or a RPi; however, I've not been able to drive the I2C bus fast enough for my tastes at full bit depth. For teaching purposes this is ok but somewhat...
Here is a minimal setup to cause the MassStorageDriver to fail.
Both teensy devices should be running the same sketch included below. If the test is performed without the second teensy connected to the USB host...
Sorry, there is not much of checking in this code. Like most of the commands in that sketch, it runs off of the currently selected drive.
SO in Command prompt after comes up if you use the 1 command
1<cr>
It will...
I want to see if I can implement an NTP and PTP client on a Teensy 4.1. I can send/encode and recieve/decode the NTP and PTP packets to/from the servers all day. But, I've only been successful at getting epoch to the...
@KurtE - Linux Arduino 1,.8.19 TD1.58B3 - Downloaded MTP_TEENY-MAIN.zip. Setup T4.1 and uploaded. All good. Then selected:
store:2 storage:30001 name:MSC0-126GEXFAT fs:200030cc
Ran this:
w 1048576 512 test.txt
The...
I spoke too soon, I guess. Even though everything was working (I swear it was) after I added the SPI.begin() call as I described before...now it is not. For either the Teensy 4.0 or 4.1 I now get the constant restarting...
This might be somewhat what you are looking for: https://github.com/joepasquariello/FlasherX
I have used that code to be able to update a Teensy MicroMod from an SDCard. It is entirely possible to use it for OTA...
If more than one board has this issue then I don't think debris is the problem.
You need to measure the voltages to get a 'feel' to what is going wrong. 3.3 Volts should be 3.3 Volts +/- about 50 millivolts, too...
I'll holler uncle.
I redid the process (0.58.3 -> 1.57.2) and got no error.
I have no idea what happened, but I am back on 1.57.2 and this time it works.
- Wes, W5ZZO
It's not just you. This probably explains the problems I'm seeing. I have a hub / MIDI / rawUSB also running concurrently, so my device is putting ehci through its paces. Sometimes a drive will timeout during...
Okay, I cranked the mic gain up to 52 dB (thank you h4) -- and now the wav has good audio level -- including a terrible noise background! Now I need shielded audio mic lines? Can't do that in the "curly" cable coming...
Thanks for the reply, Paul. I checked the WiFiNINA library and I found a begin call in one of the utility classes. But it is unclear to me that it is called. So, I added one to my code right after setting all of the...
If you are curious about MTP:
The main document I look at when doing this, can be downloaded from: https://www.usb.org/document-library/media-transfer-protocol-v11-spec-and-mtp-v11-adopters-agreement
This gives you a...
Does your program have SPI.begin() somewhere? Or maybe it's inside a library you're using?
If you call any SPI functions without first calling SPI.begin(), your program can crash when it tries to access the SPI...
Odd that you can't attach stuff, not much I can do to help with that! Could be a forum restriction on new joiners, is the only thing I can think of. Can you put the WAV on a DropBox or Google drive, with public access?...
Hi everyone, my name is Andrew and I am looking for some help with programming this guitar, which I call the Kimura Gumo. I run an open source guitar company called Praxis Guitars. All of our guitar designs are...
FWIW, this is the relevant code that I use to connect to the Airlift. But I don't think it is a code problem, since it works fine on the Teensy 3.5.
const uint8_t WIFI_SPI_CS0_PIN = 10; // SPI CS0 used by...
Sure thought I had it when I realized I was recording with the Teensy connected to my PC. So I recorded 00015.wav connected to an external power pack. Still no amplitude in the playback on my PC (the greeting.wav plays...
Yes. Look for the 2 links below the parts placement image. One of those has lots of info, including the parts list. Technically that list is for the older version, but pretty much all the parts are the same. For the...
Hello everyone,
I've been struggling recently with my Teensy 4.0 with audio shield and got stuck with cracking noises from any file including example files from WavFilePlayer. The sound seems to be distorted and...
I installed Beta 3 and everything worked. But I got tired of being nagged about updating my boards, so I reverted to 1.5.7 (awaiting release).
I got this error:
exec:...
That looks like a noisy example uploaded to the forum recently. Here it is before:
and now, after I got rid of a loud glitch at the end, then did Effect / Normalize:
Couldn't hear it before I did that...
EDIT:...
Many thanks for that - SD card tests OK.
The next problem, however...
I downloaded the program for the wedding audio guestbook from https://github.com/playfultechnology/audio-guestbook - and following the youtube...
I have successfully used the Adafruit Airlift board with Teensy 3.5 using SCK/CS/MISO/MOSI pins. I used the Adafruit fork of the WiFiNINA library (which allows one to set the MISO/MOSI/etc pins), and I am able to...
Thank you h4yn0nnym0u5e -- Learned something new today (the conversion of kbps from ksps)! I did the Insert Image thing (and upload of the .jpg file) but it didn't work. I'll try it again here for practice. Guess I'll...
Guarug:
Another Mac user here, to find any folder of file for that matter you can simply use the Go menu in the Finder:
Go/Go to Folder
and then type in the path name into the window that opens, it does not matter if...
What is the recommended way to integrate tycommander to IDE 2.0.4 for a Raspberry Pi(64 bit)? In IDE1, I knew where the files were. In IDE2, umm, I have no idea where they are stored? This is the appImage from...
To insert an image, use the insert image button:
Note you have to choose the file, then upload it.
You may need to zip a WAV file in order to upload it, not sure.
705kbps is correct: 44100 ksps = 88200 kBps =...
A good solution for student lab use might be the Adafruit MCP4728 quad 12-Bit DAC
https://learn.adafruit.com/adafruit-mcp4728-i2c-quad-dac
It's reasonably priced at $7.50 and in stock. It uses an I2C interface,...
I am right about the chunk lengths - here's the Goldwave error message:
As I also noted, I have players which play the resulting files without complaint; but I don't think it's totally unreasonable to say "it could...
Starting from your code, I made a short working program that reads your 20 x 2-byte locations, increments and writes them back. This test works for me, with the data shown below. Note that it also works fine if I...
I'd like to build something that can do OTA firmware updates, with no PC or other controller in the loop.
The way I would do this on a non-teensy setup would be to have a small boot shim at the standard boot address,...
I am using Teensy 4.1 with 4 MEMs microphones. I have been using the audio design tool to plot and record the peaks, which has been very helpful, but I would like to record the raw signal. I am looking for the best way...
So I am using a teensy 4.1 and the 4x audio sheild. I'm using the original code to program the board. The only change I made is to use a RAW greeting file instead of a wav file because the wav file playback was...
@wwatson @mjs513 @defragster and all
I hacked up the USB_MTP-logger.ino sketch and added a write file test. Pretty primitive:
void test_write_file(int ch) {
test_file_write_size = CommandLineReadNextNumber(ch,...
So... I've been googling around for CS42448 usage elsewhere for inspiration, and came across the following.. Does it look similar? Other than the teensy specific interface layout, which I could work around with a ribbon...
Sorry, I am just trying to be pragmatic here and go with the flow.
As I mentioned, I have tried to keep things within the ways that Paul has used in some of these areas. And with the case you mentioned, tried to...
The mass storage code definitely isn't doing anything like that, data transfers are being queued with interrupts enabled which means there is the potential for list corruption (due to the interrupt service routine...
I've added a "Using PT8211 Without Audio Library" section which links to this forum thread on the PT8211 page.
https://www.pjrc.com/store/pt8211_kit.html
Hopefully it will help everyone who wishes for use PT8211...
Again I am not a MAC person, but have pulled mine out of the cupboard, and going to update it now... was 2.0.3...
Easy parts: What version of Teensyduino are you running?
With Arduino 2.x:
You can see it a...
On MacOS, the default location when using Arduino 2.0.x is /Users/{username}/Library/Arduino15/packages/teensy/hardware/avr/{version}/libraries/USBHost_t36
The "Library" folder in your home directory is usually...
Ok, I didn't post on the MicroPython forum but I got it working.
- On the Teensy's flash: main.py and all other code
- On the SD card: boot.py, webserver files and log files
boot.py has only one line of code:...