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
...
Teensy Loader 1.54-beta7 was also updated to use GTK3. Previously we linked to GTK2.
Ubuntu 20.04.2 has a broken GTK2 system (but oddly, 20.04.1 and original 20.04 work fine) which cause a 25-30 delay in startup of...
Might be worth mentioning the udev rules were updated (for upcoming 1.54) to address multiple issues seen on newer Linux distros.
This is the latest. The number in the filename also changed from "49" to "00", which...
Many thanks! I'll stay in touch for your findings...
These low frequency "plops" make me think of an aliasing issue (I think you used the term "component discontinuity") which might (?) happen during the envelope...
I believe that the version number it's displaying is obtained from
.platformio/packages/framework-arduinoteensy/.piopm
which hasn't changed, but you've replaced the code in the cores directory, so it should be...
If you need even more I/O pins then are broken out on the TGA Pro, you can solder wires to directly to any unused pins on the TGA pro socket (the solder joints that are on the opposite side that the socket is installed...
Success :)
Finally, I wrote this:
//This is a callback that gets called after control transfers:
void RTL2832::control(const Transfer_t *transfer)
{
memcpy((void*)&controlTransferResult, (void*)transfer,...
Tried an experiment with a bare teensy LC that shows some promise.
Using touchRead() you can tell the difference between the following
Teensy held its USB cable plugged into the PC
Teensy held against its...
Hi All,
I am trying to read a file from the onboard SD card reader and I am struggling to get it working, I notice on this forum many posts saying that using the SD.h and SPI.h and then having a const like so:
...
Hello everybody,
I'm new to this forum and new to PlatformIO as well.
I installed it on my Ubuntu 20.04 machine aside of Arduino and it works very well.
The only issue I have is the installation of the Teensyduino...
I am looking to build a Kinetic Sculpture where 500 (or so) motors which raise and lower weights(such as Christmas tree decorations), using thread and reels to visually mimic waves, 3D patterns etc. See an example at...
Now that /dev/ttyACM0 is back, I can select it in the Arduino IDE Port menu and things are back to working.
Well, working with a workaround. I don't think the Arduino IDE serial monitor should have failed the way it...
Thanks, Kurt. I think you're probably right.
My first symptom was that the Arduino Serial Monitor failed to open with an error. Unfortunately, I didn't write down the error at the time.
When multiple projects...
That's great. I was afraid that the std::function interface is quite expensive which it obviously isn't :-)
This is weird. The TMR has a combined IRQ for all 4 channels, therefore it needs to cycle through all 4...
I made some more measurements. I increased the logic analyzer to 120 MHz and removed all of the dsb's, so the measurements are more consistent now. Note that clock cycles are more precise at lower CPU speeds, since the...
You need to take into account that you can utilize the time needed for syncing the interrupt flag. Here an example using the code from LAtimes and replacing the callback by this:
void callback()
{
for...
Looks good. Yea at about 5ukp for a TFT I could accept the odd dud amongst the Chinese ones . I think your comment re the rejects is correct, particularly from some ebay vendors. Are you using the t3n version of the...
It is certainly above my pay grade:)
That would seem to be the easiest. And is very close to using 'uint8_t fat32FSInfoSector;'.
Now to do some more testing with your latest updates.
I could be wrong, but my guess is your USB option you built with may not include Serial?
That is looks like you are using Product ID 0x482 Which I think is the USB Type: Keyboard + Mouse + Joystick
This one I do...
Progress! I tried a different Teensy that hadn't been updated lately and that uses USB Serial. /dev/ttyACM0 appeared as usual.
I'm guessing that somehow the Arduino IDE settings got confused between two projects and...
I don't quite understand the application here but do the relays have the same make and break times? If not, it is likely that when you go from, say, 0110000 to 0001000 there is a period of 0111000 or 0000000? It makes...
Thanks, I had not looked at the info sector as, you mentioned it is not used in SDFat... Not sure how hard it would be to use it.
There is optional code in Fat code that if enabled when you ask for the count of free...
The teensy still functions as a keyboard device, but USB-serial still isn't working. Still no /dev/ttyACM0. Tried various things.
sudo modprobe cdc-acm
sudo modprobe usbcore
sudo modprobe ohci-hcd
sudo modprobe...
By the way, the latest main repository version in conjunction with ioSender has a new grbl settings report. It is far superior to the old bit-field approach and organizes the settings by area rather than the seemingly...
I got my replacement Audio board running and reran my tests. I reconfirmed that Paul's observations are accurate in my test setup as well. The ADC transmits 24bits regardless of the CHIP_I2S_CTRL register data length...
Thank you all for working on this!
I've been experimenting with timer interrupts and a scope as well. The above posts help me understand what I've been seeing. luni and LAtimes information is especially enlightening....
hy markT thanks for your replay.
every 2 relays commend buy 1 resistor and 1 transistor and 1 snubber/suppression diode like in schem i added.
im using isolated TRACO 220v AC DC convertor to 12v -->isolated DC DC 12v...
Sorry for the delay, I finally found some time trying your code. I can not reproduce the problem. It generates nice 10ms calls here. Do you still have this problem?
Ok, it uses a flaglike I mentioned before - so this works after claim(), obviously.
So, it means I can call a initialize() after claim is ready - perhaps in Task(). Thank you.
I'll try that :)
Not sure what you are saying. No one has gotten what to work on 1060? Several of us have played some. I have a sketch that we used every hardware Serial port plus a lot of other Serial ports created by FlexIO, that...
@KurtE - I finally found the information about FAT16/FAT32 FS Information Sector here:
https://en.wikipedia.org/wiki/Design_of_the_FAT_file_system.
I am not sure if you knew about it. Unfortunately SdFat does not...
Yes, in my local branches I commented out some of the printing... FatPartition.cpp
in SDFat code...
int32_t FatPartition::freeClusterCount() {
#if MAINTAIN_FREE_CLUSTER_COUNT
if (m_freeClusterCount >= 0) {
...
Again you might take a look at the MSC stuff (MassStorageDriver.cpp) as it runs more or less in lock step...
Again it may not do as much with control but for sending and receiving messages:
look at the function...
I got a cracked one also, and one of the two I got from PJRC was DOA, so I suspect that what we are getting when we buy these cheap displays is the rejects from the quality control process. I remember as a young...
I could actually do that in the DMA interrupt and stop it once the all the data as been pushed out.. I'll look into it.
I would love to try FlexIO as it can run at a much faster speed, but from reading on the NXP...
Why not use a 40 pin IDC cable/socket/plug wired as shown below.
This will result in every other wire being gnd. Also makes it easy making the cable using DIL IDC plugs and sockets.
Good news. Such is the nature of electronics :). I've checked my board a zillion times. Decided to just build another and see what gives. First supplier sent me a cracked ILI9341, waiting on a bunch from China now, at...
Huh. I wouldn't have thought of using GPIOs as extra grounds. My current ground is just running from the voltage regulator.
What exactly would using the GPIO's ground accomplish? In general is it better to bias...
@Frank B - @KurtE
Been looking at librtlsdr.c as well as USBHost_t36 and libusb on and off most of the morning.
Think what going to have to happen is that you are going to have to write a new class for...