It looks like it rounds down before reaching a modulo. 150Mhz / 2288.88 hz = 65534.235 which is greater than 65534 but equal to when the decimal point is thrown away. I haven't tried 2288.85 yet to see what the LED...
Great idea! I considered that was a likely issue as well, as I could tell if just hard locks if it fails. And yeah, I'll do all the physical diagnostics as well.
Edit: it did not help so far, other than I can now see...
The boilerplate SD startup code in most of the demos (and which you've essentially copied) is poorly conceived, in that it gives the card just one chance to start, then whinges about it forever. I have an SD card which...
It was literally working when connected to my laptop before, I changed nothing other than taking it with me somewhere else and back home, and now it's no longer working, and it has never worked on any other USB power...
I don't use Platformio myself, so no real idea, but your suggestion of installing the Arduino beta then copying the required change across sounds viable. The only changed file you'd need to fix your stated issue this is...
I've been looking into this yesterday too. In the examples menu there are options that show all the wake up modes. I'm just going to try the code and see what happens.
Hard to know...
For example how is your Audio Shield hooked up? Is it the proper Audio Shield for the Teensy 4.x?
What is: SDCARD_CS_PIN set to?
I am assuming pin 10?
Are there other things on your SPI buss?
Thanks, my guess then is:
If you updated your Teensyduino version, it overwrote your changes to the core files.
Look at the Readme file of: https://github.com/dmadison/ArduinoXInput_Teensy
file and it talks...
thank you for the test.
It is very strange, I have same configuration, only teensy model change.
When I comment "usbMIDI.sendControlChange(1, 64, 1);" serial display the position of encoder and it work properly...
I'm having a new issue with my sampler pedal project. Previously, it would work fine (though with some noise, which is a whole other issue) when connected by USB to my laptop, but wouldn't launch when connected to a...
Agree completely with everything you mention. It is very application dependent and you need to pick the sensors and the time update / measurement update scheme to match dynamics. I'll try to remember to post some data...
Same here. I used a 15 state EKF in sounding rockets for state estimation and attitude control with great success. But I think for a pedestal control problem for a small system as RouthUAV was mentioning, using hobby...
Sorry, I don't find that symbol in anything when I do a search in my case <arduino.1.8.19/hardware/teensy/avr>
So I have no idea what it might be.
It might help someone to help you if you included some additional...
If you're connecting the audio shield to a mixer, be sure to use the Line Out signals, NOT the headphone jack. The headphone jack ground is not at the same voltage level as the line out ground.
That is a possibility, I recall that there is a cutoff where older GPS receivers don't work with the newer library (the biggest offender IIRC is that uBlox changed the size of the UBX-NAV-PVT packet), but I don't recall...
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 =...