Thx for your input.
My first plan was to be abel to do OTA upgrade for both esp32 and Teensy 4.0, when working with the esp32 I like it can be upgraded without unplugging it and connect to a pc first, but it seems...
Pipe Monster v4 digital theremin antenna and sensors mounting.
Made of 20mm and 32mm PPL pipes and fittings.
Antenna sizes and distance between antennas - like in Etherwave.
32mm pipe pieces (coil + sensor PCB)...
Well of course the Keypad library examples only send to the serial monitor. They use Serial.print().
You need to copy and paste code, maybe even improvise slightly, to create a hybrid of these 2 examples which...
That isn't part of std WIRE lib it seems - so adding may have complications.
Looking at : \hardware\teensy\avr\libraries\i2c_t3 included in TD it does note non-blocking version details.
For T_3.2 it should support...
Thinking this switch may be useful for one of my future projects, I searched further on the internet.
Is this the switch? ALPS RKJXT1F42001.
The circuit diagrams on that page may help you in debugging the circuit.
...
Thanks defragster and KurtE. Recent re-format drill. No other IDE install folder.
Compiler verbage indicates that it's looking in the right place for Teensy's version of the Wire library and I guess it makes sense...
If we are going to update ST7735_T3 from mjs513's new changes, would it be possible to add the two uncanny eyes examples that mjs513 had in his tree to the Teensy version? I believe KurtE, and defragster worked on it...
I'm going to add some new information because I think it might be useful to those using PlatformIO. I'm getting an "undefined reference to _write" linker error which turns out to be the same as "undefined reference to...
My key question is, when using the Octo adapter, how to get the various twisted pairs to where they need to be.
A few presumptions, please correct me if I'm off base!
1) I can Daisy chain strips if I want those...
I've committed USB MIDI code for Teensy 4.0 to github.
https://github.com/PaulStoffregen/cores
If you're feeling adventurous, edit your boards.txt file to enable MIDI in the USB Type menu, and update your...
I've programmed the keypad and I can send keystrokes because they register on the serial monitor, but the keystrokes don't register in any programs. What code do I use to have the keypad input register in a program...
Paul I think you are referring to the PR I did for the Encoder registers. Based on your preference I will redo the structure and ensure it retains the original register names. May have to do a little work on the lib...
@KurtE
Library taking shape. Instead of the ringbuffer @tonton81 has his circular buffer library not sure which is better. Will look at ring buffer tomorrow but wanted to let you know that I did merge for the timeout...
Yes, this should also work using the USBHost_t36 library.
Only Teensy 3.6 and 4.0 have USB host. They have only a single USB host port, so you'll need a USB hub to connect 2 USB MIDI devices.
USBHost_t36 supports...
@mjs513 - Hopefully next up figure out what we should do with the DMA cod with ADC..
Currently there is code in ADC library called class RingBufferDMA which I am sure started from his RingBuffer code, which you could...
Ok I edited it like you mentioned...
You might want to take a look, to make sure I did not screw up something.
https://github.com/PaulStoffregen/cores/pull/406
Thanks all!
Then I think I will code my control logic in a class that will encapsulate connections and disconnections of object instances of the audio library and that should solve the needs of freeing/allocating...
Would this technique work while using 2 Teensy's (or rather, 2 Trinket M0's) that are acting as USB Hosts? So I could set merge the MIDI data and send it out to one DIN jack?
Yes, this.
The other ones with a dedicated struct typedef has (mostly) been done that way.
Eventually we'll probably get rid of all the old offset stuff. I did that before the beta test because it was much faster...
My last Christmas light show I used 6 custom Teensy controllers with a custom breakout boards all ran from xlights/LOR. My farthest pixel was about 15 feet. most were within that range.
crees
I managed to get the second code I posted to work, by resetting pushCounter to 0 before returning true in the buttonPress boolean. this wakes the teensy and resets to mode 1.
However the code is still weirdly formatted...
Will do.
I for sure would not delete the old defines. Have two choices, both ways are in imxrt.h.
That is could redefine all them as reflecting the new structure: like with I2C...
} IMXRT_LPI2C_t;...
What you have will get you started in playing with pixels and code. To make a Christmas light show will take some more engineering and parts. Distances will vary but I have gone up to 90ft inside testing but was...
I'm not quite sure either....
Yes, please do.
But do not delete the already defined full register names. Convert them to the new struct. I believe there's at least one pull request still pending which I...
HI Brian,
This is what I posted on the Arduino forum. The first response was to ask for all of the code - which is a lot. Since you devised the S-Bus library, maybe you can recognize the problem, I tend to suspect...
Hi All.
Got question about implementing an I2C slave on T3.2. One common I2C technique is for the master to start a Read transaction and then proceed to read an arbitrary number of bytes from the slave. After each...
@Paul was wondering about possible additions to IMXRT.h. That I have run into as part of the ADC port to T4 Things like:
ADC structure definition:
Which I currently have in the ADCL_t4 library:...
FWIW, we are currently using these 5 hardened runtime entitlements on the JRE and top-level bundle, because they're required for Java 8:
com.apple.security.cs.allow-jit...
If you haven't seen it yet, check out the Teensy 4.0 breakout board and USB host board I made in this thread:
https://forum.pjrc.com/threads/57672-Another-Teensy-4-0-Breakout-Board
It copies the circuit from the...
All the info I've found so far is sandbox is meant for programs distributed by Apple's app store and hardened runtime is intended for programs distributed outside the Apple app store.
My (perhaps bad) attitude is to...
I am hoping to use 8 channels at 10kHz with 12 bit data, this is ~160KB/s. all the data is ADC voltage readings. It seems quite tricky which is why I'm really hoping on some help from someone much better than me at this...
Noticed that although code signed the app is not sandboxed.
https://developer.apple.com/library/archive/documentation/Security/Conceptual/AppSandboxDesignGuide/AboutAppSandbox/AboutAppSandbox.html
Assuming no...
Are you sure about that?
I was under impression(looking at the code but i might be wrong) that unity gain is handled as a special case in both the mixer and the amp, but that zero gain is only handled as a special case...
Hey all - I've got most of the gear together for an 8 strip play with leds and the octo adapter, sweet!
My first head scratcher question is ... each twisted pair is to be connected to an led strip (along with power...
@PaulStoffregen... :D Sounds great.
There were a few other PR's out in special thread, like fixing some issues for Wire. @mjs513 has a nice version of the ST7735_t3 code base...
Wondering about things like ADC...
I realized that after reading #10, then looking at the code.
Well, AudioAmplifier transmits nothing if mult==0.
But, AudioMixer4 will call transmit() if there is input on any channel, regardless of multiplier.
Yes, I did the HID ones and I'm working on MIDI now. I did a few quick tests on keyboard, mouse and joystick. Touchscreen still needs more work.
My plan is for 1.49-beta2 within the next few days.
Planning to...
That is a wrong assumption. The mixer and amp handle zero gain as a special case. They stop sending data, which does affect the CPU usage of most (but not all) objects connected to their outputs.
All objects in the...
I'm making a USB host using the Teensy 4.0 and I think I've worked out details, but have a few lingering questions I'm making educated guesses about.
I'm using a PTC fuse, a TVS diode and 100uF between the 5V that...
I saw github CORES has first pass of T4 USB Keyboard checked in followed by mouse and joystick - likely out with Beta 2 when it is ready:
Add USB keyboard for Teensy 4.0
Add USB mouse & joystick for Teensy 4.0
Again others can answer better than I can...
I do very little Analog stuff, and rarely do I need to write stuff to SDCards...
Usually just enough to help other fix problems or testing out new Teensy boards...
...
What are looking to do with the combination?
I've built an ESP32 add-on to my Teensy 4 breakout board and have successfully gotten firmware updates to the ESP32 to work passing through the Teensy.
I'm hoping...
I actually was able to get this to work, I realized that if I swap the GND and PUSH pins on my board, that it actually worked, and then when I reached out to the company, they admitted that they sent me V1 of the boards...
@mjs513...
I hacked up my test program on T3.5 to generate the sine wave where I use one pot to change the amplitude...
Again not the cleanest setup, but:
#include <Audio.h>
#define POT_PIN 14
int last_pot_val...
As I understand it, it's not just the write speed of the card, it's rapidly taking incoming newly converted ADC data and putting that on a card in a new file which is slightly different. I didn't mention it in my first...
You are right, the 0402 is more difficult than other sizes, only should be used when you don't have other sizes available.
I buy microSD in a reel from a Chinese manufacturer that only sells to their domestic market....
I've realized that what is needed using this method is an amplifier and a mixer - not two mixers. A mixer always outputs an audio buffer even when all inputs are zero gain.
When the amplifier is set to zero gain, it...
@daspuru
In order to have an audio object with an input to stop processing you need to stop the audiostream going to it's input.
There are 2 ways to achieve this:
use AudioConnection::disconnect
or
insert an...
I don't expect that anything you can do with the level controls on a mixer object will affect CPU utilization of anything before or after. Maybe I'll test it to satisfy my curiosity.
The attached pic was this:
In these day I went on with my tests... and this assembly showed some limit: with intense use of the chip some errors appares. I guess if a small PCB with its groun plane could help data...
Hi All,
Im new to Teensy and just got some 4.0 boards and have been looking for guide/examples/code on how to use the esp32 wifi on Teensy 4.0, but have not been abel to find it.
Have been working with the esp32...
Well, it doesn't quite work fine. Most of the time I get double output. I'm reading four channels and it looks like the "While" is open long enough sometimes to read two passes of the S-Bus Data.
I could clear this...
Hi Semaj4712,
Did you perhaps measure the encoder pins to see what is happening? A scope is very useful to see the voltages and timing relation between those pins.
With respect to the external pullups; the encoder...
Does this look like a good way to read S-bus until packet starts with channels and then print it?
"print_SBus" is a subroutine called from main output section.
void print_SBus(){
uint16_t channels; bool...
Ah. Good question. Not the way I've shown it.
I think another mixer between i2s1 and reverb1, which is turned on or off at the same time as switch1, should do the trick. The mixer won't output anything and reverb will...
I haven’t looked at audio library source code, but I would be surprised if turning down a mixer before a reverb has any effect on the reverbs cpu utilization .
I think this is not a good approach as the reverb or any module will still processing audio and consuming memory and CPU usage. As far as my research goes, all audio modules extend the AudioStream Class, located here. ...
Ah. Good question. Not the way I've shown it.
I think another mixer between i2s1 and reverb1, which is turned on or off as well as switch1, should do the trick. The mixer won't output anything and reverb will use...
Hello,
I tested MLX90614 with Arduino and it works fine (I used a level shifter for 3-5V as I needed the medical sensor that works only on 3V).
When I tried the MLX90614 on Teensy 4.0, the address was coming (0x5A)...
Add a mixer to bypass each effect.
Set the gain of one input to one and the other input to zero.
Naming each one "switch", as I've done, instead of "mixer" will help to keep track of which are used as switches and...
Hi dear Teensy friends,
When building audio components with the Teensy Audio Library, what would be the equivalent for bypassing some modules? for example, in this configuration, what would be the best way to bypass...
@KurtE, I've tried using the ADClite files that you previously shared. I did manage to switch between the two ADCs. However, somehow the reading on ADC0 seems to be closer to the waveform: less noise, and periodic. When...
This one, right?
https://www.invensense.com/download-pdf/ics-40300-datasheet/
Looks like it should work. Can you show us photos of how you've actually connected everything? And the exact code you're running? If...
It would be good, if you tested the following audio lib example: examples/HardwareTesting/PassThroughStereo.ino
Uncomment the following:
const int myInput = AUDIO_INPUT_MIC;
Connect headphones to the audio...
I think I've figured it out. it's a synchronization problem. I need to make the sbus-read subroutine read the sbus until it gets a channels, then read that. should be simple.
You can use the ADC library on T3.x (and LC), and use DMA operations to collect.
As how fast you can write out to SD Cards... There are several threads and other places on web to find information. For example look...
I just want to point out that in the original post, you mentioned storing 12-bit data sampled at 10Khz, and now in post #4 mention that it is 8 channels.
Are you saying that with the 3.6 library it is possible to maintain the 10kHz data rate, whilst transferring data across to the card? If so the problems is solved i think, so if you know how to do this, please let me...
@KurtE
Just as a FYI I pushed some addition changes to the Compare WIP branch. I did test out the compare and compare range and they seem to be working. The only other change is that I made the function calls match...
Hey there!
So i'm trying to wrestle the functionality I want out of the snooze library, but I can't for the life of me figure out how it works.
I've replaced the bounce1 library & code with the bounce2 library...
Thank you for sharing of useful link!
Modern SMD 1-2 gate logic ICs are nice for compact PCBs.
It doesn't make sense to use RF connectors for inductor and antenna connection.
Anyway, only 1 wire is needed. Using of...
The T4 or T_3.6 SDIO interface to an SD card can write perhaps 10 MB per second - depending on the driver library used. Also 5-15 MB/sec writes to disk or flash drive are possible with USB Host device.
How long does...