hi otemrellik. i’ll have a look when I have a chance. in the meantime it’s probably best to revert to a previous working version … thanks for letting me know, much appreciated
cheerz
I see.
For reference for others that want to do the same, you should measure the time passed between `attachRawPress` and `attachRawRelease` and do some calculations based on that. By default in Windows:
...
Wow!
Thank you so much for all the effort on responding this thorough.
Things makes way more sense now that I've read your post along with the "KeyboardForeward.ino" code. I think that I actually should base my...
The .ld file edits did not work. The code compiles, but the teensy will crash right at startup.
However, I did use the memory inspection tool in platformIO and moved some large variables in the libraries into...
I can't get digitalWrite() to work while using Encoder library. I have an encoder w/ button and an 2x16 character LCD on an Arduino Uno. The encoder and button works fine as well as the LCD. But if I try to directly...
I can't get digitalWrite() to work while using Encoder library. I have an encoder w/ button and an 2x16 character LCD on an Arduino Uno. The encoder and button works fine as well as the LCD. But if I try to directly...
you shouldn't need to strip mailboxes down to one using msg.seq = 1, it will only output to the absolute first mailbox. also you don't need events() in loop if you want direct firing interrupts, but that's optional. As...
Can I upload code to the Teensy 4.1 through the Ethernet port
Can I monitor data through the Teensy 4.1 Ethernet port
Can I synchronize Teensy 4.1s & upload code without needing a serial cable?
Can I synchronize...
Thank you for your response.
For what you say and what I've checked in the code, there is no restriction other than the software on being able to dynamically register a different USB with different characteristics...
Yeah, fair enough. It’s all brand new equipment. I’m really leaning towards some sort of weird ground issue that’s only affecting the SD Card reader for some reason. I have a day off soon, I’ll do some more in-depth...
very cool, my wallet and patience thanks you.
I have found that constant and never ending searches will eventually yield things, I found a arduino nano sense for under $40 , it only took 6 months......but thats a...
Hello otemrellik,
i am not sure if i can help you but if you have static samples, they would be best played from progmem, that seems to be the fastest method. It will also work from SPI flash. About psram, we are...
I have been playing with a little project that is now needing a little more urgency.
With some testing I found that the octoWS2911 library gave the best results for a single strip of LEDs. The next stage of the project...
It should not require it... I have never needed to hook up anything that way... But I don't use Audio except for testing..
But feels like a bad ground circuit... And yes in theory if plugged into one thing works and...
The power block should be giving it enough current. I can do the tests on the pins and get back to you. I've only used the one USB cable so far, but if it works when connected to my laptop while there's a cable in the...
This code (don't remember where I found it) will scan for I2C devices on Wire, Wire1 and Wire2 on a T4.1.
// i2c_scanner
// http://playground.arduino.cc/Main/I2cScanner
//
// Version 1
// This program (or code...
Hi Stefanodi - What you have produces double sideband suppressed carrier. You need to add in a constant carrier level, like 1.0. This is like vout = *sin2*pi*15000*t wher m(t) is the modulating waveform that you have...
I am trying to get a Teensy 4.0 to read from a DHT11. Everything works fine with an arduino so its not a hardware issue.
Im using the adafruit library but its failing on this line:
if (expectPulse(HIGH) ==...
I would assume you have tried different USB cables to make sure that there is not a problem... Could be bad power or ground connection. I have had some USB cables that work to some teensy boards but not others...
...
Hi,
Currently I built my own midi controler. No audio part inside it, I only send midi message.
I want the best possible midi latency like Bela mini https://eu.shop.bela.io/products/bela-mini-starter-kit. on the...
Right, sorry, I forgot that I posted the pic in my previous thread.
Boards are connected directly with pins, the only other things connected are the USB extension, the switches (in a 3x3 matrix), the LEDs of the...
Installed ok on Mac Catalina 10.15.7
Still haven't managed to crash the serial monitor with b1 or b3. Skipped b2.
FYI on another minor issue:
With 1.57b1 I often got a situation when uploading a program where if...
Sorry, again hopefully others will have more ideas.
But we are again sort of shooting in the dark, as we are don't see your board and hook ups and the like. Again probably does not help you to say that it works on...
These posts give me hope that Teensy 4.1 can transmit on SCl2 at IO-24, and SDA2 at IO-25.
However, the posts do not actually show a sketch/includes that work.
I have had success with Teensy 3.5 SCL2 at IO-3, and...
It depends on what code you are using...
More specifically it matches what you pass through to the constructor...
#define TFT_DC 9
#define TFT_CS 10
#define TFT_RST 8
// Setup optional backlight pin
#define...
Ok, so after some further testing, the audio shield works with a tone sweep test, and now I can get the SD Card to launch only if I have a cable plugged into one of my Line Outs and USB connected to my laptop. If I use...
Hi Nic, I just updated to v1.0.14 for a project I'm working on that uses the sampleloader example to load wav files from the sd card into the psram on teensy 4.1. Using the example, the playRaw seems to work just fine...
Please don't create N different threads for the same conversation.
I believe a lot of this is done at the host level. That is for example on PC keyboard controller. You can change the Repeat delay and the repeat...
Simple Answer is in a generic way you probably can not.
That is if you want it to on each run if you have a different keyboard plugged in, you wish for these values to mimic it.
That is that data is built into the...
Sorry I am not Paul, but ...
As mentioned by Paul, several of our examples were setup as big test cases to try out several different things, and the one named Mouse is/was the kitchen sink, especially for testing...
Howdy, In the process of porting my code tested on a UNO coded for polling to a teensy 4.0 using FIFO with interrupts. Everything connects, writes, and reads fine however the frames are not ordered as seen in the logs...
Hi,
I've been trying to capture the repeated keys prints that a keyboard produces when a key kept being pressed for a while before releasing. When you do that just one letter gets printed for a second and then a...
Hi,
When I use my teensy as USBHost I can get information from the connected device as:
uint16_t idVendor();
uint16_t idProduct();
const uint8_t *manufacturer();
const uint8_t *product();
const uint8_t...
Thanks Bob for the reply.
The project is based on an RTX type I & Q mixer card.
I would like to build an "old style" RTX, without many controls and easy to build, but ALL SDR.
My problem is generating the...
Update is an internal function. As thebigg mentioned in #2, you can simply use write(pos) to set the current encoder value. Doesn't that work?
Library Documentation:
https://www.pjrc.com/teensy/td_libs_Encoder.html...
Reading through the library it seems the variable that holds the position is in a struct in the library. The update() function has that struct as an argument. But the documentation says "Do not call update() from...
Cool. Thanks. Mine should be here on Tuesday (Monday is a USA holiday). One issue with the traditional two displays was hiding the extra bulk of the corners of the display if you were thinking about embedding it in a...
I know I could have another variable to get the value of the encoder before it is rotated and use that as an offset. But some of the values can be negative and some cant witch would add another layer to it. It just...
The thing is, there will be several values saved to EEPROM and reloaded at startup. So if I then go into the menu I would like to have those settings be the starting values for the menu. Also when switching between and...
I'm using Encoder library and am trying to find a way to preset the position. I would say I'm an intermediate level coder FWIW. I've looked at the library and because of the way the position variable is wrapped in a...
PH. Thanks for the recommendation. 3nd question ( most of my experience is with the RASPIs , can I swap the 4.1 in directly? The 3.2 is out of stock for almost a year. A few dealers on Alibaba claim they have them but...
I used a Teensy 4.0 and an Audio Shield to build a little audio player. It plays a one minute rain noise WAV file on loop out the headphone jack. I have a pair of cheap Walmart USB powered speakers plugged in to the...
Another option is if you switch one or more io pins back from fast mode to normal move. See iomux setting in startup.c
Each of the io ports have 2 interrupts, one for lower pins and one for higher pins. You would...
I could be wrong, but I believe that support has been in there for several years now. For example when the AVR and T3.x code was split into separate files back in 2017, I believe it
was in there before then.
Edit:...
Quick update...
I actually received a second one, which I picked up this morning from the Mailbox...
Code is not 100%, but looks sort of fun using the round displays.
UpdateScreenAsync failed, so will look...
May I humbly request I2C slave support for Teensy 3.2 in the next 1.57 beta? My desire is to add a 3.2 as a slave in a 5V environment.
Thanks in advance for any consideration.
Bob
Suspect that concern was resolved with the attachInterrupt() code in that file as it has been in use for some long time now without issue ... the problem with comments ... ???
> no comment, no clue beyond what the...
Thanks for the information. This comment in that interrupt.c file made me question if I should be using pins 6-9 instead of 9-12, or maybe avoiding them instead. I just wasn't quite sure what to make of it as I also ran...
This thread pjrc.com/threads/69185-FLASHMEM-for-all-functions-in-a-file
Has tips on .LD file edits that keep ALL code in FLASH - and notes on pulling select code to RAM.
yield() is the one 'runtime' feature that goes with Arduino.
When called directly, and called with calls to delay() and on each exit of loop() before it is called again.
What yield does is check an existing...
It's probably my code. I have about 3k lines of code and i'm using 5 or 6 timers so i'm probably doing something wrong somewhere. I just went back to elapsedMillis for this as, based on your comments, it seemed to not...
hey mindwave,
the tsynth is trying to emulate an analog synth with 6 voices + filters + envelopes and i think that it is. so yes, i would say that is a good starting point because it will cover how the most basic...
PH - WOW I was never a fan of the dx7. Sorry went from seq cts 6 trx to a jx8p, try then d50 and been Roland boy ever since. Played a T1 in the early 90s but didn't realize I could afford one so went back to roland. ...
That noise sounds like mostly Gaussian-like noise. For this, spectral filtering reduces the noise power in proportion to the bandwidth. I suggest FIR filtering as ringing is greater for IIR (biquad) filtering. These...
Hi,
I am developing a prototyping board that's designed mainly for Teensy and Daisy Seed. The board produces aggressive digital noise on Teensy (4.1, MQS/PT8211) but not on Daisy.
Since I'm not an engineer I...
Update:
I ran an evtest on both linux systems... On the one that is working FUZZ for ABS_X is 0 (or not set) and on the one that is not working FUZZ for ABS_X is reported as 255.
Not sure if this is the problem,...
I am working on a design that uses a teensylc, and some encoder wheels to send data to a linux system. The data is pretty simple. I'm sending a number from 1 to 1024 to the linux system via Joystick.X();
The...
Yes, that should be the case - with the exception of some conditional and instruction time.
While in FAST I/O mode all pins route through a single common interrupt routine given the 1062 MCU design.
There is then...
The Teensy Audio library has sine wave generators and multipliers, the combination of which does AM. This is in 16-bit integer. See the Teensy Audio Design Tool.
Alternatively, this can be done in floating point...
For some reasons I can't see the replies I got via mail, but thanks for suggesting Vimana and Microdexed! They both seem quite advanced and solid; not sure if I have the right skillset to take those projects and...
Hello Paul,
As for the distance between the two NRF modules, I actually placed them side by side to perform the speed tests I did. I don't think that is the problem in this case.
As for the originality of my NRF...
Are all pins equal in response times for a digital transition on a T4.1?
I am setting no more than four interrupts active at a time to watch for either rising or falling edges.
For example:
void...
@ deelaleo
You might also want to take a look at MicroBox. It is a Linux like shell that what written for use with Arduino.
http://sebastian-duell.de/en/microbox/index.html
What's kind of interesting about it...
Hi,
I have seen that the teensy are now supported by arduino-cli.
I use it on windows to compile my project with different flag. With my ESP8266 code I have no issue when I use option.
But when I try to use...
Thanks for the reply.
Most of the code size comes from the libraries I used, not the code I wrote. I know I can put the FLASHMEM prefix to library functions, but libraries like LVGL are so large that it would not be...
Since the NRF24L01 operates on the 2.4GHz ISM band, you have to share that medium with all present WiFi traffic. That could be one of the issues for the low throughput.
Another factor could be the physical distance...
Putting "FLASHMEM" as a prefix to the function prototype will have it reside in FLASH.
This example from PJRC's Startup.c for example:
FLASHMEM void configure_external_ram()
{
...
}
Start with any one time...
Hello,
I'm building a portable synth with teensy 4.1, which includes a touch screen GUI built with LVGL graphics library.
The code became really large as the project grew, it's now more than 250K and does not fit...
Hi Ibrahim,
Did you provide a "special" power supply for the NRF?
They are somewhat sensible to this point, and this could be a problem. There is some small power shield specially designed for this purpose.
Well,...