Awesome - other posts link way farther back - so far back it didn't ring a bell until others found it - just linked to that one.
To work was pinMode used before and removed - or changed to using INPUT_DISABLE?
Thank you, defragster. Actually, my first post about the problem was in mid 2022, so Your linked topic did not exist yet :) I got exactly the same problem. Thanks for the fix!
No code provided to confirm ...
This has come up before and again in past day - when pin hysteresis is enabled the midrange gets a sticky bias and that may be what is happening here.
If any pinMode() is used -...
LoL
Sorry for that. You're the developer of Visual Teensy, so I'm not surprised that you work with it too.
If it does so many things better than the Arduino IDE, then I will try it.
One of my repair customers requested to try out the waveshape pedal here at my shop.
He liked it enough to video it with his phone.
We ended up making a Youtube video of a more extensive rough demo of the pedal.
...
I used my scope and generator to do a latency measurement.
Its latency measured at 6.38ms.
https://forum.pjrc.com/attachment.php?attachmentid=31252&d=1686190142&thumb=1&stc=1
Hi folks, pretty new to working with line level vs headphone levels.
I'm wondering what I'd need to do to get a good volume controllable headphone signal out of the line out signal from the PT8211.
Could I use...
Does anyone have an idea as to how to fix these warnings with latest SmartMatrix and Arduino 2.1.0 ? The code runs fine but the warnings are irritating.
Warnings are valuable and even with Warning set to "none"...
Using Arduino 2.1.0 Date: 2023-04-19T15:31:10.185Z CLI Version: 0.32.2
I have 2 (or 3) Teensy 4.0 or Teensy 4.1 connected at the same time to two usb ports.
Arduino recognizes both are present. I can switch between...
Some small changes here, compiles for T3.6 may be a start.
/*
Breath Controller
*/
//Libraries used - install them from Tools->Manage Libraries
#include <Oversampling.h>...
I am using ILI9488_t3.h and it works.
However tft.print(); wont delete the old value.
ChatGTP always provides examples with tft.fillScreen(BACKGROUND_COLOR); to delete the old value but what would be a more...
I've made some improvements to the multi-channel USB which I pushed up just now. The feedback sync is now apparently working, but only on a USB 1.1 connection. There's something screwy going on with USB 2.0, but it...
Hello Kurt,
thank you for your answer. Yes i know your libs, but somehow i was not able to find an easy example how to use one dma framebuffer.
Maybe you can point to an example you´ve done, that would be very cool...
I would suggest (so others can see the problem is impedance matching, your impedance driving the source is TOO HIGH, most midro ADC inputs have input impedance of around 30 to 60 k ohms, so a 10k in parallel with this...
DSE is basically Drive Strength Enable, the higher the number the higher the current (1 to 4 mA) the pin can drive (HIGH) or SINK (low), this affects the speed of transitions (slew rate of the signal) I noticed the...
OK, I got it to recognize the display. It turns out there are multiple problems with this setup.
I rewired everything for the sake of pictures and simplicity, and removed the power supply as you suggested Paul. This...
Thanks!
I found it but unfortunately it's still too vague as to how to communicate with this chipset.
Real bummer as it has a very small footprint, and seems to have strong capabilities.
Sadly, using 2 audio shields is more difficult because we lost the ability to configure the I2C address with Rev D2. Fortunately chip shortages are getting better and Rev D will return in a couple months.
You can...
Thanks Paul! I think I got it working. I arbitrarily picked those bits on GPIO7, not realizing that there were limitations on what pins can map to what bits. I used the MCUXpresso pins tool to build a configuration...
Sort of half fixed it.
The interrupts weren't working because I needed to add IntCAN.enableMBInterrupts(); to the init function and then call IntCAN.events(); during the while loop.
After doing that and switching to...
This is the code. It's basically just the setup code from the raw frame monitor. I confess once I'd got my ping that was enough to validate the hardware, so I've already passed the hardware on.
#include...
EDIT: I found that my problem is with my CAN adapter, nothing else as of now. I will update this message later when I am sure there are no other issues, thanks.
Hi, I'm working on getting my first CAN program to...
Are you saying it took a few minutes to get an IP address from DHCP? If so, would you mind pasting a small example that demonstrates what you’re doing? DHCP doesn’t normally take that long. (Slow DHCP server, maybe?)
Thanks for getting back so quick, Paul!
So, if I understand you correctly, I can use the one Audio Shield for ALL my audio input/output needs... But if I did want to separate them I could use one Audio shield for...
Hello, i'm trying using sp1.
First of all, i've changed so:
SPISlave_T4_FUNC SPISlave_T4_OPT::SPISlave_T4() {
if ( port == &SPI1 ) {
_LPSPI3 = this;
// 0=LPSPI1 1=LPSPI2 2=LPSPI3 3=LPSPI4
...
Thanks Paul, that's very useful to know. Teensy is soldered on a PCB and I don't really have the equipment to unsolder it easily, but I'll do some more testing. Cheers,
I have a project that needs to log all CAN-FD packets on a bus. It is working fine for low data rates (100Hz packets) but as soon as I turn the data rate up I get the overrun flag set and drop data.
The exact same...
Apologies, I was a little vague with that, your assessment is correct. What I should have stated was that I'm driving the display (16bpp) via USB from a desktop computer. ~9.7 is about right for the bandwidth available...
I'm not sure why this code isn't working. But I can at least answer this:
No, the ethernet PHY chip isn't configured at boot. It doesn't get any configuration at all unless you run one of the libraries which...
This sound like a low frame rate.. what color depth are you running at? And what bus speed?
At 16 bit color depth and 30Mhz bus speed (8 bits) you should be getting up to 36fps
If you double the bus width you can get...
For the sake of testing, I would eliminate the uncertainty of external power and use a short USB cable connected directly to a PC or powered hub (which should be able to output 500mA) and connect the display's +5V power...
I'm trying to follow your wiring in the photo and match it up to this Adafruit info
https://learn.adafruit.com/adafruit-led-backpack?view=all#1-2-inch-7-segment-backpack
Looks like you might have an external 5V...
I don’t know if this is still relevant.
But I hade luck with this simple code (to Write a file). I dont use "firstPartition.begin"
#include <USBHost_t36.h>
// Setup USBHost_t36 and as many HUB ports as needed....
IIRC, the ATMEL studio it handles ATMEL chips only, i.e. AVR, SAM.... Teensy uses NXP processors, I doubt that you can use ATMEL Studio for NXP processors.
The ATMEL Studio is using a very old version of...
But you wanted to know some weeks ago, how to use Atmel Studio with Teensy.
Are you not interested no more in the topic you opened?
Didn't you follow your question?
Do you program your Teensy in Teensyduino...
I've been studying the reference manual all day. I'm trying to map my new pins 100-109 to 10 pads on the IC as follows:
100 = B1_04 = E12
101 = B1_05 = D12
102 = B1_06 = C12
103 = B1_07 = B12
104 = B1_08 = A12...
On the Teensy, millis() calls are pretty cheap because they just read a 32-bit variable that’s updated by the “systick” interrupt. That subsystem is running all the time anyway.
Cooperative means non-preemptive, with each task voluntarily giving up the processor.
Cooperative and preemptive OS can have all of the same types of features for handling events, mutual exclusion, and inter-task...
Note: AsyncWebServer runs cooperatively and has similar behaviour and performance as polling/single-threading.
Deeper: it runs whenever QNEthernet’s `Ethernet.loop()` is run, and that happens internally in a few...
What do you mean by "cooperative multi-tasking"?
I do not want to argue, but any SW design which needs delau() or even miilis() is a not real-time (for me a "bad design").
A real time system should work based on...
That's pretty much the exact same size terminal I was going to use, to try out a trick I had in mind:
- allocate 128k (2^17) bytes for the framebuffer and align it to a 128k boundary
- set SMOD in the DMA descriptor...
I need to update the web page, yet again. In early 2021 all TLV75733P disappeared from the market. Robin bought a large amount just before they vanished, but the shortages lasted longer. In late 2021 we were forced...
Thanks, Been playing with it all day and I think I have a basic understanding of how it works. Next step is setting up for a text terminal and simple graphics. I am going to only use 640x400x70 16 color mode. This...
Hello friends,
I'm trying to get a Teensy 4.0 to recognize this display that uses an HT16K33 I2C driver chip:
https://www.adafruit.com/product/1270
The example (modified to scan all channels) I2C scanner will not...
My five cents:
a) assuming you use DHCP in MCU FW, and you get an IP address - this sounds to me as: ETH is working, it can talk to DHCP server (and get IP address assigned).
b) but if you use a STATIC IP address in...
Good to know that FreeRTOS will work for you. You can always avoid delay() by calling millis() and checking for the desired end time. "Polling delay" for a signal from ISR can easily be kept in the low microseconds, and...
When I check the schematics for the Teensy 4.1 board:
https://www.pjrc.com/teensy/schematic.html
What I see:
a) VIN is the same as VBUS (from USB). There is not any decoupling diode! So, you have to make sure,
...
Glad it's working.
Can you give any info about who sells this SD adaptor? I see it has marking HW-125, but no other info seem to be visible in the photo. Any info (as searchable text) about the make, model,...
Great to hear that it works for someone else.
FlexIO can definitely be a rabbit hole. The code here isn't what I would call very well documented so I'm happy to answer questions; at some point I want to strip it down...
You might need to use slower SPI clock. I don't know much about that specific SD adapter board, but I see it has a buffer chip and resistors. Often these boards with buffer chips work on regular Arduino board which...
Here is a FlexIO driver, in 8bit mode, for the ILI9806/G 854x480 IPS displays as found on Aliexpress. Using the Teensy 4.1 at default speeds, it's able to drive this display @ 9.7fps
Here is the solution: FreeRTOS for Teensy 4.x
I found and tried this:
https://github.com/tsandmann/freertos-teensy
Just "Sketch -> Include Library -> Add .ZIP Library" and it is there.
(for now, nothing to modify...
Hi, I recently purchased a Teensy 4.0 and needed to collect data on a micro SD card. I connected the CS to pin 10, MOSI to pin 11, MISO to pin 12, and SCK to pin 13. However, the card does not initialize. Initially, I...
Thank you.
Any polling, even a shared variable set by ISR is not "fast enough".
Meanwhile, I have figured out that FreeRTOS works (if you download and install the ZIP): no modification needed, works as I need (a...
If it's critical for your task to run as soon as the ISR exits, you could use FreeRTOS. I don't like that solution because it's not fully supported and requires some (small?) changes to the Teensy core. I prefer to use...
I think, the missing real RTOS hits me. I cannot accomplish what I want to implement:
when GPIO interrupt is triggered - a thread should be released (running outside INT context)
the interrupt handler should unlock...
Hey everyone, since i´m an absolute noob when it gets to programming, i´m wondering if there was a super easy example for a DMA approach?!
I dont even know if its possible since i could not find an example for my needs...
Did you see the example showing how to use the 23S17 (SPI version of the chip) https://github.com/luni64/EncoderTool/blob/master/examples/2_multiplexing/multiplexed_MCP23S17? If you need the I2C version, adapting the...
@luni, have you considered adding support for the I2C 23017 multiplexer? I am using them in a Pi Pico W project (Adafruit MCP 23017 GPIO Expander). If successful, I will probably port them over to my Teensy 4.1...
Did some googling and there seems to be some support for STM32. Try searching for "STM32 connectivity pack". There are some references to i.MX, but nothing specifically for Teensy or imxrt1062.
Line in, line out, and headphone out all work simultaneously on the audio shield. The headphone output and line output get the same stereo audio. Internally, the audio shield as a stereo ADC and stereo DAC. The...
Well it's working good...
I see the bouncing ball and background changing color when the ball hits the wall. Good quality picture even with my sloppy bread boarding. Need to find or make an adapter board.
Now to...
Hey, So I'm building a Synth/sampler/looper - something with dedicated knobs and sound sculpting ease of the the Korg Volca series and the on board sampling power of the OP-1.
I'm not an engineer, or an electrician....
It was some versions ago, but I definitely tried replacing the original teensy_secure by my confirmed working patched teensy_secure and then upload code using Arduino IDE. I found out, the manually generated ehex had...