I'm considering wrapping up what we have now as version 1.58. The main idea is publishing the new toolchain, updates for MacOS Ventura, and some bug fixes.... but intentionally not putting many new features into 1.58...
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...
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...
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...
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...
It wasn't ever turned into a commercial product, but this board was updated for Teensy 4.x. New version also on OSH Park.
https://oshpark.com/shared_projects/gVFy0fWQ
USB is the fastest way in terms of bandwidth, as it's 480 Mbit/sec and uses bus master DMA. You would need a USB hub connected to the main Teensy's USB host port.
Oh, I probably didn't explain this well. The pin 8 issue is purely a matter of hardware. Or at least I think it is, but I'm going only from the words you wrote. I can't see what you've actually done or how the wires...
Unlike Windows which only allows 1 program to open a serial port, Linux allows 2 or more programs to open the device.
But Linux doesn't handle that situation gracefully. You might imagine is would send a copy of...
Are both trying to transmit data to Teensy pin 8?
You probably need to sever the connection between the audio shield and pin 8, so it doesn't conflict with the microphone's data. The audio shield has a place to cut...
I'm guessing you're using Arduino 2.0.4?
With the older versions of Arduino, running the Teensyduino installer was necessary. It detects pre-10 versions of Windows which need the serial driver INF and Linux systems...
Run these commands in a terminal
cd /tmp
wget https://www.pjrc.com/teensy/00-teensy.rules
sudo cp 00-teensy.rules /etc/udev/rules.d/
Physically unplug and reconnect the USB cable for the newly install udev rules...
Both PT8211 and MQS sound pretty good to my ears. If you have a 1K resistor and 0.01uF capacitor handy, give MQS a quick try. I believe you may be surprised how good it sounds.
MQS uses a noise shaping algorithm,...
As a very first step, open your code in Arduino IDE and click Tools > Board to select Teensy 4.1. Then click Verify to check if your code is able to compile.
If your program uses Arduino functions like...
Looks like the mail server had the old forum IP number on its list of places allowed to send. Edited just now. Hopefully it will fix the missing notifications.
Or use waveform synth rather than samples stored in flash. Or just use fewer / smaller samples.
But yeah, 128K flash on the original Teensy 3.0 is kinda limiting when you want to include any sound samples or bitmap...
Yes, you can customize fault handling.
Teensy 4 already has a default fault handler which captures basic info. You can read the info at startup with CrashReport.
Probably the simplest way to get started would...
It's a nice idea, and you're certainly not the only person to have hoped for this. But the reality of the underlying technology an adaptor board that provides 100% compatibility just isn't feasible. The processors on...
U4 is the chip expected to get hot if the 3.3V power is shorted anywhere on the board.
Try measuring the 3.3V power. If you see 3.3V, then looking at chips other than U4 may be worthwhile. But if you get...
The servers are physically located in Tampa, Florida, USA. Just to put the ping times in perspective.
Can anyone outside the US comment with the ping times? Many times I've wondered if we should use a CDN. Or...
Right now, the urgent situation is IP numbers are getting reassigned, so we have to switch to different IP numbers. Both servers need to change IP numbers.
The path of least resistance probably would have been to...
Oh, looks like we're going to have about 20 minutes down time.... soon, while they do some sort of reconfiguration on the server. Should be just the forum down. Main site should stay up.
Indeed it's never that simple. The forum also needs to change IP number. Looks like it will become 66.232.106.something.
The hosting company is working on remote console access, which apparently never got set up...
The server switch-over is at about 95%. Hopefully the site is all working at the new server (162.254.150.250)?
Question... are you getting the forum's notification emails?
Now for some guesswork, since I don't know and can't reproduce the problem.
First, check which version of Teensyduino you have. In Arduino 1.8.x, click Help > About. In Arduino 2.0.4, click Boards Manager and...
I ran it here on a Teensy 4.1 with PT8211. I've uploaded about a dozen times. Haven't needed to press the pushbutton on Teensy 4.1 yet.
Robin just walked in to see what that weird sound was about, as the red audio...
Looks like this from your makefile (color for each part)
$(TARGET).elf: $(OBJS) $(MCU_LD)
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
resulted in this command line executed (color for each resulting part of the...
This weekend we're moving the main PJRC website to a new server. Hopefully everything will go smoothly and the only disruption will be the shopping cart offline for several hours.
The forum is hosted by a separate...
Cutting the red wire is a good approach if using external power.
Removing the TPD3S014 chip doesn't change anything.
Also, normally TPD3S014 doesn't overheat, and it certainly should not overheat if you haven't...
Prices you see at PJRC and most other US websites don't include European VAT or tariff. Often the carrier will demand an additional payment when they deliver the package, to collect the VAT and tariff charges. ...
Sure enough, I can see the overshoot and undershoot on the cyan waveform.
Looks like your scope is triggering on channel 2 (cyan). Can you change it to trigger on channel 3 (magenta), so we can get a good look at...
Try changing #include <FLOAT.h> to #include <float.h>.
The filename is all lowercase. Using uppercase probably works on Windows and most MacOS, but will fail with a case sensitive filesystem used most Linux systems...
This is incorrect.
Teensy 4.x after the 15 sec restore, and every brand new Teensy, does indeed have USB communication as RawHID. The tiny program packed into just 4K at the end of flash memory, which gets copied to...
Wow, this is overly hostile and downright rude.
He did essentially show us the code in msg #9, it turns out to be just one of the published examples with IP number edited for his LAN... which is what I had assumed...
Try something like:
File subdir = sdSDIO.open("/EnvironmentalData/mydata.txt", FILE_WRITE_BEGIN);
If that doesn't solve your problem, try showing us a small but complete program so we can see and reproduce the...
Are you sure that new ethernet to usb c adaptor really works?
Theoretically, yes, this is possible. Or at least I believe it is possible based on the documentation. I have not personally tried it.
As a...
Can you show us the measurement? If your scope doesn't have screen capture, just a quick cell phone photo of the screen should do.
I tried the code from msg #4. Amazingly it does measure 600 Hz even when using pin...
This would definitely break the power up sequence at step #7. Details here: (scroll down to "Power Up Sequence")
https://www.pjrc.com/store/ic_mkl02_t4.html
The bootloader chip waits until the 3.3V power reaches...
You would need to wire the 2nd board's SDA & SCL signals to a different I2C port.
Later in 2023 we'll get the 32 pin chips and start making Rev D again.
Indeed DP83825 does support Auto-MDIX. It's inside the chip on Teensy 4.1, not part of the ethernet kit which adds the magjack.
Auto-MDIX is enabled by default. You can test it by starting with a known-good system...
Can you try newer cards, like 8GB or larger?
Modern versions of SdFat have a known bug where very old SD cards don't work with SDIO (the built in socket or BUILTIN_SDCARD). Usually these ancient cards are 64MB to...
Yeah, it's bytes.
Where KB is understood to mean 1024 bytes, and typically you would round down to avoid any risk of overstating the amount of available memory, the answer would be 305KB.
Look in /Users/{yourname}/Library/Arduino15/packages/teensy/hardware/avr/{version}/cores/teensy4
where {yourname} is your username on your Mac and {version} is whatever Teensy package version you have installed,...
To explain further, that info you're seeing is a summary of the anticipated memory usage of the program you've just compiled. This is before the program runs on your Teensy hardware. It's just info about the file on...
That's not the test result.
To see the test result, after uploading you need to open the serial monitor. If you didn't select the proper port before uploading, you need to select it first with Tools > Port. ...
Yes, check out Bill Porter's EasyTransfer library. It's included with the Teensyduino installer. For non-Teensy boards, I'm sure you can find a copy online.
You might need a slower SPI clock speed. Wiring could be an issue, but my main concern is the SD breakout board you're using looks like it has a buffer chip. Some of those chips are quite slow. Usually they are...
I'm also a bit skeptical those SPI-based ethernet chips can ever achieve low overhead, even with use of SPI FIFOs and DMA. Will admit, I really only have experience with Wiznet W5500. I haven't used ENC28J60. Maybe...
As far as I know, nobody has written any libraries to use those SPI-based ethernet chips with DMA. Will you do this work? Are you experienced in writing such DMA-based code? It's not easy and if you haven't done so...
SPI-based Ethernet like ENC28J60 or Wiznet W5500 usually gives moderate performance and also costs high CPU overhead. Probably not aligned with your project goals (which I don't really understand, other than you've...
Committed a fix on github to just comment out that 400 Hz limit.
https://github.com/PaulStoffregen/WS2812Serial/commit/74c469ec35153639a6f9609c2e433bbf391c74c8
Looking into this today. Indeed it is much slower. Tracked it down to this line in WS2812Serial::show()
if (min_elapsed < 2500) min_elapsed = 2500;
I believe this is a leftover from the days when...
I can confirm that kit provides the parts needed to connect an ethernet cable to the ethernet port on Teensy 4.1.
Hopefully this fact is clear from the written info and photos on that page?
What are you planning to do that's expected to consume so much CPU power?
If you use I2S or TDM with DMA (as the audio library does) simply moving data in and out is very efficient. Simple processing like mixers use...
If you just want to send the low 8 bits, as Serial.write(integer32) does, use this:
Serial.write((byte)integer64);
If you want to send all 8 bytes, use this:
Serial.write((char *)&integer64, 8);
If you want...
What does "channels" mean? Is it some analog signal like a pressure or temperature sensor? Or are you looking for many simultaneous audio streams? Or something else?
Those are audio ADC and DAC chips which use I2S or TDM protocol. They are not SPI.
You can use them with Teensy 4.1 because I2S and TDM are supported. But SPI would be the wrong way.
This is why the details are...
Can you be more specific about the devices involved? These details matter! Your picture seems to show connecting 3 Teensy boards together, but the wires are connected in random places which aren't even SPI pins (the...
I don't really understand what help you really need.
Maybe you're asking in general how to connect SPI chips? Perhaps this article can help?
https://www.pjrc.com/better-spi-bus-design-in-3-steps/
Maybe you're...
Dealing with 2 problems at once is more than twice as hard as tackling each on its own.
Please understand this error is entirely due to something wrong on your PC. It has nothing to do with the Teensy hardware.
...
Teensy 4.1 has a default fault handler which tries to automatically reboot after 8 seconds. You didn't mention anything specific about timing, so this is just a blind guess, but maybe the problem you're seeing is...