@Sandro - Sorry, looks like that example fell through the cracks. I never used it. And there were several other examples for logging, such as SD_MTP-logger which do compile.
I will try to push up a version that...
@KurtE made some changes to MTP_teensy to simplify how MTP has to be configured. It looks like we never updated that example for the changes to MTP. Basically in looking at the current sketch:
MTPStorage storage;...
Hello,
Would like to know if there is a way to change i2c port used for SGTL500 : wire1, wire2 as only 20 pin package is available now.
If "yes" , can we use 2 SGTL5000 on the same Teensy?
Thank you, both Paul and Kurt!
I tested my connections (which seem fine) and lowered the clock rate to 4mhz but the CS signal line doesn't change and always stays high. Next steps would be to check the Analyser and...
@Sandro
the mtp_logger was designed as example for the original MTP port to Teensy https://github.com/WMXZ-EU/MTP_t4. Meanwhile @KurtE developed it to MTP_Teensy (adapting MTP_t4 also to his own programming style). So...
Not having built and followed the MTP recently - it was dynamic in dev ... maybe the best ships in TD 1.59 beta 3? forum.pjrc.com/threads/73342-Teensyduino-1-59-Beta-3
Hi all. I built a light weight powered PA speaker for my mom a few years back, she signs and plays guitar. It uses a Dayton Audio KABD amp with built in DSP to take care of crossover, time alignment, and EQ. I would...
I see a mistake already: DAC8565 outputs up to 5V, so it needs at least 5V (6?) as AVdd, right? On the other hand DAC8568 outputs up to 2.5V, so could I power it from the 3v3 from teensy?
Maybe post photos of your setup. It might help to see potential wiring issues and the like.
Things like bad solder joints, pins off by one. Pins not soldered to the Teensy. Maybe too long of wires, etc.
Also I...
Thanks for your tips and patience! I'm doing little steps, but one after the other, I'll hopefully get somewhere!
My current understanding of this "mapping" problem is:
- VCA has a -33 mV/dB gain constant, and gains...
if I select MTP Disk I get this error:
C:\Users\dell\Desktop\mtp-logger\mtp-logger.ino:57:1: error: 'MTPD' does not name a type
57 | MTPD mtpd(&storage);
| ^~~~...
The error message hopefully points you in the right direction:
32 | #error "You need to select USB Type: 'MTP Disk (Experimental)' or 'Serial + MTP Disk (Experimental)'"
You need to choose one of those two USB...
I would follow what @MarkT was implying.
If it were me, I would try something like:
void setup() {
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for native...
I've massaged your code so that it can read a PGM header file. I could only test with an example PGM that was way too big to fit in a teensy, so I can't guarantee that it'll read the image itself correctly.
// Read a...
Hi, just wondering if there's any plans to include Frank B's T4_Button library in the Teensy core library?
I've spent time on the threads and find it extremely difficult to understand how to use it, as it goes into...
Hi all,
I would try to make the SD card on T4.1 accessible as a mass storage from my Windows PC via USB connection; I manually installed MTP_Teensy. I use Arduino IDE 2.2.1 with Teensy tools...
So I tried clock speeds all the way down to 24Mhz - same issue. It's happening on multiple setups so likely not a soldering issue.
Sounds like you guys are suspecting the Teensy itself is producing RF noise that's...
You can generate the signals in the callback, but you can't call analogRead() from the callback. I'm not sure what you're trying to do, so I can only make general suggestions. In your callback function, instead of...
First check the GND pin. Maybe cold solder?
If you suspect RF interference, the first very easy thing to try is setting Tools > CPU Speed differently, and of course upload again.
Just having a ground plane in-between isn't a Faraday cage, the plane is acting as a coupler I suspect.
The 4.x teensy puts out way more EMI than your previous setup (its 600MHz clocked and drawing ~100mA), both...
You haven't set the SPI frequency - the default is much higher on some Teensys - perhaps your interconnect can't handle fast logic signals?
Also you aren't connecting CS to pin 10 - could that be the issue?
Have...
Wow that comes from a page series not seen - at least in some time : pjrc.com/teensy/loader.html
It shows link to that Vista as well as Linux and Mac OS links.
Those pages indeed frozen in time and ready for a...
Well the velocity of sound in MDF is apparently about 2500m/s, so a time difference of 10µs would be about 25mm, so I'd suggest sampling at that sort of rate, ie 100kSPS for each sensor. Some experimentation with a 2...
If I can't generate the signals with the Teensy without being disturbed, I guess I have to use an external generator.
#include "TeensyTimerTool.h"
#include <ADC.h>
ADC *adc;
using namespace TeensyTimerTool;
You didn't show your code this time, but in your previous program, you have a 250-ns timer (4 MHz), and you are calling analogRead() from the callback. analogRead() takes much longer than 250 ns to execute, so that's...
Perhaps the Teensy 4.0 emits more radiation than a Teensy 3.2?
A Teensy 4.0 runs at 600MHz clockrate. What happens if you compile your code with the processor clock set to 150MHz ?
Paul
I have now made a few tests with the three methods. Unfortunately I always get disturbances from 130µs on, as soon as AnalogRead is called.
Yellow is the disturbed clock signal
Running into an issue using a Teensy 4.0 as a replacement for the 3.2.
I'm using a Teensy 4.0 along with a 900Mhz XBee XSC S3B module to remotely communicate with some other equipment. Due to space constraints the...
That message is coming from the Joystick debug code.
Try editing joystick.cpp in the USBHost_t36 directory.
Look for:
//#define DEBUG_JOYSTICK
#ifdef DEBUG_JOYSTICK
#define DBGPrintf USBHDBGSerial.printf...
I commented out all the print statements but still print out "hid_process_in_data", so I still don't know where
the printing is coming from? I can get some of the data to print out using joysticks.getAxis(i).
Paul: Maybe a warning notification should be added to the <Code Security & Lockable Teensy> page specifying that TD1.58 or newer is required for full security functionality.
Mark J Culross
KD5RXT
Specifically, what "download page" (URL) ??? What is the specific URL of the "download page" containing this bad/old link ??
If, in fact, there is a link somewhere on some page providing this older version, that...
Paul, unfortunately they don't. Maybe I did something wrong, who knows.
But atleast it works fine with 1.58 on new boards.
This link Paul, has the 1.56 firmware, shouldn't that be updated to 1.58?...
The 3 boards you previously locked should work with 1.58. The locking process doesn't depend on which version of Teensy Loader you use. It is the same even if you use very old versions (which then can't use the board...
Actually, on the download page 1.56 is the one you get if you download, even older version. I had 1.57 because I haden't updated Arduino.
I did the test again with locking on a brand new board (lockable ofc), using...
From where did you get that link ?? It is neither displayed nor referenced anywhere on the https://www.pjrc.com/teensy page (although it does seem to be downloadable from there !?!?!).
@PaulStoffregen: probably need...
That was news to me, thanks for telling.
But that still doesn't change the fact the 3 boards I tried are bricked, they do not appear when they're in boot mode!
The 3 sketches to lock it, was flashed with Teensyduino...
Once you have locked a T4.x (which it sounds like you have done successfully), the 15-second recovery procedure is no longer available, since the built-in BLINK sketch is not encrypted with your key. Once locked, you...
Sorry for the late response, I realized I was doing something wrong with the DDS (I had never heard of it, so had to study a little bit), so I tried again yesterday afternoon and this morning. Actually, I changed some...
If you look through the sketch you will see two primary functions for getting the data:
uint32_t buttons = joysticks.getButtons();
and
joysticks.getAxis(i)
where axis data is an array of 64 depending on your...
I'll try to explain as clearly as possible.
The 3 steps are already done and I know that's forever. The issue now is that even in boot mode, Teensyloader doesn't see the board, netiher does TyTools.
When entering the...
It is forever restricted to only running .ehex files created with your key.pem.
You could upload the LED blink example, but only in .ehex format, only created with your key.
Once locked, it is impossible to run...
I will try this, the version I have is 1.57.
Now that I already performed the 3 steps with 1.57, is that board dead forever or will it be fine to use 1.58 to flash the blink for example?
EDIT: The one on this link...
Check which version of Teensy Loader you are using. In the small Teensy Loader window, click Help > About.
Use version 1.58. Old versions won't know how to talk to lockable Teensy.
And yes, I can confirm you...
Isn't that the whole purpose of locking your Teensy? Such that no one can ever overwrite your code? Except ofcourse you, by programming EHEX files that are created using your key.
But perhaps I don't fully understand...
Hello everyone,
I am currently trying to connect to an adafruit ATWINC1500. However, I can not establish a connection with my Teensy (I tried multiple 4.1, also I tried it with a 3.2 and a 3.6) and I am running out of...
I have custom desgined boards using the PJRC bootloader and NXP chip, they work very nicely!
It was time to test the locking feature so I fired up Arduino and ran through the 4 steps. First creating a new...
Hi. I started a IoT project a month ago. I used a Teensy 3.6 that I already have and paired it with a SIM800L GPRS modem. It worked flawlessly. Because I will need many devices in the future I migrated to Teensy 4.1 by...
Oh, I just looked at the I2S code. It’s set for 16-bit acquisition, so the edits needed to get pseudo 24-bit are a bit more extensive than I’d hoped :(
I believe you’ll find it does. Because you check for the playing state too soon, about 2/3 of the time it’ll completely skip the while() loop, fail to stop the queues, and emit garbage data or just crash because you...
Hi,
I've been thinking about making a nerf targetboard for my son that uses 4 piezo sensors to wait until a analogue value increases over a threshold and then calculate the tdoa to get the position.
I've done a...
CircuitPython seems to work well on a Teensy 4. They have a Teensy-appears-as-a-folder-where-you-can-drag-stuff-to scheme that you might be able to figure out.
OK. Following up on 446 and 446 and the "Concerning Issue" . After leaving the Teensy 4.0 unpowered since yesterday I connected it up to the laptop and got the Serial Monitor messages below and recorded four (4)...
I am working on a new product which includes an RA8875 7" LCD with capacitive touch from BuyDisplay (ER0TFTM070-5) on the front side and mounts a Teensy 4.1, adapter boards and various I/O on the back side.
I am...
Thanks for the response.
agreed but this doesn't really change anything
Unfortunate but I've known about this issue for some weeks now and found I can work around it. It would be nice if it wasn't the case but...
It is very common for Teensy programs to contain code as shown below, which will loop forever in setup() if there is no USB serial connection.
Serial.begin(9600); // init USB serial
while (!Serial) {} //...
I am working on a project that is currently using an Arduino Mega with Ethernet Shield as its microcontroller. My coworker has been working on replicating my work using the Teensy 4.1 due to its native ethernet...
I am using the joystick example and can figure out how to manipulate the button data but I dont
see the location where the code is for the hid_process_in_data that is being printed out.
I can see the joystick data...
Like KurtE stated, lowering the SPI clockrate will allow your analyzer to take more samples of that alternating signal.
What will not improve is the sampling of your CS signal - here another phenomenon is present....
The program below shows three methods of doing analog read. You can get more than 10x faster by using the ADC library. You can also use the ADC library in asynchronous mode, either by starting a conversion, doing...
For the past 4 years, Al Peter (AC8GY) and I (W8TEE) have taken the Convolution SDR code by Frank Dziock (DD4WH) and added SSB and CW transmit capability to make it an SDT (Software Defined Transceiver). By upgrading to...
Normally you connect an opamp to each the DAC output pin. The opamp allows you to boost (and also offset if needed) the signal so you get the desired voltage range. It also provides a strong (or lower impedance)...
This is what I have so far. With a VB.Net test program I can actually already see the data of the photodiodes and display it as a curve.
Unfortunately, the AnalogRead function is so slow, that at the moment I only read...
I found this thread helpful but I found no documentation on how to use lockable Teensy’s with VSCode/PlatformIO. This is what I had to do to run it on my install on macOS. I didn’t want to install the Arduino app, I’ve...
If you lower the SPI signal to a low enough speed, then yours might work better. Especially if you can get your analyzer running at a multiple of the SPi speed.
For example 4mhz or 6mhz probably 8.
Well that's a bonus, if the clicking isn't on the recordings (which are, after all, the important thing). But it doesn't ring any bells to me as to possible causes. Have you checked that the files are OK if you remove...
Great, thank you!
I was looking at these DACs, found some other threads on this forum and the o_c module that does precise CV with teensy3. I was also looking at version that are equally precise, but without internal...
So, I tried to include your input on my code, and I still have the same problem. I also want the SPWM and the code you provided set a fixed Duty Cycle, that´s why I used the currentTime in the sine wave generation.
For CV out you do need DC accuracy which means audio DACs are not a good choice. Have a look at something like the DAC8568 from Texas Instruments; it gives you eight reasonable quality 16-bit outputs (4LSB INL, 0.004%...
I've already ordered another Teensy 4.1, so I think I can finally write this one off although I have absolutely no idea what happened to it. My best guess is that I somehow managed to damage the Cortex-M7's USB...
Paul,
please excuse the delay in my answer, appreciate your input and your explanation. If I was to lower the SPI Signal rate, would my logic analyser sample rate then catch up with these? Or is it that I cannot...
You have to go to USPTO.gov or Google’s patent search
The only important one is the circuit, 13 resistors and about the same MOSFETs
But some of the MOSFETs should handle the output current
I envisioned this as a...
Please make a pull request at Bill Greimans SdFst Github https://github.com/greiman/SdFat or open an issue, as this is the original (master) repository.
Eeleker, glad to hear it! I have been using 2.7k resistors as mentioned for probably hundreds, if not thousands of development hours at this point and I haven't had a single communication glitch (though, I'm not pushing...