But looking quickly at the RCSwitch.cpp code, it's not clear to me whether it's really doing PPM or something else. Will look again when I have a little more time.
I do see code for both sending and receiving stuff...
Regarding PulsePosition
https://www.pjrc.com/teensy/td_libs_PulsePosition.html
Good news for you - the receive parts are separate from the transmit parts. You can use either, or both. So if you only want to...
1: Maybe use an oscilloscope or logic analyzer to watch the SDA & SCL pins.
2: Perhaps use a Teensy 3.6 instead of that STM32 chip? They you'll have good software support. :)
You can see the T4 pin assignment info in msg #3 on the beta test thread.
We're expecting to make a slight change before final release, since this doens't bring out the 2 CANFD pins. But it's pretty close to what...
Nope, but there are functions to tell you how much memory has been used. If AudioMemoryUsageMax() always gives a number less than you allocated, then all is well.
The poor audio library is starving for more memory!
// CS42448 Sound Board initialization
AudioMemory(16);
You're trying to bring in 16 channels from TDM plus 2 more from WAV player, and then...
MIDI is probably the most popular serial protocol for unidirectional data flow. Having 1 bit dedicated to indicating the start of message is simple, but "wastes" 1/8th of the bandwidth. The same can be said of the...
Yes, you'll get the same output signal. The frequency depends on the synthesis in software, which ultimately is tied to Teensy's clock, which is derived from the 16 MHz crystal.
However, if using the headphone...
The answer is yes, the waveform object supports sub-audible tones.
Checked just now, with this code.
#include <Audio.h>
// GUItool: begin automatically generated code
AudioSynthWaveform waveform1; ...
I can confirm WM8731 is working in slave mode.
I found my last MicroE-506 board and wired it up to a Teensy 3.2. The connections are exactly the same as master mode, except I removed the crystal and 2 capacitors,...
To answer your question: no, you shouldn't lose Serial1 when WS2812Serial uses Serial4. Not due to memory sharing or any other reason. They're supposed to be independent and able to work simultaneously, without any...
This code looks like you're attempting to send only 2 numbers once every 5 seconds.
USB serial is capable of printing *many* thousands of numbers per second. Printing 2 reading at only 0.2 Hz is very, very slow. I...
I've never seen anything like that.
If you program wrong code onto the Teensy, so it isn't listening to the USB port, then 1 button press is needed. That's normal. But pressing more than once should never be...
Possible, yes. Whether this is a good approach is another matter.
To answer your question, here's the info to get started creating your own custom features inside the audio library.
...
Officially, PJRC only supports Ubuntu (for x86) and Raspbian (for ARM). I personally test the software on those distros, so I can say with confidence they work. Most other distros like Mint & Fedora usually work. ...
Sure you can. In fact, that's exactly what the "Mod" version of the waveform is meant to do. You apply a signal to its 2nd input and that signal modulates the pulse width.
It's not broken. If you want to...
I am considering a change to Teensy Loader, where the window would automatically raise to the front during programming and for the ~1.5 seconds after rebooting, where it should "Reboot OK". Then, if it has not been on...
On the battery, there are 2 common cases for 14.4V.
If you have 4 lithium ion cells in series, then this warning doesn't apply.
But if your 14.4V is from the electrical system of a car or truck, where it's 12V...
I would advise against building that circuit.
Most discrete mosfet transistors have some sort of gate protection circuit built in. Depending on how the other connections are made, though the hub and its power...
Do similar USB communication issues happen (especially with that USB3 hub) if you run a program that just prints stuff to the serial monitor? How about after you upload using RawHID from Tools > USB Type? Would really...
Also keep an eye out for that pesky Gnome Modem Manager, or Network Manager.
The udev rules are supposed to tell Modem Manager that Teensy isn't a modem. But if you don't have the udev rules installed properly, or...
Just delete the copy of Arduino which has it installed. If you want revert to an unmodified copy of Arduino, just download a fresh copy from Arduino's website and extract the .tar.xz file.
To double check, in...
Any chance you closed or quit the Arduino IDE, but left Teensy Loader running? On exit, it automatically deletes all the temporary files it created.
Or maybe you have some process running on your machine that...
That part was meant to implement a "first order noise shaping" recommendation I found in this article.
http://www.earlevel.com/main/2003/02/28/biquads/
Looking at it again now, I'm not 100% sure the logical and...
Yup, this is how much of the audio library works, where pairs of 16 bit numbers are packed into 32 bit words. ARM designed their DSP extension instructions to work separately on either half of 32 bit words, so the...
But I can comment on the use of a sine wave to transmit 2 parameters, with its amplitude & frequency.... now that I can see that part.
As a best case scenario, this can transmit at most ~344 messages per second,...
What is "interval_one"? The timing of your code depends on this, but you don't show it to us!
I also don't understand this:
Taken literally, this sounds like you've got the Arduino Serial Monitor window open...
Could you be more specific about exactly which library you're really using? I see 4 different libraries on that page with similar names. One claims to be specifically for 32 bit Arduino, but you didn't say "_32" in...
Another problem that sometimes comes up, which may or may not be the case here, is when people try to do query-response using Serial. Then the USB latency comes into play, which involves many complex factors mostly...
Defragster is right, the overall bandwidth is about 1.0 to 1.1 Mbyte/sec with 12 Mbit/sec USB, after USB protocol overhead.
44.1 kHz stereo 16 bit audio uses approx 0.17 Mbyte/sec. So if your PC (or Mac... we don't...
Whoever wrote "GxEPD2_boards_added.h" designed this code to only work on 3 specific types of boards. Sadly, they didn't provide a case for Teensy. :(
Maybe it can work if you just delete 2 of the 3 cases, and...
Oh, looks like we're still calling the user function from interrupt context, which isn't safe for the user's function to call the functions of most Arduino libs. Not good!
This really needs to be changed to use...
The URL on that Amazon page doesn't work for me.
I tried a quick search for "LCD_WIKI" and found a bunch of pages about a 3.5 inch display used on Raspberry Pi... but nothing that looked anything like the 1.6 inch...
I'm not getting a clear picture of what you're really seeing. Maybe screenshots would help?
Good. Are you doing this same upload in another case that's not working? That's the part I don't understand...
I have at least 150 left here, so might as well wish for what you want!
Trouble with putting a 120 uF cap on the 5V line is that's 12X over the limit the USB spec says for a USB device.
On the breakout...
I believe they were this one, 12.5 mm height.
https://www.aliexpress.com/item/100pcs-Spring-Loaded-Pogo-Pin-Connector-9-5-10-0-11-0-11-5-12-0/32910364279.html
How many do you need? I have plenty left over. We...
I must confess, I haven't used WM8731 in slave mode (Teensy as I2S master) since the very earliest days of the audio library. Before we had the STGL5000, I did some of the earliest development using a MicroE-506 hacked...
It's like a pullup or pulldown resistor. Unlike a fixed resistor which always pulls towards a particular logic level, it weakly pulls the pin in whatever direction it already happens to be. This is a nice advantage if...
Definitely use OctoWS2811. You'll need the non-blocking feature to be able to reliably receive DMX message which arrive while the LEDs are updating.
There's an example which plays uncompressed raw data from the SD...
Yes, the compiler is amazingly good at optimizing away math when all the inputs are constants known at compile time.
Also consider using cosf(). The normal cos() function, without the "f", uses 64 bit double which...
Today there really isn't any way to use those bits.
That sine code was pretty much just a math experiment, back when William Hollender was working on a board with the CS4272 chip. Sometimes I do stuff like that......
You might as well using only a single 0.1 uF with this poor layout choice. There's no point to have 3 of these capacitor in parallel if they are all in the same location. The purpose of 3 separate capacitors is to...
Since the A-weighted SNR is 112 dB, the best case scenario is about 18.7 bits of actual analog performance.
Sadly, TI doesn't give an unweighted spec, so it's really a matter of guesswork how much the A weighting is...
This is the link for a copy of just the USB 2.0 spec (hosted on PJRC's server) without all that other stuff.
https://www.pjrc.com/teensy/beta/usb20.pdf
I've never understood why the USB-If website doesn't support...
Yes, indeed USB is very complicated. The controllers in this new chip are basically the same as the 2nd port on Teensy 3.6 (where we've only supported host mode, never device mode). It's completely different than the...
You can use any settings you like.
But if you wish to match the same defaults at Teensyduino, you'll need different defaults. Teensy 3.x defaults to "Faster", Teensy LC defaults to "Smallest Code". Later this year,...
Not quite sure what you mean by "TEENSY_OPT_SMALLEST_CODE". That's not a name used anywhere in the code I've published. Maybe it's something specific to PlatformIO which I do not know?
I'll add this to my...
Can you double check which RS485 chip you really have?
MAX485ESA+T should work fine. Rated for 2.5 Mbps data rate should be fine. But if you happen to have any of these chips which are only rated for 0.25 Mbit/sec...
I know not of this zipping noise.
Generally we expect you to show a program, so anyone can reproduce the problem. But even just being able to see (hear) the problem is a bare minimum.
But to try to answer your...
Can you watch the RESET signal while you're doing this? When you pull PROGRAM (PTB2 on the MKL02 chip) low, RESET is supposed to go low and remain low as long as PROGRAM is low.
Another question: do you have ceramic...
Ok then, another blind guess... have you looked at the start up waveform of both power sources?
Years ago we had someone (actually a few people) experience all sorts of strange problems with a particular Traco DC-DC...
Is there a RS232 cable of some sort plugged into that UART level shifter? Where does it go? Or to ask another way, what is the ground of the connected equipment, and how does that compare with the ground connection...
You can call midi1.manufacturer() and midi1.product() to get the names, since MIDIDevice inherits the public functions of the USBDriver base class. These return NULL if no device is connected or if the device didn't...
Sorry. I had an outdoor event to attend last week which seemed fine at the time, but then relapsed on this damn cold! Did the "lots of rest and liquids" thing for a few days. A couple PJRC tech issues came up, like...
You really should use a hardware-based mechanism to protect the hardware. One simple way include an "enable" signal with a physical pullup or pulldown resistor, where the drivers are turned off in default state, so the...
Normally 3 objects use the SGTL5000, the control one (no audio connections) which just configures the hardware over SDA & SCL, and the 2 I2S objects which actually stream the audio data.
In your diagram, the USB goes...
Yes, it should.
In fact, there are 2 different sysex handlers.
// Only one of these System Exclusive handlers will actually be
// used. See the comments below for the difference between them.
...
Sounds like you've made a really useful product here. I totally understand how much extra work it is to sell & support something as a commercial product.
If you're not going to sell these, but willing to share the...
Oh, I'm not personally looking for this board, but if you're selling them online, I'd certainly like to help you get the word to people who might want them!
You need Arduino 1.8.8 and this Teensyduino 1.45 installer.
https://www.pjrc.com/teensy/td_download.html
Also, please be aware Teensy appears as HID, not Serial, in many of its modes. When using Windows Device...
Maybe, but I have not ever tried this. I would use an interrupt and have the interrupt code configure the timer.
The FTM timers do have special fault inputs. I've never used them, so I really can't suggest anything...
No, it just looks that way. Even though those 2 pads are underneath the USB Micro-B connector, they're actually a completely separate USB port.
Just plug a USB cable in to that connector, and into whatever USB...
You might also consider just doing it all by software. Here's a project I did 4 years ago, which ran on Teensy 2.0, controlling 4 dimmers using AC zero cross detection and just computing everything in terms of...
The most important thing will be connecting GND on Teensy to GND on that relay board.
If Teensy gets external 5V power, usually you would cut the VIN-VUSB pads apart, so the external 5V power can't try to flow back...
SainSmart's website also has a file that looks like the PCB layout.
Here's an image of the control electronics part.
Based on this info, I would *NOT* recommend use with Teensy LC. The board has a 5V power...
My best guess from the photos is you'd give the relay board a separate 12V power supply on it's 2 pin terminal block.
If you get one of these, the very first thing I'd suggest doing is testing with an ohm meter...
What gave you this impression that the volume can't be changed?
It can indeed be changed as often as you like, at least as fast as the relatively slow I2C protocol allows. If you look at the audio library tutorial,...
Is there a schematic or tech info on this relay board?
From the photos, it looks like it's designed to just have 16 ordinary digital I/O pins connected to control the 16 relays. But that's a bit of guesswork from...
The 3rd true/false parameter merely tells if you have already put 0xF0 in the first byte and 0xF7 in the last byte in your data array. It's really that simple.
This code fragment you've show sends 3 sysex messages. ...
I started a list of compatible I2S chips.
https://github.com/PaulStoffregen/Audio/commit/5bf65f1c47f8a5877179c13f6e180a5a5dab7dd3
For I2S output:
Compatible CODEC Chips:
STGL5000
TLV320AIC3206