ahh okay sorry Teensy 3.x doesn't use setClock, 4.x only.
you need to put that msg.flags.extended with your message you wanna send. put it under your msg.id = 0x108180fe;
msg.flags.extended = 1;
this must be set BEFORE writing, or else your extended ID will truncate to a standard ID and it will not be the one you wanted for your device
also try adding in setup:
...
Hello Guys,
I have a problem with my current project reproducing the IMU Headtracker vom Gregory Pauls Hackaday Site (https://hackaday.io/project/8952/instructions)
Problem is, the MiniIMU board from Pololu...
it looks like you are flooding the bus with writes, are you sure the device can process the data that fast? usually on cars we need to space the transmissions to a device at like 10ms, but your loop is constantly...
Hi,
please, tell me, what am I doing wrong?
when the temperature of the external device rises, the power supply R4850 must reduce the output voltage,
the code works, but when switching the voltage there is a delay of...
Thanks Frank! Wish I had seen this thread earlier :) Last week, I was experiencing similar issues inside a loop that "normally" took around 22ms for ~500 iterations, experiencing "freezes" every 50 or 60th iteration for...
1) You may need a particular connector for the sensor. Check the sensor data sheet.
2) The Teensy 4.1 has 8 hardware serial ports.
3) You will probably need to build your own filter. So far, you have not provided...
would rather use this with millis.
I’ll stick with that, I have a few function calls with SPI, currentsense encoder and TFTScreen in the background.
I think this is a better start. For the INA pin. I’ll leave INB...
Thanks for checking - have to retest.
Yes 'f' only in GPIO-8bit for now - that's on the todo list to fix
Yep - VID only works in DMA mode as it did before but 'F' and 'f' works with FlexIO as before.
Have to try...
I guess I have another problem now, the esc shuts down sometimes at full throttle. I've been doing some research and while it could be several other things, one person had the issue and solved it this way;
(Problem...
'f' single good, "F" iffy to bad
"V" - vid - Black screen ...
re p#531 - yes I saw that in sketch now
No VID going to "HM01B0_TEENSY_MICROMOD_FLEXIO_8BIT" - but "F" works at 10.23 Hz
And 'f' only in...
Yep 'f' - single shot, 'F'-continuous (still not working if in DMA_8BIT mode but it does give you what you describe - what about 'V' ideo ? That's the one I am curious about.
NOTE: I haven't been getting any...
Not sure which f or F I started with ? Meant 'F' but think I got 'f' ... Nope I was backwards "F" still continuous ...
Some more F and f and then :
startReadFrameDMA called buffers 20029e84 20238400
Hardfault....
W/ili9341:
Says "F" - but using DMA? {if I saw that in the git DIFFS ?} - Single Frame good
the 'f' - took some time to get top bottom SYNC - Horizontal - then popped in and Horiz Stable but some verticle Jitter...
Thanks would appreciate - all else seems to be working with DMA though. Already created WIP branch on github: https://github.com/mjs513/TMM-HB01B0...ree/API-Rework
That's no fun ... is github up to date - and the bypass example? I can get to try it here with ili9341 in a bit ...
... or ZIP your WIP and post here to avoid cluttering github ...
Just hit github - 11 minutes...
Just a quick update. Been trying to figure it out most of the day. Found a couple errors but still no luck with video mode. So I bypassed my readframe's etc and used direct calls but no luck. Not sure if its...
Thanks for the reply.
I still do not understand, the pin configuration of a ICS52000 is shown in the figure
which shows SD, WS, SCK, not the MCLK, BLCK, LRCLK.
Should I connect the
"MCLK 23
BCLK 21
Mixer Behringer QX1222USB
Link: https://www.behringer.com/behringer/product?modelCode=P0AKX
The measurement signal goes in Mixer analog in and USB out (16Bit 48KHz Samplerate)
The most straightforward way to do this is:
uint32_t totalSamples = secondsToSample * SAMPLERATE; // pre-calculate number of samples needed based on duration of sampling
volatile void samplesCollected =...
The USDA and the World Meteorological Association has published several papers and decisions on soil moisture instrumentation. Texas A&M, UC Davis, and UC Riverside agricultural engineering people have all have done a...
Not sure what speeling is either of course ... seems like it may have been Starting the output with the _isr().
For usage of that see PJRC.com for intervalTimer as noted.
If the toggle is to be on a known time...
Oops forgot to declare a default value for adc centre. Try this
int val,mappedval;
int deadzone =10; change this value to increase/decrease dead zone size
adc_center = 511; // default value with joystick centered
Hi Defragster,
now its my turn, i didnt understand a thing you just told me, no offense.
never worked with ISR, had it in my studies but never worked with it.
no clue what speeling is.
il elaborate:D
ill go...
Keep in mind this code was originally written in 2014 for Teensy 3.0 and 3.1. When talking of how to "achieve acceptable performance", remember it is also meant for a those older boards which don't have a FPU.
On...
Hi Jeremiah,
I'll give a few basic answers and maybe one of the experts can fill in the details.
This code uses a wavetable (AudioWaveformSine). Is this absolutely necessary to achieve acceptable performance on...
It can help to write out a statement of expected behavior in text. Without that even looking into the behavior of 'close' code won't help because what is wrong won't be obvious not knowing what it should be doing ......
Thank you. I tried this but every time I recorded samples, The number of samples is different. Is there a way I can get a constant number of samples for a specific time duration like 10 seconds?
CLK and DATA are normal names for encoder signals. If you read DATA on the rising edge of CLK, it tells you whether you turned one detent left or right. CLK and DATA match up exactly with a flip-flop, or other digital...
Are you using an encoder with detents?
The detents are often set at a particular point in the quadrature cycle, so if you disable interrupts and happen to only poll read() when the encoder is at detents, the state...
I own a 1000 Line-Per-Revolution/ 1000 Pulse Per Revolution / 4000 A/B edges Per Revolution optical encoder that looks like it tops out around (100Kint/sec)/(4000int/rev)*60sec/min = 1500RPM if I hook to...
As a test I just pushed some more changes to the API_rework branch: https://github.com/mjs513/TMM-HB01B0-Camera/tree/API-Rework
I supports 3 cases for the Mircomod only:
/*
* HM01B0_TEENSY_MICROMOD_GPIO_8BIT,
*...
Pull Request actually just issued last night. That was my first pull request, and I had to figure out what I was doing. What I did on 3-23 was open an "Issue".
...
It should be straightforward to log for a fixed amount of time by using an elapsedMillis timer which is reset when starting logging. In the loop you would add code to check the elapsedMillis timer and call...
@KurtE
Forgot about the table you have in the FlexIO library - was actually looking to create one - sort of.
Right now the way it looks is the DMA is used for both for DMA mode and FlexIO mode (works better). The...
I tried this code. This is really good. I have a question if anyone would like to answer; Could I go to StopLogging(void) using pre-defined time instead of using q or p?
Good morning all,
Sorry I have not given this enough thought and hard looking through the code to give a good answer about some of my wondering about API/Library setup for generic stuff, is how is it all configured?...
of course i can tune them indepedent from each other
but its a bit trickier, i have to set the On and OFF Time very low...
any suggestions?
int ledPin13 = 13; // the number of the LED pin
int ledState13...
You probably need to show your full code. There is no explanation of "nexSerial".
Also put your code between Code tags. Use the # button above.
Your code will then look like this (You must add indenting yourself. It...
After further investigation it turns out that the problem is still present. Even with other libraries the modules do not work together without commenting out the lines below.
With the sparkfun library the Teensy...
Hello,
Does anyone here do paid project work? I'm willing to pay to get this going after signing a NDA.
Is it possible to stream characters from a raspberry pi 4 to Teensy 3.6 in HID keyboard mode? Not sure,...
I have Teensy 4.1 and a four ICS52000 microphone array as shown in the figure
How to connect teensy 4.1 with the ICS52000 array?
The Teensy audio design tool show the following suggestion for connection
I...
Now for instance. For DMA I see that the function:
startReadFrameDMA(bool(*callback)(void *frame_buffer), uint8_t *fb1, uint8_t *fb2)
does setup framebuffers if fb1 and fb2 are not specified. So that leaves how to...
Good Morning all
Started work on mods to the lib. Created the following in the lib:
typedef enum {
HM01B0_SPARKFUN_ML_CARRIER = 0,
HM01B0_TEENSY_MICROMOD_GPIO_8BIT,
HM01B0_TEENSY_MICROMOD_FLEXIO_8BIT,...
i thought combining the two independent millis into one would be proof much usefuller, why is it only reacting to the first If statement in the void loop?
why cant i control the OnTimePulseClock and OffTimePulseClock?...
As far as I can understand MPE uses standard MIDI transport, but assigns a dedicated channel to every playing note. So USB MIDI should work, but user code has to adapt.
Hi, I am trying to read SBUS with Teensy 4.0, the code has been working fine on teensy 3.2. There could be something else wrong also, but should Teensy 4.0 support Serial3.begin(100000, SERIAL_8E1_RXINV_TXINV); ?
...
Yes, always best to avoid delay() unless it is short and time critical as that stops other normal loop() code.
Seems like that gives the needed tools now to work it out.
It could be done other ways as well,...
Just seeing the code was modified - but not compiled or put into the IDE and using "Ctrl+T" to format the code for posting readability - doing that here it starts like - and has some issues so not sure of the intent:
...
Thank you for your replies.
I think teensy 4.1 should do the job of the transmitter MCU.
1) Do I need special connectors to connect my sensor? IEPE output, BNC connectors.
2) I want the second MCU (Receiver)...
What should be done with the unconnected power pins if powered via USB?
- Vin
- 2x 3.3V
I noticed on this usage of a Teensy 4.1 the 3.3V are connected to a 10n capacitor....
Forgive me if this is a stupid question, but I'm just getting started with this.
I want to make a Teensy-based instrument which is controlled via MIDI MPE. I can't work out if USB MIDI will support MPE or not. Or, I...
Hello,
I'm glad I found this thread and ILI9341_t3n library because I'd like to get a small 2.8 TFT to work with Teensy LC as fast as possible.
What I realized scrolling through the posts, is that this will be much...
Didn't follow the link - just provided a snippet in direction of the indicated desires to start and show function and the basic tools that can use Time to control I/O behavior.
Once that is seen to work in reference...
Good morning,
So as to speak I’ll try this with elapsedmillis, I have more going on in my code. How do I check that the ONTime from the bald engineer link isn’t passed?
int setToggleTime=500;...
OK I fixed it! Sorry for the hassle everyone.
Here is the root cause: while working on this, I imported my audio graph into the GUI tool. However, I did not use the correct index.html file when I did the import, this...
ok thanks. that seams pretty conclusively that it is a thing with the library. maybe there is a keep alive message that it is not sending that i need to look into.
I'm one of the guys building one of these radios. I thought it might be a good idea to post a video of how the display actually works. No audio other than me bumping the mic ;-)
One million won't fit into a 16-bit unsigned integer.
Copying the text of the message and pasting it in your message is a lot easier than an image.
Pete
I have like 10 active projects at any given type so it gets really difficult remembering these things. However I seem to remember it was actually a 'ProMicro' Arduino Clone using the teensy libraries. Pretty sure I...
Thanks. what version of the teensy were you using? i am wondering if it version specific or a problem with the built in midi library or something else. i am using a 4.1
Hello,
I'm working with Teensy and Nextion TFT, and it works good when I'm getting variables values, I started to do this instead of using Nexloop method because when I started this code I was using Arduino Mega, and...
I modified the wait for link status loop with a timeout counter. If it fails, it times out with an enet_ready flag set. In the main program loop, I have a timer that causes it to retry the init periodically. ...
Hi all,
I'm currently working on a wavetable synthesizer project at university. I borrowed source code from a project that Gary DeReese developed (https://github.com/gdereese/arduino-wavetable-synth).
I've...
Hi
I am having the same issue with sleep disconnecting the USB-MIDI and also have a device (Arduino Leonardo) that does not have this issue. id you ever find a fix?
Exactly the same issue here. I'm trying to use with Teensy 4.1.
I believe from another thread that the TLC5940 uses MCU specific code for speed.
Fingers crossed Teensy 4.x is added!
... better luck in the morning :)
The p#2 code could move the code after the "if ( timeGroup > 1000 )" to an independent function. Except probably the "timeGroup=0;" to leave that in control there, where it could be...
Yes, but it's not free.
https://www.amazon.com/dp/0124080820
You can also find this linked from the Teensy 4.1 product page.
ARM also has this info on their website in various architecture specs, but it's very...
I see. Also neat the way tail chaining minimizes the pushing/popping time. Nice stuff.
Is there a document that describes the interrupt in more detail than the Document Number: IMXRT1060RM Rev. 2, 12/2019?
Hi @AdzTheDemon - as you may have noticed the last comments in this thread were over 7 years ago. Which I have probably not used much since then.
Curious Are we talking Ros or ROS2?
Note: my ROS is really...