If you know the variable at compile time you can simply do something like this:
void myFunc(int i)
{
Serial.println(i);
}
IntervalTimer t1, t2;
Type: Posts; User: luni
If you know the variable at compile time you can simply do something like this:
void myFunc(int i)
{
Serial.println(i);
}
IntervalTimer t1, t2;
I had a brief look at the c/c++ API. Having a documented API is just wonderful. Looks like they actually use CMAKE as build system? On one hand this is great since it doesn't tie you to any IDE (and...
100stp/sec should not be a problem for this motor. (I assume there is no load on it?)
One more (unlikely) idea: your software is a bit unusual in that it generates a square wave instead of the...
You are stepping this motor without acceleration at 1kHz. Depending on your microstep setting on the driver this might be borderline. If you reverse the direction while the motor runs at this speed...
Maybe this helps to set up the differential ADC in principle. https://forum.pjrc.com/threads/57890-TeensyLoadcell-Direct-Loadcell-Readout-with-T3-2
Very nice!
Back in the days when people had weird hair cuts, wore flared trousers and CCD chips where extremely expensive there was some hype about opening DRAM chips and using them as CCDs....
Thanks a lot for your feedback.
Yes, that was surprisingly simple
Actually I have a few lying around but never used them. Will give them a try when I find some time.
He, he, when I...
Not from me, but it is under MIT, so feel free to ask SparkFun, and probably PJRC :-) (According to a comment from the SparkFun CEO on Youtube they already viewed the vid during a company meeting :-)...
Here you are: https://github.com/luni64/USB-C---MicroB
Next step in my deep dive into the MicroMod stuff was to build a custom carrier board. The compact stepper board can be used with up to four stepper drivers with standard layout (e.g. DRV8825)....
Here a link to the user wiki: https://github.com/TeensyUser/doc/wiki
You could try this https://github.com/dxinteractive/ResponsiveAnalogRead it usually works wonders out of the box :-)
I'm probably missing something, but why does it have to be an "official" addon board? Packing an ESP on a simple T3/4 breakout board and communicate to it via serial doesn't sound difficult?
No, this would hardly be economical :-). However, If you want, I can put the design files on GitHub so you can order/make them yourself. Board cost (JLPCB) where EUR12 for 10pcs including shipment...
Works :-)
2317023169231672316823166
Looks like you stumbled over the same issue as already found in another context here: https://forum.pjrc.com/threads/65469-EncoderTool-Problems?p=264465
Seems to be some weird linker issue. See...
Actually, hand soldering it is not _that_ difficult. If I can do it using my 40 year old DIY soldering station anyone can :-). Some cheap loupe glasses help a lot...
Good thing is that my daughter...
To follow that up: Grounding PTA1 works, the SWD pins get tri stated and an external debug probe can connect. Grounding PTA3 does disable the bootloader (it doesn't react to the boot button anymore)...
Thanks for the feedback. Meanwhile, I did some measurements and found that the boot input pin is permanently low. I assume some shortcut under the bootloader or it simply is broken...
Anyway, I...
Actually I very much hope that Paul is working on it and that the rumors are not just rumors... :cool:
IMHO, this form factor is really intriguing for integrating processors into custom carrier...
Yay... after some delay due to the Christmas holidays the boards for my first DIY Teensy (compatible to the SparkFun MicroMod carriers) arrived today...
23076
23077 23082
.. and I tested...
I wouldn't do that, I'd just sum both and calculate the percentage. The deviation is relatively small and probably won't disturb anyone. Never confuse users if you want to avoid support (I'm heading...
A few hopefully constructive remarks:
While the percentages for ITCM and DTCM are correct technically, they might be misleading since they only show the usage relative to the current ITCM/DTCM...
Actually, smalloc is able to use more than one memory pool at the same time. Here an example how to setup an additional pool on DTCM. This example also shows how to use use placement new to construct...
........ ;)
The dsb is needed to make sure the reset of the interrupt flag propagated through the caches and busses to the actual timer hardware. Without dsb and a very short ISR (like the one you have) the ISR...
:-)
Any recommendations on a fuse and the clamping diode?
Thanks a lot for the input. Made me recalculating and rereading some stuff.
Regarding the differential line: IIRC, a rule of thumb says as long as your wires are shorter that 1/10 of the...
Not on this board but since you would connect power hungry devices to the pin headers I'd say you can always do any required filtering there.
Inspired by vjmuzik's thread https://forum.pjrc.com/threads/65633-T4-1-External-USB-C-Connector and my quest to get familiar with KiCad I thought it might be fun to do a simple USB-C adapter board....
Interesting idea and a nice Type-C connector. If you don't mind I'll steal this idea and try to make a small castellated adapter board to add a USB-C connector to the T4.1. Care to mention which one...
Of course these encoders are perfect for some applications but they are large and the price difference is significant. A standard mech encoder is about 50ct in single quantities. People here are...
Even better :-)
Sure, never used them, where can I find info and use cases?
Here you are: https://github.com/TeensyUser/doc/wiki/Memory-Mapping.
Might be a good idea to double check all those special cases....
There was an "inline" missing in the destructor declaration. I uploaded a fix to GitHub. Can you try if the current version works for you? And, thanks for spotting yet another bug....
BTW:
The...
I meanwhile finished the design of a MicroMode compatible stepper driver carrier. So, I'm ready for the MM Version of the T4 :-) (or, at least I will have something to play with my (hopefully) T3.2...
Actually it runs with 24MHz but it can easily be switched to 150MHz. Here the TeensyTimerTool which Paul mentioned above: https://github.com/luni64/TeensyTimerTool It implements a generic access to...
Mea culpa, as so often, I got distracted and never finalized this article. I'll add the missing info about PROGMEM asap.
I uploaded a fix for the wrong conditional to the master branch of the lib.
BTW: Does anybody know of a working unit test framework for embedded projects? The growing number of boards makes...
Glad it works, and good to know that it handles problematic encoders as well.
The "fix" you did with removing "override" is OK if you don't use the button features of the library. Actually, it...
I agree with KurtE and Defragster. It simply doesn't work to have parts of a class in a different memory section. At the end of the day the compiler needs to be able to calculate the size of the...
Well, its more like a baby tree and I had a hard time mounting it but it is a self cut tree after all ;)
22926
Thanks for the shoutout. Here the link to the library: https://github.com/luni64/EncoderTool. Actually I'd be quite interested if it works with your problematic encoder (which is quite expensive by...
Yes, wife and daughter made me go in the forest to cut a tree :-)
For memory challenged boards you can switch off the std::function support in config.h.
Ups, can you move the #endif after the closing bracket in EncoderBase.cpp (line 196). The #endif should be the last statement in the file. I need to leave right now, I'll fix it later today
Octopart is already quite good at it. Here what it knows about Teensies https://octopart.com/search?q=teensy¤cy=USD&specs=1 Currently only the larger distributors are listed but it is growing...
Actually he bragged about renaming it but got distracted by a few PCBs :-). But now X-mas vacation starts and I'll have time for those things...
Yes, they are a bit fragile but I want to check the assembly capabilities of JLCPC. Lets see how they manage that :-)