I'm using Platformio with the framework-arduinoteensy v1.56 package. Any idea how I can get it to use the 1.57 beta 3? Can I install the beta 3 version into the Arduino IDE and then copy the changed files from the...
Youhoo! I have solved the compiler problem, using a combination of Arduino, VS Code, PlatformIO + reconfiguring some compiling flags. Also one should add the ElapsedMillis.h to a few libs.
If You guys have any interest...
Detail dithering catches me at times too - I did take a minute to find the 'quote from code' ...
millis() and micros() are used for each of the respective 'elapsed' types.
Indeed T_4.x uses a slower timer for...
lol. Yup, there is good support on this forum.
I was getting microsecond accuracy when i was using elapsedMicros before. I'm not sure if i've used it for timing testing since i moved to the Teensy 4.0 from the 3.2....
millis() provides 1 ms accuracy. If you want to test the accuracy of IntervalTimer, read the ARM cycle counter in your callback function, compute the difference between cycle count values, and then convert the...
thank you for your reply. yes that is how i understood it but i just had to be sure. in the final stage of the design i got doubts because this 5V is named VHST in the circuit. but all clear now :-)
So, how does millis() and micros() get their timestamps? do they use timers?
I ask because i am using elapsedMicros to test the timing of intervalTimer and it's jumping about between 124,000 125,000 and 126,000...
elapsedMillis uses millis(), and millis() simply returns systick_count, which is updated in the ISR for the ARM SysTick timer. The Teensy4 systick_isr() from EventResponder.cpp and millis() from core_pins.h are shown...
I've had plenty of luck estimating attitude, inertial velocity, and inertial position of manned and unmanned aircraft with MEMS sensors and GNSS aiding. To be clear, the EKF is only using the GNSS data as the...
Made a quick setup using a Teensy 3.2 and ran your code.
Here is the setup:
Set USB type to "Serial+MIDI". Could not get it to fail...both serial monitor and MIDI-OX keep outputting data:
Using Windows...
The simplest thing is if you look at the T4.1... For example card:
Is don't use the +5V pin marked on the 5 pin USB Host connector. Instead use your +5v power, possibly with a fuse
Today I revisited an old project of mine running on a Teensy LC. Some changes in updated libraries made for a bit of a puzzle but I got it all sorted out. The one thing I can't seem to fix is enabling the USB_XINPUT...
About 6 months ago I invested in an entry-level M1 Mac Mini (8GB RAM 256GB SSD). Overall, I'm very pleased with the system. With the latest version of Teensyduino/Arduino, I am able to compile my programs from...
Mike, are these (other) p#1299 edits in place for SD code: pjrc.com/threads/68139-Teensyduino-File-System-Integration-including-MTP-and-MSC?p=308206&viewfull=1#post308206
... I got Win_github to sync - but not...
thank you for taking the time to help.
just to be sure : on the circuit diagram the usb host pin is named VHST right? And this is the same pin as shown on the features page where an image is shown with details for USB...
OK. I thought I was explaining my issue well enough, but I will endeavour to draw out the circuit later tonight and put that up.
To be fair, this thread is the whole project and not just this issue!
I will return
Simplest way would be to disconnect the host port VUSB pin and connect it directly (through a 2A fuse) to your 5V power supply.
The circuitry on Teensy 4.1 is built around a 0.5 amp maximum current, which is the USB...
Hi,
first of all I'm completely new to Teensy and Arduino and programming in general. I hope the post (length and detail) are OK...
I have adapted the TeensyWI project of Johan Berglund...
brtaylor is right. If your platform has any significant motion, you can't rely on the accelerometer to give you a second attitude reference (the first I assume is your magnetometer). Even with GPS aiding, and if you...
Ok finally got a chance and downloaded your latest changes seems to be working as long as the cards are in the Builtin slot on Teensy start up. If its not and you insert a card it does recognize that you inserted the...
Thanks Paul,
The test work great with my low cost encoder ec11.
I have a problem, when I want to send midi message.
After "oldPosition = newPosition;" I had usbMIDI.sendControlChange(35, 64, 1); to send...
Hi
I use the teensy 4.1. I use external 5V power. So the external 5V goes to VIN. And the track from the device usb 5v is cut.
So far so good.
But i want to use the USB host mode. And I see there is a...
A lot of your errors are build-system related. The error below is indicating that you don't have C++14 or newer available with the compiler.
C:\...\libraries\units-main\src/constants.h:44:20: warning: variable...
Dear Brian, Thank you for your kind response.
"Are you using Arduino with Teensyduino for compilation?"
I am afraid not, I planned to port it to other hardware platform, like ESP32 or STM32.
"EKF was rolled into...
I'm having a similar issue with a Teensy 4.0 ( Serial/Keyboard/Mouse/Joystick) plugged into a RPI 4 (5.15.32-V7l+ ) running Arduino 1.8.19 ( but works nicely in Windows 10)
It hangs even with a simple code like:...
Are you using Arduino with Teensyduino for compilation?
I've lost track of the uNavINS code on this forum, but the EKF was rolled into here:
https://github.com/bolderflight/navigation
ekf_15_state.h is the 15...
So here I am, after a bunch of porting and reporting! it looks like I have come to match a sketch with a lib. I directly downloaded the libs from the github links bolderflight, instead of trusting the Arduino's lib...
First of all, thank you for your response. Things are more clear now.
What I still don't know is:
- Since I want to support any kind of keyboard, I guess I should create at least a KeyboardController and a...
From the small amount of info given so far, I'm afraid the odds of repair are probably not good. But that is based on some guesswork.
Voltage regulators rarely fail. When you have less than 3.3V from the 3.3V...
Junction to ambient "thermal resistance" is not a rigid specification. It's an empirical measurement. Often semiconductor manufacturers will give this sort of info with a footnote about the specific test conditions. ...
Hi Paul,
Thanks for the reply
with the T3.6 powered by usb and unplugged from anything the 3.3v pin is just under 2 volts
can the board be repaired ? can i use an external 3.3v reg to power the 3.3v pin ?
Each line creates a device driver instance which may be used when you connect a USB device.
Also an issue is the growing complexity of the example code. We really should have simpler examples and more advanced...
I would be very surprised if a W25Q128JV chip is causing SPI bus trouble.
But we really don't even know if SPI bus problems, like a device driving MISO, are really the issue here. It's just a guess.
If you don't...
Hi,
I've been checking the example code for USBHost_t36 called Mouse and I'm wondering why are all those devices declared:
USBHost myusb;
USBHub hub1(myusb);
USBHub hub2(myusb);
KeyboardController...
Hi
I really enjoyed the way you guys lead this project. Thank you for your sharings.
I am trying to make a stabilized structure, like a pedestal or gimbal. I have used an MPU9250, but need to increase the...
Which version of Teensyduino are you using? There’s a fix for this issue in 1.57 beta 3.
Pro tip: using th code tags (# button) will make your code more readable on the forum.
Replying to myself again...a quarter of that heatsink is likely lower than 36 C/W, maybe 30 or high 20's because all 4 sides are exposed to fresh air. I'll see if I can find a commercial product that fits...
@MichaelMeissner
Have no idea to be honest - been so long here as well since I played with those displays. Been busy with other stuff besides Teensy today :)
EDIT: Oh by the way managed to implement rotating a...
Thanks for confirming that the switch statement is not well written and especially thanks for your suggestion on how it should be written; I'll try a code tweak tomorrow.
Here's my code:
#include <Arduino.h>
#include <Audio.h>
AudioSynthWaveform sinegen; // generate waveform for test
float SINE_LEVEL = 0.5; // sine amplitude (max is 1)
float SINE_FREQ = 100; // sine frequency ...
I tried a simple program where I just generated a sine wave with AudioSynthWaveform and send it to AudioOutputSPDIF3. It works fine and I can receive the S/PDIF signal and see the sine wave just fine. However, then I...
Looking at the AudioPlaySdWav code (which is deeply nasty), it looks as if it may require an audio interrupt to fire after a .play(), before .isPlaying() becomes true. A crude fix might be putting a delay() in, thus:
...
It would appear that this flash IC is not behaving at all.
All connected with a 10k pullup on the CS pin. All OK.
Connect the SCK and the bus freezes. I'll grab some more 10k's tomorrow and look at that thread,...
Alright been a while, but I think I finally know the answer. If you are making a custom application and can read the raw hid values then you can use as many hats a you want. However some applications use libraries such...
OK. I will grab some resistors in the morning and have a go. It must be the flash acting up, as the SD and screen play together fine (well.. that's my logic)
Thanks
Did you try the 2 resistor test on the MISO signal? (described in "Step 2: Proper MISO Tri-State Behavior" at the link MichaelMeissner shared)
When all SPI devices have their CS pins high (not selected) your...
https://www.pjrc.com/teensy/datasheets.html
https://www.sparkfun.com/products/16771#:~:text=When%20running%20at%20600%20MHz,support%20for%20dynamic%20clock%20scaling.
This 1.1" x 1.1" x 0.6" heat sink appears to...
I was wondering if these calcs are accurate:
3.3V * 100mA (@600Mhz) = 0.33 Watts of heat
Junction-to-Ambient, no heat sink, natural convection: 40.8 C/W
0.33 W * 40.8 C/W = 13.5 C temperature difference
max...
Searched the forum for "usb 12mbit" and found this thread
https://forum.pjrc.com/threads/68347-USB-Output-Force-12mbit-and-change-bPacketSize?highlight=usb+12mbit
Here is the paper that describes tri-stating (as well as using pull-up resistors on the CS pins, and making sure your libraries use transactions):
https://www.pjrc.com/better-spi-bus-design-in-3-steps/
eh? Me thick.
Not sure what is occuring.
I have an SD module and the screen connected to the SPI pins. Each have their own CS.
Added the flash IC and literally any of the flash SPI connections throws the...
Display working fine..... but
Add in my W25Q128JV flash memory IC and the screen corrupts.
Seems to be when I connect any of the SPI pins
Just for sanity:
W25Q128JV
1 = CS (has it's own chip select pin)
2 =...
It's been awhile since I played with ST7789 displays. Refresh my memory which pins should be used for the CS and D/C pins on the Teensy 4.0/4.1 for fastest frame rate.
From the pinout card, it looks like pins 10,...
So a quick follow up,
i had accidentally switched up the +/- wire of the sync signal on the way to the galvo, this caused the weird behavior.
My code works very well, it runs good on 1Mhz and it takes around 20us to...
I hadn't noticed that, but given the parts shortage, I can imagine offering a version without the ethernet phy.
And if your SMT soldering skills are rusty or non-existant, you can get pre-soldered versions of the...
Until recently, we had the Arduino build process automatically create a .lst file. The line which does it is still within boards.txt, just commented out.
It was removed because objdump is extremely slow for certain...
Thanks for pointing out that VM/VS uses what has already been installed for Arduino. I find that much preferable to the PlatformIO approach, and I'll try it again.
If the output of the 3V3 regulator shows only 1.6V, the regulator may not be dead at all but just running into its current limiter.
Please check whether there is a heavy load on the 3V3 pin. The 3V3 output of the...
Yes, no problem. Better not use 5V as not all Teensy's are 5V tolerant.
But for those simple rotary encoders, you hook them up differently. No need to use 3V3 or 5V.
Connect encoder pin Out A to Teensy pin 5,...
Quick update:
I am trying an experiment with the SD drives and the notification event we send to host...
#if 1
MTP.send_StoreRemovedEvent(storage_index);
delay(5);
MTP.send_StoreAddedEvent(storage_index);...
It seems that the while (playWav1.isPlaying()) code works the first time it's called but doesn't work the second (and subsequent) time(s) it's called. In the code section below, it should wait until the outgoing message...
Interesting, that's news to me that PJRC has started manufacturing both versions. I just checked the SparkFun 16771 stock that I have and it has the ethernet.
As Kurt mentioned the usual way is to use objdump.exe.
Here an example using PlatformIO:
After compiling, go to the vsCode terminal and cd to your build directory cd .pio/build/whatever_board_you_are_compiling_for....
I wasn't referring to the ethernet jack. More referring to the ethernet PHY.
On PJRC.com there are versions with and without ethernet.
https://www.pjrc.com/store/teensy41.html
Another question: the Teensy only have 3.3v pin power supply. Majority of encoder are 5v to work. With only 3.3v it is ok ?. What is the solution if it not work properly ?
Can I get the 5v from teensy 3.5 vOut to...
If you read the item description, it's the same as the SparkFun Mfg # 16771, which is here:
https://www.sparkfun.com/products/16771
Having recently bought a ton of these from SparkFun, it is a Teensy 4.1 without...
Digikey has Teensy 4.1 in stock now but it doesn't say whether it is with or without ethernet.
https://www.digikey.com/en/products/detail/sparkfun-electronics/DEV-16771/12180099
I assume it is with ethernet ?
...
I have a T3.6 that has been powered up with some connections unplugged
the board illuminates the led on startup but faintly
I have checked the voltage - there is only 1.6v
there is no serial communication
...