Yes, that part of p#2was correct: "will provide generous Serial output of any events as they happen"
With that enabled, remove the HUB and try a device individually and that should then show since the device connects...
Below is the code that resolves micros() given the last milli second timer update, and the cycle count stored then.
If the math were bumped to all 64 bit and the scaling to nano adjusted from...
Again Sorry, as I mentioned I have never used Joysticks on PC so it is unclear to me, what application code uses on the different platforms.
And/Or is it configurable.
I know some google responses to questions...
Thanks for all the input and ideas so far. I managed to order a Tennsy 4.1 from Adafruit and the audio PCB that goes with it from Amazon. I thought about using RAM to store the loop data but the biggest SOIC RAM chip...
Awesome - thanks everyone. I had found bits and pieces but not that reference to put it all together.
Moving to a micro-controller environment with a single program running is a bit like going back to my early...
I uncommented that out, but after doing so I don't see anything in the Serial Monitor when I'm running my original program. I'm not too familiar with this process, I'm assuming where the debug information would be is in...
Err... stupid here again
In my post #16
There is a line:
#define PNG_FILENAME "/TG2.png" // Temp PNG file to load
How the heck do I change that to a variable I can...
Some questions I still have, Why can joy.cpl and other figure out the axis/buttons/some hats when the usb type is flightsim + joystick or even keyboard/mouse/joystick but not when it is serial/keyboard/mouse/joystick?...
Yes, I will give it a try. I have to go over "everything" to see what this change will bring. I agree 100% with letting teensy doing just the audio heavy-lifting. Good call. I will be posting my findings sometime...
Darn, I am really lost. I looked at the raw hid data as you have and got the same result with the 12 hats showing up in the last 6 bytes. I am having a lot trouble getting any program to recognize more than 4 however....
I can understand that I've managed a BB form before myself and it can get kind of cumbersome towards the end of life.
But in all seriousness post something and then choose edit post and I can almost guarantee that by...
No, I use android - but not much for posting. Also not noticed a trend of that. At this point this old BBulletin forum is basically 'what it is' - ideally PJRC was looking to move to a new platform - but time/work...
ARM processors have a running counter of clock cycles. For T4.x, all you have to do is read ARM_DWT_CYCCNT. Here is an example program that shows how to use it. Cycles are converted to nanoseconds using macro F_CPU,...
See this: github.com/TeensyUser/doc/wiki/Implementing-a-high-resolution-Teensy-clock
Teensy has a processor clock based count of cycles: ARM_DWT_CYCCNT
At 600 MHz it overflows 32 bits after 7+ seconds.
That...
Oh man, the forum just deleted my post again. I'm using a Google Pixel 6 pro and when you go to edit the post on mobile it will delete the post. Basically the entire screen becomes a delete post button.
If my reply...
I think it had to do with me having an `.arduino15` and an `.arduinoIDE` (I believe this is from the 2.0 IDE) folder, in which the arduino-cli.yaml was. Now I just have a single folder `.arduino15` and it works in the...
Can you connect the screen to the ESP32? Communication between the ESP32 and Tenney is probably required for something in your device. So you can go either way with the screen. Definitely plan for a serial connection...
Yes, sorry - indeed, in that .h file : ...\USBHost_t36\USBHost_t36.h
// Uncomment this line to see lots of debugging info!
//#define USBHOST_PRINT_DEBUG
If you find any insight about what path issues got arduino-cli so confused, please share.
With the old Arduino 1.8.x software, we've seen pretty much every problem many times and we know how to solve them. But this...
I just tried it on my Windows machine:
C:\Users\kurte\Documents\Arduino\libraries>arduino-cli board list
Port Protocol Type Board Name FQBN Core
usb:0/140000/0/1/4 teensy Teensy...
@PaulStoffregen: this is my version and how it looks:
~
$ arduino-cli version
arduino-cli Version: nightly-20220624 Commit: 4a4b784 Date: 2022-06-24T01:38:17Z
~
$ arduino-cli board list
Error...
Good afternoon. Without looking too hard at the code, I'm now wondering about your setup.
If the ESP32 is connected with only I2S to the Teensy, then there is no way for the Teensy to get the metadata. There must be...
Hi everyone,
I build a midi controler with potentiometer and I when I turn the potentiometer I notice the value (13bit) not change at the begining of the turn but I need 2mm of travel to see the change in the...
I'm converting C code from a PI 4 to a Teensy 4.1. For the PI I use this to get the full time to nanoseconds:
struct timespec gettime_now;
long long f1_on_time;
clock_gettime(CLOCK_REALTIME, &gettime_now);...
You might also want to search the forum for other threads on joysticks which change the usb descriptor.
Like the thread: https://forum.pjrc.com/threads/23681-Many-axis-joystick
Hi everyone,
I have a Teensy 3.5 using FTM1 (like in this thread https://forum.pjrc.com/threads/45413-ISR-latency-Teensy-3-1-and-3-6?p=148851&viewfull=1#post148851) to count the pulses of a 10 MHz TCXO, which seems...
Sorry for some reason I thought there were 14 sliders not 15...
As for how the hosts deal with a non-standard setup... Not sure. Sorry Maybe someone who uses these might have some more insight
Playing audio with the Teensy (4.0) as a USB audio interface works well with VLC (or Spotify) when using the USB_AUDIO interface, but not the USB_MIDI_AUDIO_SERIAL one (no sound at all).
Playing from Windows e.g...
Interesting, it appears to be working for you, if you have the chance, what does joy.cpl show? I believe the last slider being 0 is due to for (uint8_t i = 1; i < 15; i++) where the 15 should be 16 if you wanted to use...
Try running "arduino-cli version"? What does it show?
When I try here with the latest, I see this:
arduino-cli Version: nightly-20220624 Commit: 4a4b784 Date: 2022-06-24T01:38:17Z
Here's a screenshot of how...
I finally got it to work. Not sure what fixed it or what I was doing wrong before but now it works.
Thanks for putting up with my confusion.
Now I can try to figure out why I sometimes get odd touch results with...
Quick FYI - Yesterday RC8 of the IDE was released.
If you have others installed that is not ancient, when you start it up, they will ask you if you wish to download and install...
If it were me, I would probably double check using 2nd Teensy. Like I show here...
I did a little playing:
I did not edit your last usb_desc.c file
I did edit usb_desc.h to make sure the 64 byte version was...
I am working on a Teensy 4.1 module that is actually a sound synthesizer, but generates a visualization on ILI9341 with the excellent TGX library.
It's using the synthesizer parameters to control some of the graphics...
Hi all,
I'm super excited about this but can't get it to run using `arduino-cli`. I installed `arduino-cli` on my machine (Arch Linux 5.15.49-1-lts) as well as the boards in the Arduino IDE:...
The existing code does use the "full not-quite-16-bit" range if the specified frequency allows. What happens is that if the computed modulo is > 65534, the prescaler is incremented and the modulo is divided by 2, so the...
Thanks for your reply. I made the proper code changes but nothing shows on Serial port. I tried youtube audio, vimeo audio, a song I purchased at Amazon, and other songs I had laying around. No luck. I also used and LG...
How about functions analogWrite16 and analogWriteFrequency16? Perhaps with the proviso that you must/cannot jump between analogWrite & analogWrite16 and the same for ..frequency.
Yes, this was a minor issue that came up when I wrote pwm.c. Seems like a lifetime ago... before the pandemic and chip shortages!
Some timers were just 1 or 2 short of supporting full 16 bit range. The quick and...
Hi!
For your AudioMemory allacoation, your only creating the regular (Teensy Audio) blocks. You also need to create the F32 audio blocks via AudioMemory_F32. So, you should do something like:
AudioMemory(12);....
Two quick things to try...
1: replace MIDIDevice with MIDIDevice_BigBuffer.
2: edit ehci.cpp to uncomment this line:
//USBHS_PORTSC1 |= USBHS_PORTSC_PFSC; // force 12 Mbit/sec
To be honest, I'm...
Thanks for the reply!
I finally got the chance to work on the changes you mentioned.
After making the changes, I tried it moving the motor using StepController and the following program.
#include <Arduino.h>...
It is not strictly necessary; it’s there, however, for completeness. Setting the DNS with the QNEthernet-style API matches the Arduino-style API that you were using before with NativeEthernet. With that API, not setting...
That looks to be an unpowered hub?
With T_4.0 connection wires had to be soldered to the bottom Host D+ and D- pins, those lines have to be done well. Good sign both devices work individually.
The T_4.0 unlike the...
Hello! I tried to look through all the other forum posts about this before creating another of my own, but I haven't been able to solve my issue. I am making a MIDI USB Host like this one...
@tedm:
Welcome to the Teensy world. You have chosen an excellent platform to potentially base your project upon. I'd suggest you take a look at the Audio Adapter Boards at this <link> (don't be scared that the...
Looking further at the code that you provided Is it necessary to setup a DNS gateway for QNEtherenet? All this node will ever do is listen for UDP packets sent to it.
Thanks, I don't know if there is a library update issue or what.
I had working code that just stopped working when I tried making a simple change. I loaded the new code confident that I had the original sketch...
Thanks for the help, made the changes you suggested and now it seems to be partially working. By partially I mean that it appears the last 4 cases (9-12) work as hat switches while the remainder do nothing so I think...
Here's some illustrative code that should work with QNEthernet. (Caveat: I'm not near a Teensy so haven't tested it.)
#include <QNEthernet.h>
using namespace qindesign::network;
constexpr uint16_t kUDPPort =...
Again it appears to work on my Ubuntu 22.04 machine.
Note, I am running TyCommander here 0.9.0-107...
Which I built from current sources
Edit oops, the picture before was without focus...
I'm a (just) retired embedded engineer (hardware design and some coding e.g. drivers) but just starting on Teensy. I have this idea for a looper based on the Teensy 4.1 but, to have useful loop storage, it would have...
Thanks for the reply.
Unfortunately, we have a hard length constraint so 4.1 is not an option since we're trying to fit into an existing footprint.
I guess we'll advise people who are building these (it's not a...
There is also a thread, called something like the website could use some updates. That had tons of pages on it.
So Paul creates a Github project, I mentioned that he asked for some of us to go through it and create...
Sorry, I am probably missing some things, but for example I believe there may be some problems with your descriptor.
For example in this part of your descriptor:
0xA1, 0x00, // Collection...
Weird... I just can't get it to work.
I did download the TyCommander repo and built it for my Linux machine. It does see both the RadHID and Seremu interfaces:
But I get nothing in the Serial output:
Hello, I am interested in adding more POV hats to the "extreme joystick", it currently supports 4 and I would like it to support 12. I am using a teensy 4.0. As you can see below, I have removed 2 sliders which I do not...
Hello,
I'm currently trying to use some Tympan audio library functions on a Teensy 4.1 + Audio Shield to create an 8-band equalizer. I've gone through the src of the Tympan library and to the best of my ability...
Okay, that's helpful. The smaller value (2288.82) results in a "modulo" value of 65536, which is too large for the 16-bit counter, so the prescaler is incremented by 1, and the modulo value is divided by 2, to 32768,...
Thanks for the report...
I went ahead and created a new issue https://github.com/PaulStoffregen/Website_Updates/issues/31
In Paul's web site needs updates github project. So hopefully he will get a chance to...
Hi All!
I have a few questions.
I want to strobe 3 LEDs (at independent frequencies and duty cycles) via mosfets with a duty cycle of 0.05%-1% at a frequency range of 24-100hz. I would like to hold 1% or better...
It looks like pin 13 will do 16 bits on the lowest PWM numbers (where it matters) at 2289 Hz but not 2288.82 Hz. Here's code that changes the brightness by typing values into the serial monitor. I was using this on...
Again Hard to know what exactly what is going on, with your setup.
I am running Windows 10 Arduino 1.8.19 Teensyduino 57 beta 3...
But I just loaded the basic example under USB type rawhid, and configured for...
Hi All!
I found several folks in the forum using AnalogWriteFrequency on Teensy 4.x, but the website says it is only for the Teenst LC and 3.x Boards.
"Teensy LC & 3.x support the analogWriteFrequency(pin,...
I still have not figured out how to get the TeensyMonitor to work with RAWHID and the serial emulator.
My connection on the bottom of the Arduino window says:
Teensy 4.0, Raw HID, 600 MHz, Faster, US English on fake...
No complaint on the track width - one more PCB than I have done :) Was just noting so many traces that it didn't seem like many were unused, and not all were visible in images.
Good note on what is available from...
Yes, confirmed, late July. If you need Teensy 4.0 before then, buy what you can from distributors who still have them in stock (if they haven't run out yet... as they almost certainly will soon).
And of course we're...