Your nephew is talented. Kudos to him.
Yes web interfaces and Web MIDI are super nice for quick prototyping and in fact I went the same way more than year ago to create prototype and quickly fiddle with it. There is one problem though. Even...
The stock audio library, using the PJRC Audio Adapter, has an in to out latency of about 6.4ms. I know this from measuring it myself. Obviously you’d need to reduce the audio block size to get to your desired latency, as you say, but 32 samples...
I just had a bit of a play. Reducing the block size to 16 samples I got the in-to-out latency down to about 1.3ms. I think just under half of that is down to the SGTL5000, so as noted you may get differing results with other hardware.
I also...
Hello,
My collegues from electrics use these converters:
Lutze 817006 programmable U/I to U/I converter.
WAGO 857-500 frequency to U/I converter
WAGO 857-423
And some other converters from the same familly.
Hello,
If you build Teensy synths and MIDI gears, you certainly use various apps to send MIDI messages to test your projects.
A few months ago, I ask my nephew to design a web-based application to create custom midi interface. He ended with a...
Hello,
If you build Teensy synths and MIDI gears, you certainly use various apps to send MIDI messages to test your projects.
A few months ago, I ask my nephew to design a web-based application to create custom midi interface. He ended with a...
@mjs513 - As per the PM, the fix works :D Last thing to test is added back the comments part to "test_file.txt" and that seems to process properly. Done for tonight...
@mjs513 - As per the PM, the fix works :D Last thing to test is added back the comments part to "test_file.txt" and that seems to process properly. Done for tonight...
Total newbie here. I'm using a Teensy 4.1 to power a nerf blaster. It needs to read MSP from an FPV flight controller, which I've assigned to Serial1 (which as far as I can tell, is pins 0 and 1). I can't get the Teensy to communicate with the...
@wwatson - here is the fix - in write function
String tmpFileName = tempFile.name();
tempFile.close();
// Delete the original configuration file and rename the temporary file
if(SD.exists(fileName))
SD.remove(fileName);
if...
@wwatson
Looks like that fixed the rest of it as well. The file marked copy is the original file. Oh for you ease of use - added MTP_teensy (Pauls version)
/**
* SdConfigFile Library Example Sketch
*
* This example sketch shows how to read...
@wwatson
Looks like that fixed the rest of it as well. The file marked copy is the original file. Oh for you ease of use - added MTP_teensy (Pauls version)
/**
* SdConfigFile Library Example Sketch
*
* This example sketch shows how to read...
@wwatson - here is the fix - in write function
String tmpFileName = tempFile.name();
tempFile.close();
// Delete the original configuration file and rename the temporary file
if(SD.exists(fileName))
SD.remove(fileName);
if...
Yeah saw that as well - trying to debug it now - looks like rename is failing.
And Hope you feel better - I am usually the same way. Recovering myself.
Yeah saw that as well - trying to debug it now - looks like rename is failing.
And Hope you feel better - I am usually the same way. Recovering myself.
@wwatson
Looks like that fixed the rest of it as well. The file marked copy is the original file. Oh for you ease of use - added MTP_teensy (Pauls version)
/**
* SdConfigFile Library Example Sketch
*
* This example sketch shows how to read...
@wwatson - here is the fix - in write function
String tmpFileName = tempFile.name();
tempFile.close();
// Delete the original configuration file and rename the temporary file
if(SD.exists(fileName))
SD.remove(fileName);
if...
Yeah saw that as well - trying to debug it now - looks like rename is failing.
And Hope you feel better - I am usually the same way. Recovering myself.
@mjs513 - Sorry for the slow response. Been kinda sick for the last two day's🤭 Thanksgiving? Feeling a little better now.
Went through the code and found some more mismatched capitalization errors as well. That seemed to fix reads using the...
@wwatson
Think I found the problem. Change the get strings to lower case, i.e.,
while (configFile.read(configFileName))
{
// Each parameter can be retrieved using the "get" method
configFile.get("intValue", intValue)...
@wwatson
Think I found the problem. Change the get strings to lower case, i.e.,
while (configFile.read(configFileName))
{
// Each parameter can be retrieved using the "get" method
configFile.get("intValue", intValue)...
FWIW: I did not find any information about built-in antialiasing/interpolation filters in SGTL5000 data sheet, but the other popular DAC PCM5102 has two user-selectable antialias/interpolation filters that are very precisely documented. One is...
Good evening everyone,
As described, I'm building a simulator for the automotive sector. Basically, I need to:
OUTPUTS:
2) PWM valve with current control (PWM, dither, current open/close loop 0-2.5A)
2) There are eight control modes:
-10V...
I just had a bit of a play. Reducing the block size to 16 samples I got the in-to-out latency down to about 1.3ms. I think just under half of that is down to the SGTL5000, so as noted you may get differing results with other hardware.
I also...
@wwatson
Think I found the problem. Change the get strings to lower case, i.e.,
while (configFile.read(configFileName))
{
// Each parameter can be retrieved using the "get" method
configFile.get("intValue", intValue)...
No it doesn't. You have it backwards; LittleFS and SdFat are both implementations of the FS interface. Some of the functions may have been "inspired" by the SdFat functions originally but that is because they are generic enough to fit any...
I think you need to actually understand what the FS class is for - what happens when someone calls your new fgets method on an FS implementation (e.g. LittleFS) that doesn't support it? Or even a File object that isn't a currently opened file...
I agree with this take, that fgets() should not be added to File/FS.h. It’s possible to implement Newlib’s auxiliary file-related functions (_read(), _write(), _open(), etc.). Then you get almost all of the C file calls for free, including...
But File isn't just a wrapper for SdFat...
It's a generic file handling class. Adding a function to it means every underlying filesystem object must support it. That's exactly the sort of thing that libc's formatted I/O functions are designed to...
The Teensy will control a measurement equipment, so I need to be able to store machine data, data of used sensor(s), motor parameters etc. and to be able to allow user to make adaptions for their needs with different settings.
Number of...
The Teensy will control a measurement equipment, so I need to be able to store machine data, data of used sensor(s), motor parameters etc. and to be able to allow user to make adaptions for their needs with different settings.
Number of...
Does this library do anything that IniFile doesn't? It can store all the same types of data, and it already works.
https://github.com/stevemarple/IniFile
what sketch are you using?
EDIT: Ok see what the issue is - basically from what I am seeing you have to have a config file already existing for it to work correctly.
No it doesn't. You have it backwards; LittleFS and SdFat are both implementations of the FS interface. Some of the functions may have been "inspired" by the SdFat functions originally but that is because they are generic enough to fit any...
The stock audio library, using the PJRC Audio Adapter, has an in to out latency of about 6.4ms. I know this from measuring it myself. Obviously you’d need to reduce the audio block size to get to your desired latency, as you say, but 32 samples...
what sketch are you using?
EDIT: Ok see what the issue is - basically from what I am seeing you have to have a config file already existing for it to work correctly.
Adding fgets() fixes a few of the issues:
initialization Passed: OK.
--- Read Method 1 - While Loop ---
lineBuffer = intValue=1234
lineBuffer = longValue=12678
lineBuffer = floatValue=0.24689
lineBuffer = arduinoStringValue=Hello, this is a...
As I said it is not a new method.
fgets is a method that is already implemented in SdFat!!! It is now new - it is just be exposed as other functions that are currently in FS class.
Will have little impact to other filesystems unless you deceide...