However a big part of the optimisation is that I only process every other sensor reading as the requirements are not that great for this calculation. So every other time I process one sensor pair, and the next time I...
Sure:
float CrossCorrelation::ComputeHead(int sensorID) {
float max = 0.0f;
//unrolled loop, the "0" is incremented every time as in a for loop
m_targetSignal =...
I was thinking in terms of having the option to use different pins as chip select. D2-4 are also I2S2, so might well be wanted for an audio project. There aren’t many pins on a Teensy 4.0 that can’t be used for some...
I have made this optically isolated DMX board. But, I want to use it with a Teensy 3.2
Doesn't appear to work, yet I have tested all the board and all seems to be operating correctly (Opto isolators etc).
Would it...
Yes, that is what the start code was and failed here.
Forget the chip spec - and never tested for 'smallest usable' - but seems it wasn't asking for enough space and failing on the T_4.1 here.
It takes at least...
I kept getting this:
not able to setup filesys
Until I edited the code to this - replacing '+' with '*':
if (!filesys.begin( DATALENGTH * 1024 ) ) {
Serial.println( "not able to setup filesys" );
}
I just modified the program to load some values into the buffer, for the write() and then to zero the buffer before the read(). With that I can confirm that as far as read is concerned, the data was nt0 stored or read...
Then, I tried "quickformat". The command list files shows that the file has gone away. Save temp.txt, again creates an empty file.
So, I feel confused. Why is write() not writing anything to the file?
At startup it reports
Space Used = 65536
Filesystem Size = 65536
After writing the file, save temp.txt, the list command produces the following. It shows that the file has been created, but the size is 0...
Command: save temp.txt
Response:
saved to temp.txt 4096 0
The first number is the number of bytes that were supposed to be written. The last number is the size returned by file.size() immediately after...
Just out of curiosity, have you tried asking openAI for suggestions on how to optimize it? That seems like it would be one of its ideal intended purposes.
Yes, this is a complete program. I copied it into Arduino and indeed it does compile.
But the nature of this program is it does several different things depending on what text it receives. Without the specific...
Following is a complete source code.
The intent is to use LittleFS to save and recall data to and from program memory on a T4.0. The directory listing shows the file is created but that it has zero size.
What I...
You can if you would like to. I hope to get more time to gain experience with this. I am on vacation right now so I have some time. But I cannot guarantee that I will be able to work though it in a timely manner:)
@anybody interested - Here is the first go at documenting the installation and usage procedure for MBED CE on the Teensy T40. May try to set it up on Windows 11 (maybe).
MBED CE OS installation instructions for...
Hi! I hope you don't mind if I ask a few more questions:
1. When testing the WebServerAP example, I see that server.handleClient() consumes about 2.5 seconds of CPU time (in two ~1.2 second chunks) each time that the...
I'm using a J-LINK plus compact with the MOD on GND, and the teensy side of the flex connector connected to JTAG.
Using J-Flash V7.84f, with device , NXP MIMXRT1062xxx6B selected and the JTAG settings on Auto, I can...
The WiFiWebServer that you referenced was written by the same guy as the ESP8266_AT_WebServer that I"m currently using. They seem to have similar capabilities, but there must be some critical difference that I'm not...
You could remove the second loop in NormalizeSignal() and just return the max, then perform the normalization while calculating the abs delta in ComputeManhattan().
Newbie here...
I'm working on an LED Metronome project that was developed on the Teensy 3.2. I'm using an espressif esp-32 dev board on the Arduino IDE. Developer had said that the code should compile OK but it is...
Yes, there are three square waves instead of just the two used for quadrature encoders. And they trigger (edge and falling) in U V W order when going forward and W V U when going reverse. These BLDC motors are like the...
Okay thank you!
I added locations for the pulldowns.
Can you please clarify "links to change the device selection lines." Is this just a naming thing, like I should use C0/C1/C2 instead of DO2/DO3/DO4? If so,...
Hello everybody!
So, I noticed that there's a multiple joystick example in the Arduino Joystick Library examples. I modified it a bit and tried it on a Micro.
#include <Joystick.h>
#define JOYSTICK_COUNT 4
...
Hi Paul - Me too. Based on the installation instructions, readme's and your post #28 I came up with the right sequence start to finish that seems to work. I have @manitou's post #32 working as well. Just tested the...
no, i don't have the wav file on my sd card. the code i was using allowed me to record a greeting from the first pick up. i'll try a different USB cable as well and see if that gets me anywhere
Frank is still around, as mcu32 - maybe he’ll pipe up?
If I were you I’d try to track for fitting pull-downs (you don’t have to fit them), and maybe some links to change the device selection lines from D2 to D4 to...
Hi, I am making a project that plays a recording based on button press and records after it is done as long as the button is held. I am running into the issue of the recordings having a far bit of noise. I was wondering...
Each time I've looked at this over the last couple days, I also had to re-read a bunch of stuff just to figure out the build commands all over again. That's why I put the notes on msg #28. Still not 100% sure I really...
to increase the mic volume i changed this code values
// Value in dB
// sgtl5000_1.micGain(100);
sgtl5000_1.micGain(35); // much lower gain is required for the AOM5024 electret capsule
my value made the mic...
I Tried adding more delay, more and more until it was slowing down my typing. The delay made no improvement.
I think maybe it just got some oxidation from sitting while the laptop was not in use. I thought it would...
> Needed thew space before the '=' operator.
Oops, pushed a fix! Odd, that worked with whatever version of ld I have...
> The Ninja build command is not automatically being run. I have to run it separately. Is...
Can you clarify where you've made these changes? Was this line in your code, or in the FlexCAN library?
I've had this same issue but didn't have time to investigate myself, and this appears to be the only thread I...
Hi everyone, here is the first draft of the Teensy 4.1 memory board with eight SPI memory chips.
The MOSI and MISO connections are different than Frank's Teensy 3.x version, which seems to me to be necessary for the...
Hey all,
I am trying to use the second set of SPI pins on my Teensy 4.1 since the first set is being used by an RFM95W. My project is nearing completion but I've decided to use the second set of SPI pins instead of...
@MultipleMonomials - I have everything setup and successfully built the hello-world sketch. But ran into an error during the Ninja build with the linker script:
...
Hi Guys, no one else has a similar clicking noise problem? I can't figure it out and I'm running out of time, I want to give the phone as a gift. Any ideas would be much appreciated! Thx
Some hardware registers for T4.0 under mbed os 6.
SystemCoreClock 528000000 11:38:27 Feb 8 2023 ok
ArmPllClk 1056000000 AhbClk 528000000 RtcClk 32768 Usb1PllPfd0Clk 664615368 IpgClk 132000000 SemClk 176000000 ...
have you got a wav file on the sd card ???? i'm using a t4 with the Rev D audio shield make sure you are using a data type cable as i had same error compiling board for teensy and it was the cable first cable was...
one b4 mine
/**
* Audio Guestbook, Copyright (c) 2022 Playful Technology
*
* Tested using a Teensy 4.0 with Teensy Audio Shield, although should work
* with minor modifications on other similar hardware
...
Hi,
i have built a data capture prototype based on the Tensy 4.0, that captures PDM data from a microphone array (8 microphones) using FlexIO and USB Serial to transfer the data to a PC (~3MBytes/s bandwidth)....
Good morning,
I've got an issue that came up last night with my Teensy OctoWS2811 board. I'm using a teensy 4.0 with a WS2811 to drive various BTF-lighting led strips totaling 720 LED's in a daisy chained...
i tried your code but it doesn't compile. i get errors for the playwav1 file.
Arduino: 1.8.19 (Windows 10), TD: 1.57, Board: "Teensy 4.0, Serial + MTP Disk (Experimental), 150 MHz, Faster, US English, Bigger blocks...
Oh, I didn't notice that link from the OP. Well, I think the answer is no, there is no "built-in support" for this function. Looks like an interesting one.
Update, I used the following for mbed_app.json
{
"target_overrides": {
"*": {
"platform.stdio-baud-rate": 115200,
"platform.stdio-buffered-serial": 1,
...
Nothing records after the first beep and nothing happens when I hit the hook switch after. I never get any other beeps or anything. I thought the code said 2 short beeps to record initial greeting. I could be wrong...
OK I updated mbed-ce-hello-world -- thanks Paul for the detailed git incantations. I built, loaded, and ran main.cpp. No mbed death flashing. ttyUSB0 showed up
usb 1-3.4: new full-speed USB device number 37 using...
@BriComp - no I dont want to use the UART. The question is about how WS2812 functions - whether or not it engages UART as it has to run on one of the hardware serial ports..... I want to know if the associated recieve...
Hello,
is there a way using a teensy to mix two stereo I2S streams and output the result as I2S? So basically two I2S sources like two stereo microphones, mix the sound of the two into a stereo I2S stream, feeding...
If you are using UART8 you should be using Serial8.begin(baudRate);
Just look the the code for the serial ports - it set's everything up ready for transmission.
Have a look at this. I think it will serve your needs.
I have been thinking of using these. Basically they swap the ESP32 for the ESP8266, so more grunt!
EDIT:
Or for a little more power, consider this.
@defragster - yes the irq pin it needs to be read as an input. How about this based on your suggestion:
#define SUB_PROCESSOR_IRQ 34 // RX8 // interrupt requrst pin to...
Pin 35 may have TX8 function - but as used - it isn't doing UART Serial and would have no reason to associate Pin 34 to that use.
Even if TX8 was in use for UART - the RX8 pin could be repurposed after the...
Here is a USB protocol analyzer capture of the failed USB enumeration
And for reference, here is the beginning of a successful enumeration with Teensy programmed by Arduino+Teensyduino
Tried it. Not sure if I got everything set up correctly (see below).
Building this time:
Linking CXX executable HelloWorld.elf
-- built: /tmp/mbed-ce-hello-world/build/HelloWorld.bin
-- built:...
After the 1 long beep try saying something as thats when it records the message if you press the hook switch you would get 4 short beeps if you still got handset to ur ear at momonent i cant get the greeting message to...
Aha! I was able to reproduce and diagnose a crash when activating BufferedSerial on pins D1 and D0 using my MIMXRT1050 dev kit. It turns out that, for some reason, the original Mbed port didn't define interrupt...
Ah, I figured out the mystery of the ncache initialization crashing. Turns out that you were right, that section specifically was still being put into the SEMC due to some weird linker script hijinks. I combined it...
Ok, I've rearranged the text on that page. I also added a "Software" heading.
https://www.pjrc.com/store/display_ili9341_touch.html
Hopefully having the first 2 blue links as the 2 required libraries, and then...
When using both I2S input and output, Teensy transmits 3 clocks: MCLK, BCLK, LRCLK which are routed to both ADC and DAC.
So the answer is yes, or probably yes, if your chips are I2S or something similar.
Audio...
Normally FLASHMEM is meant to be used on the function definition, the place with the function's actual source code, like I tried to show in msg #2.
For C++ classes, normally it would go on the actual member function...
For MacOS Ventura, you need 1.58-beta3.
If you wish to use the old Arduino 1.8 IDE, download it here. Get the "MacOS (Catalina to Ventura)" and of course do not get "Old MacOS (??? to Mojave)" since you have...
Even if you have the original source code, how much work is needed to get it running on a different board really depends on how it was written. If it mostly uses Arduino functions like pinMode and digitalWrite, it...
Hello,
I can’t get a port to detect on my 2019 intel Mac (Ventura 13) with either of the 2 Teensy LC boards I have. Teensy loader works fine (loading blink light files), but neither Teensyduino or arduino IDE can...
Teensy 3.x and 4.x both have various timer peripherals that can count edges or measure time between edges. I'm not sure what you mean by "three phase encoder". Do you mean 3 signal outputs. Are they A/B (quadrature) and...