thank you paul for your quick replay.
ill try go for the zener method first (with a tvs diode) instead the regular diode to see how its improves the closing relay time and if it reduce the switching peaks in signal...
Interesting I had tried just including PFsVolume.h but it failed but if I did a #include "mscFS.h" to worked. Live and learn something new everyday.
Ok with that said I added format to the procesMSDrive and it gave...
OK I have a quick and dirty version of the code to read the information sector for free space...
uint32_t ReadFat32InfoSectorFree(USBmscInterface *usmsci, uint8_t part) {
uint8_t sector_buffer;
if...
thank you for your replay PhilB
the relay path is for in line audio signal so any LPF must be 13nf related to 600ohm standards.
ill prefer to avoid them. its a passive control volume path for stereo balanced analog...
Yes. Look on the product page.
https://www.pjrc.com/store/teensy41.html
Scroll down to "Software" and look for "Command Line with Makefile".
Similar info is also on the Teensyduino download page.
...
Hi Andy,
Only in case a peripheral wants to drive a signal higher than 3V3 to the Teensy.
For your application, CS, MOSI and SCK are all outputted by the Teensy at 3V3 max so no problem in that respect.
You...
The problem is you are using code to read files from the SD card reader. The Teensy 3.2 does not have a built-in micro SD card reader, and nor does the Prop shield.
You could get a Teensy 3.5 or 3.6 and use the Prop...
I can't see your screen and I know know precisely what you're clicking and typing, but my best guess is you may have installed Teensyduino into a copy of Arduino you downloaded from Arduino.cc (the only thing...
I am using Ubuntu 20.04.2 LTS. The installer doesn't seem to work with snap package. When I download arduino from the arduino website, the installer work, but I still don't see anything in the arduino IDE.
@mjs513 - Good morning.
Probably need to include: UsbMscFat\.....\PFsLib\PFsVolume.h
Which is probably included in some other higher level include files.
Like:
#include "mscFS.h"
Sorry I am not 100% sure of your setup. Also I do most of my stuff on Windows, but do keep a machine with Ubuntu...
Might help to know what version of Ubuntu, running on? 32 bit or 64 bit...
Also Teensyduino...
well, guess i'll make sure every output is set to low, and have an input where i measure the 3.3V line of the DC-DC converter and halt my setup code until it is digitalRead(DCDC3V3) returns 1.
any recomendations on...
When I try to install Teensyduino on ubuntu, it's not working. How should I proceed?
I created the file https://www.pjrc.com/teensy/00-teensy.rules like described in the docs. Then dowloaded the installer for linux....
That size of VFD now seems to retail for about 100 ukp here, the ILI is by far the more cost effective option. Just meant was touch sharing the MOSI,MISO and CLK with the display, it’s now clear it is and that is good...
While far from elegant, you could just change the delay to be the length of your WAV file.
void loop() {
playSdWav1.play("SDTEST2.WAV");
delay(93200); // wait for SDTEST2.WAV to completely play, approx...
AGND on Teensy 3.2, 3.5, 3.6 is meant to help with the analog input pins. It's unrelated to the audio shield (which is all digital audio signals as far as Teensy is concerned), except for the specific case if you add a...
Good morning all as well
Sounds fun. I started playing with trying to get a kludged together fatformater working, going piece by piece but knowledge getting stuck on c++ issue. I started with just the basic call to...
I would not recommend connecting the two 3.3V outputs together. Especially if the DC-DC converter is a modern design with a synchronous rectifier, that would end up with a pretty unsafe situation.
Probably the...
Morning all,
The info sector is interesting thing, may add another hack onto the VolumeName sketch version which tries to read it. I am sort of curious for example if I then transfer a stick to Windows, does it...
The code checks if cycle_start pin is HIGH and calls cycleStart() that sets the output pins and led high.
You need to check when the cycle_start pin goes low to turn off the leds, or use a timer for that or the...
all io pins of the nextion adapter are setup as 3.3v outputs, but i dont use all of them. They go straight into pin 14-18 of the teensy, which are set to input. When i press a button on the Nextion, it sends a high...
Hy,
I am making a board where the 3V3 power usage exceeds 200mA. As such, I'm planning on adding a seperate 3V3 switching DC-DC converter in combination with the Vin 5V input.
However, i was wondering if i need to...
general understanding in seeing some posts ...
use AGND for Analog signal ground as it has some isolation from digital ground to eliminate some noise digital circuit usage may present on an otherwise shared ground.
Try this in the loop() code - from : ...\hardware\teensy\avr\libraries\Audio\examples\Tutorial\Part_1_03_Playing_Music\Part_1_03_Playing_Music.ino
void loop() {
if (playSdWav1.isPlaying() == false) {
...
I just installed Teensiduino beta version as usual and then manually copied the cores (from the Arduino folder) into the respective PlatformIO directory, replacing the existing ones. I have read that you can explicitly...
Looks right to me. And LC is the obvious choice for MIDI out of the current line-up because it's the lowest cost.
MIDI is not very demanding of resources and human interactions with controls are glacial in timescale...
There is this extended Tool that allow this.
https://Manicken.github.io
There you can group items into a voice class.
There is one example at the main menu- examples-poly synth.
That describes how to use the tab...
In UP mode you always turns relays off before setting them to correct value, that will cause spikes
if(num > PrvNum){
Serial.println("UP");
PrvNum = num;
for (int i = 0; i < 7; i++) { ...
This is slightly confusing exactly how are the Teensy, Nextion and optocouplers connected ? Which pin is input from Nextion, and which is the corresponding output from Teensy ?
Hey there, no need to apologize :) Yes, PCM1681-Q1 is my workhorse and it worked straight away with T4 in both I2S and TDM mode. I'm using it in hardware config because it requires no pins or code from Teensy.
...
Hi
I have a teensy 3.2 soldered onto the prop shield with an 8omh 1.5 watt speaker soldered off the speaker end of the prop shield.
I'm trying to find the minimum amount of code I need to play a few wav files. That...
That won't work since it will mess up the interrupt handling. Anyway, I'd simply define a relay function which, depending on the current mode, increments one of two variables. Limiting the values to two ranges is...
Hello TigerBalm.
I've had this problem too, when building my synthesizer. You can access the audio objects from an array, like described in this post. ...
Hello TigerBalm,
weird, I noticed too that somehow, there are different versions of the gui tool. (with different indexes? :confused:)
This here -> https://www.pjrc.com/teensy/gui/ does not include the filter,...
Hi Richard,
thank you, I changed the coefficients and corrected the bug you found in the poly update routine and now it works great with relatively low CPU usage (also 4% for 2x oversampling and linear interpolation...
Thanks a lot, updated the repository accordingly.
BTW:
Doesn't work without DSB (or other syncing code) for short ISRs because the ISR will be reentered (interrupt flag not yet set after the ISR is left)
...
Hi, I need some help understanding the Ideal use of the Analog Ground pins and best way to use it on the Teensy boards. I have read a lot of mixed uses for the ANG GND and I am not sure how I can best use it in my audio...
I just saw that the MIMXRT1062DVJ6A chip might be discontinued. Is it still safe to implement this in a new project?
From their website: https://www.nxp.com/part/MIMXRT1062DVJ6A#/
If a new version is...
Hello all, I'm super excited to use the filter. Flo mentioned it's in the "official" audio library now, but I don't see it in the GUI tool. Any tips on where to find it?
I'm really enjoying Teensy and the user friendliness of the Audio Library has "unlocked" for me the ability to code my own synthesizer. (I'm a mechanical engineer by training)
As I transition from monophonic to...
For reference, here's a pic of the circuit I was using (no schematic sorry!), with the caveat that I was using the i2c outputs from pins 24 and 25 on the teensy 4.1 (top), running into pins 18 and 19 on the 3.6...
I've got a data logger solution, based on the T4.1 that is used in an amateur rocket. The application also has a high powered radio that transmits telemetry. This weekend on a launch, I had my first issue where the SD...
I'm a new electronics hobbyist learning the basics. I'm controlling a 5v MCP42100 digital potentiometer from a Teensy 4.1 via SPI.
My Teensy 4.1 is 3.3v and not 5v tolerant. I have to run the MCP42100 at 5v.
What do...
Hey there, sorry to revive your old thread, I was just curious about your DAC setup. Are you using the PCM1681, did it work straight away in I2S mode? Could you share any more code/info about it? Thanks.
Well tomorrow is another day, Thank you again defragster, I feel like I own your a case of beer for all this help you are giving me... :)
I will look to use the SD.h library and use the parse code example you laid...
Easier to just start with the IDE ... of course I use the IDE and TD installs and build from editor with command line build - this works on Windows: github.com/Defragster/Tset
But this thread has possible solution to...
I went back and verified my results just to make sure. I looked at the timing in the interrupt routine before the callback and after the callback.
GPT Pre-callback time: 108 nsec
Post-callback time: 108 nsec...
The Parse code doesn't need changed as it just gets a string.
What would be different would be the file operations using SdFat to open and read the file to get those string from the file - so the code feeding the...
Hello everyone,
I'm using platform IO given the ui layout is really nice over the Arduino platform.
I now need to move to the new 1.54 beta version of Teensyduino for the new SdFAT library. However when I go into...
Teensy 4.1 driving a Newhaven SSD1322 256x64x4bit OLED takes about 24mS to update using U8G2 on SPI 4 wire. I maxed out the SPI rate to 10Mhz (max rate on SSD1322 spec, Tcycle = 100nSec).
OLED updates happen in main...
Hey defragster really quickly what did you mean, by just have to use the proper function and variables as is done now.
So what you are saying is I can use the above code with Teensy Loader 1.52 and just have to...
The other thing you can do is drive the coil with much higher voltage while it's changing current, so the relay switch much faster. There are at least 3 established way to do this.
1: The simple & safe but...
haha I have been looking for like 20 mins to find these files haha Only found SD.
Ok I will look to download Teensyduino-1-54-Beta and look for the example files there.
Thanks again defragster, Going to try my...
I can't say whether it will solve all the problems you're seeing. But generally speaking, yes, if you want the relay coil to switch off at approximately the same speed as it turns on, you do need to add a zener diode. ...
Hi. I am trying to get the heart rate measurements with the following hardware plugged into the Teensy 4.1:
Ant+ usb dongle
Heart rate belt
The sketch is pretty simple:
#include <USBHost_t36.h>
USBHost...
OPPS - TYPO on my part See :: pjrc.com/threads/66357-Teensyduino-1-54-Beta-7
1.54 is in beta and the SdFat library and examples are in that release.
All of that code will work with SD.h - just have to use the...
Hello defragster,
I have to say thank you right off the bat for writing all of this for me. Atm I'm using Teensy Loader 1.52 which is higher then what you stated above. I would assume this would also use SdFat. I...
oohhh, an old 2x20 vacuum flourescent dot-matrix display. I would have killed for one of these as a design engineer in the 70's ;-)
Yes, I'm using the t3n version of the library. Don't know what you are asking...
Interesting project.
Since you aren't going to be able to control all 500 motors directly from a processor, you will need some sort of distributed control. I assume you've already figured that out but it leads to...
I don't think I have posted this.. here s a link to a site in german language: https://elektronikbasteln.pl7.de/dvb-t-usb-sticks-als-scanner-von-9-khz-bis-ueber-1-ghz
( a very good translator is www.deepl.com)
Scroll...
You'll need the ground wire, only the power should be cut. Otherwise you can cut the trace on Teensy to separate VIN from VUSB and use a standard USB cable.
Hi Jim,
(1) SPI always uses push-pull pins.
(4) I don't see a problem, the chip can be used for SPI, see this product.
(5) the chip is bi-directional, it just "voltage-translates" signals from one side to the other,...
Think you broke the code though.
I keep lowering down to 2.048Msps probably could go lower, tested it all the way down to the lowest setting but you don't see much of the waveform in the display.
Hi all! Could use some help here. I would like to read the serial data coming off a teensy 4.0. Issue is that the teensy is powered via a power source that is different than the device being used for the serial monitor...
What version of TeensyDuino is in use? If using the TD 1.54 Beta 7 the SD code actually uses installed SdFat. Though SdFat is included - but uses different functions and methods.
Not sure if this help to answer -...
Thanks :)
There are still ~60% to do, for the library/USB communication only.
I'm not that sure that it will work. The samplerate is incredible high. I think default is 2.4Msps?
SDR# offers lower (and even higher)...
Nice job @Frank B !. Just got back on line and saw your post. Feels good to see that its alive finally. When dreams become a reality. You know if you make this work on a Teensy I think it will be the first time...
Hey luni, thanks for the help yet again! You're correct, I am using your library. Always happy to be able to present the problem to your solution :D
Wow, thanks a ton I will be able to test this shortly and let you...
From one of the documents referenced in the "support resources" section of the TXS0108E data sheet, I found the answer to #2 and #3: "If the application does not require output enable control then the OE pin should be...
Hello,
i have a Teensy 4.0 and a nextion display with the io adapter. I use some of the nextion io pins as output (3.3v), which are directly wired to the inputs of the teensy. when i press a button on the display an...
I've read the many other (Teensy) threads about Logic Level Conversion (and looked at many of the products referenced). I need bi-directional Logic Level Conversion from/to the Teensy 4.0 SPI ports; I am driving the...
Ok I can see what I think is happening and your right @Paul the compiler is picking up the wrong version of SD.h.
Problem is within the Arduino / VSMicro IDE (Tried both!) SD isn't showing as a Lib for Teensy in fact...
There is no layer below the Resampler class. There are no further classes or blocks or a processing pipeline inside the Resampler. The Resampler has a resampling function that implements the bandlimited interpolation by...
Arduino is using a non-Teensy copy of the SD library.
First, check that Teensy is selected in Tools > Boards.
Next, scroll up from the error message and look for info about duplicate libraries. If you've got a...
Hi Cliff, where do you declare chipSelect? It should be declared in the first part of your program before anything that needs it. If that is not it, post a more complete example of your code so that we can better...
Hello everyone I'm going to do my best to explain the issue I'm having.
Currently I'm building a chess board that will allows the user to import a new chess puzzle in a .csv file format. which looks like this
...