@NuttyMonk: I have absolutely no experience with programming the specific timer + interrupt hardware in the Teensy, so I'm hoping that maybe my ignorance could work in our favor here. With that restriction in mind,...
I was just getting the timers and interrupts working and then i realised i don't know how to decide when the 3 cascaded timer channels have reached the correct count.
I am currently using elapsedMiros to do the...
I was doing a project using a Teensy3.6 so I thought I would try this out as the 3.6 has its own SD card.
I used the WavePlayer sketch in the Audio Library and set it for AudioAnalogStereo. I then downloaded...
Do you mean that you want to get an interrupt when the timers each have a specific value, such as T0=X, T1=Y, T2=Z? I don't think there is a way to do that.
Can you say more about what you're trying to do? If you...
Ok guys just implemented a Attitude Direction Indicator (ADI) using the new library with the additional feature of using transparent BMPs. Really experimental. Here is a short video of it in action:
Enjoy
Evening Michael
Sorry was kind of sidetracked today with trying to get transparent BMP working - think I kind of got it working. But yes should be transparent since we are working with same base display driver. As...
Thanks, that looks like it will work great. I've integrated the code changes and will give it a test and post the results after the board gets here next week.
I also have a second version of the code now using both...
I have it reading the number off the cards, and am still guessing at some of the Card Structures, as they are different between cards.
The one issue I'm seeing, if there is more going on on the Teensy 4.1. Other...
OK. SD card and filenames all sorted. Binned it all, found another system I have used before and we are all working.
Gave up on the new screen library. The one I have works, so I will stick with that.
Just to confirm, you added the fast diode in parallel with the motor, right?
I see a lot of other stuff in msg #15 but no mention of the diode. The diode is by far the most important part.
(imagine Anakin and...
Well I have a library called 'ILI9341_fonts-master' and it contains font_Arial.h.
Yet... duplicate libraries and no compiling. Think my IDE is broken / a mess. Time to play Minecraft instead
Multiple...
i made a similar test and ran it before but forget if i ran it on 3.3 or 5 volts. ready to test when i get a minute. trying to make some progress on getting ready for my big solar array arriving soon. means major...
This is what I had ... char PNG_FILENAME = "/TG2.png";
This is what I get
In file included from C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4/Print.h:38:0,
from...
Thanks for all the video work and sharing the design. I'd really like to build one. Does your board supplier (Aisler?) have your design files such that I could order a board from them myself? If not, I'll have some...
Used an approach that @KurtE used:
#define SD_CS BUILTIN_SDCARD
File imageFile;
const char *name = nullptr;
and in the body (setup in my case)
imageFile = SD.open("Horizon_GroundSky.bmp", FILE_READ);
name =...
Hi all,
i'm wanting to do 48-bit timing on a Teensy 4.0. The only way i can do that is to use the QUADTimers and cascade them. After testing the QUADTimers i was able to determine that they run at 150MHz and based...
Did a quick current consumption test using an SSD1306 OLED display and powered it by the LC's 3V3 output. Measured the current in the display supply wire: 7mA
Used this code:
#include <SPI.h>
#include...
so even with that same display unit, different boards could do different things on the data lines? i read somewhere that the oled does work on 3.3 but other places that it needs 5 volts. ill try it on 3.3 and see...
It depends on the exact OLED display used. I would power the OLED by the 3V3 of the Teensy LC .
Those small OLED displays usually draw 20-50mA so you should be fine.
Paul
Some more progress on menus and things. All of the threading section is complete. Most of feeds are done. Have lockouts on the stepper driver until explicitly initialized and started. Still need to clean up the...
Sorry still over cell connection
Or if using SD.h then instead hard code…
Could use MAX_FILENAME_LEN
which is a define in that header file
Edit I believe font files were fixed so you may want to sync up
@SteveSFX:
No...you are close to being in the same neighborhood, however, it seems that you are still missing the detailed understanding of a very important aspect in your declaration . . . take note of the RED...
I am almost ready to try again. I have moved the fet board far from the teensy and have ordered an isolated version. the only load on the 3.3 volt regulator in the teensy LC is a pot as a voltage divider. it draws .6...
OK. I did Google. I believe my method using char was correct, it just doesn't work with the png image display routine.
Been fun, but progress is slow so time to park this for a while I think.
Post 32.... New...
Good work. I've wondering about these displays, and of course whether I could adapt the uncanny eyes code. In theory, I imagine it should just 'work' providing the eye drawn is within the circle of LEDs that are...
I solved it. But what threw me off was having to select the manually downloaded folder in ~/Downloads and not whatever was in /usr/ or anywhere else. I noticed a few people online making this same error. Thank you for...
@SteveSFX:
Google is your friend !! The answer is quickly found by searching for "arduino SD card variable filename" . . .
Just remember to make your array big enough to hold the *longest* filename that you...
One dream I've had for a while is the idea of a guitar pedal that's on the floor but the controls are remoted to an iPad - ideally wirelessly. A long time ago, I briefly worked on a project that used an iPhone for...
Thanks, I have designed, made PCBs for, and built a few guitar effects pedals plus an entire guitar amp (presently at Vn 2) so I do have some experience on handling guitar signals but I don't claim to know it all so I...
Good Morning all
@KurtE and I have been at it again. Recently we started playing with a WaveShare GC9A01A 1.28 Round Display as shown below.
Since we cannot leave well enough alone we modified the ILI9341_t3n...
For guitar work, keep in mind you will also need a high impedance preamp as most audio boards expect line level inputs around 1Vpp. Your preamp will likely need to offer variable gain up around +20dB to get vintage...
Agree the Teensy 4.1 renders some of the rev D audio board redundant, but it's all useful for those who prefer to use the Teensy 4.0 (for size reasons etc.), and I guess it doesn't make sense for PJRC to offer lots of...
Just an FYI - This hub has been mentioned before as working back in 2017 in the thread:
https://forum.pjrc.com/threads/42505-Strange-USB-Serial-15ms-maximum-latency-on-Win7?p=135868&viewfull=1#post135868
And there...
How did you install the Arduino? Did you download from arduino.cc?
As mentioned in the download and install instructions: https://www.pjrc.com/teensy/td_download.html
Good luck.
Thanks for the steer to a VERY relevant thread :D
I have a Teensy 4.0 running with a Rev D audio board (my first Teensy project) plus I have a Teensy 4.1 on the way to me. It strikes me that the Rev D audio board is...
Is the iMXRT1062-master ZIP file supposed to contain a library file?
No matter where I place this ZIP file, Arduino insists it has no valid library.
The only thing in my Arduino/libraries directory is a readme...
I was finally able to find a Teensy 4.1 and after looking at the existing projects I was curious if anyone tried this.
I saw some synth projects based on the Teensy, although I am not interested in it producing...
This thread might be of interest. You can fit a couple of PSRAM chips to the Teensy 4.1 and another to the audio board, which gives you a total of 4.75 minutes of delay (not all in one lump, though). This is not...
I'm trying this on Ubuntu but for some reason it's giving me this:
Checking Arduino 1.8.13:
version: "lib/version.txt" file missing
Does not match Arduino 1.8.13.
And it repeats this for all versions...
...
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...