-
Older Activity
-
01-19-2021, 03:14 PM
Maybe this helps to set up the differential ADC in principle. https://forum.pjrc.com/threads/57890-TeensyLoadcell-Direct-Loadcell-Readout-with-T3-2
52 replies | 2958 view(s)
-
01-19-2021, 06:53 AM
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. The idea is the same...
15 replies | 332 view(s)
-
01-16-2021, 07:38 PM
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 soldered them in I...
58 replies | 1741 view(s)
-
01-16-2021, 04:15 PM
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 :-) )
If you need...
58 replies | 1741 view(s)
-
01-16-2021, 04:05 PM
Here you are: https://github.com/luni64/USB-C---MicroB
16 replies | 523 view(s)
-
01-16-2021, 03:21 PM
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). 1xI2C, 1xSPI, 1xUART, 2x...
58 replies | 1741 view(s)
-
01-15-2021, 08:09 PM
Here a link to the user wiki: https://github.com/TeensyUser/doc/wiki
3 replies | 1005 view(s)
-
01-12-2021, 03:41 PM
You could try this https://github.com/dxinteractive/ResponsiveAnalogRead it usually works wonders out of the box :-)
10 replies | 452 view(s)
-
01-10-2021, 11:15 AM
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?
10 replies | 268 view(s)
-
01-09-2021, 02:52 PM
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 and customs handling....
16 replies | 523 view(s)
-
01-09-2021, 12:05 PM
Works :-)
16 replies | 523 view(s)
-
01-09-2021, 09:38 AM
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 also #8 in the linked...
6 replies | 1090 view(s)
-
01-08-2021, 10:36 PM
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 is currently...
58 replies | 1741 view(s)
-
01-08-2021, 01:24 PM
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) but doesn't...
58 replies | 1741 view(s)
-
01-05-2021, 05:05 PM
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 built a second board...
58 replies | 1741 view(s)
-
01-04-2021, 06:25 PM
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 boards. I'm currently...
58 replies | 1741 view(s)
-
01-04-2021, 05:56 PM
Yay... after some delay due to the Christmas holidays the boards for my first DIY Teensy (compatible to the SparkFun MicroMod carriers) arrived today...
.. and I tested my rusty 0603 soldering...
58 replies | 1741 view(s)
-
01-02-2021, 03:11 PM
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 service department...
106 replies | 4090 view(s)
-
01-02-2021, 08:08 AM
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 split. I suggest to...
106 replies | 4090 view(s)
-
01-01-2021, 07:50 AM
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 c++ objects in this...
106 replies | 4090 view(s)
-
12-29-2020, 07:10 PM
........ ;)
13 replies | 1011 view(s)
-
12-29-2020, 07:06 PM
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 would be left before...
13 replies | 1011 view(s)
-
12-29-2020, 04:24 PM
:-)
Any recommendations on a fuse and the clamping diode?
16 replies | 523 view(s)
-
12-29-2020, 03:49 PM
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 wavelength you don't need...
16 replies | 523 view(s)
-
12-29-2020, 10:09 AM
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.
16 replies | 523 view(s)
-
12-29-2020, 09:44 AM
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. The CC configuration...
16 replies | 523 view(s)
-
12-27-2020, 10:33 PM
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 is D+ in your first...
2 replies | 230 view(s)
-
12-26-2020, 07:39 PM
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 doing projects using 32+...
12 replies | 464 view(s)
-
12-26-2020, 11:29 AM
Even better :-)
50 replies | 1808 view(s)
-
12-26-2020, 11:28 AM
Sure, never used them, where can I find info and use cases?
50 replies | 1808 view(s)
-
12-26-2020, 11:13 AM
Here you are: https://github.com/TeensyUser/doc/wiki/Memory-Mapping.
Might be a good idea to double check all those special cases....
50 replies | 1808 view(s)
-
12-25-2020, 06:00 PM
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 fix you did is the...
39 replies | 2636 view(s)
-
12-25-2020, 05:15 PM
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 compatible MM board...
58 replies | 1741 view(s)
-
12-24-2020, 04:13 PM
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 PIT, TMR, GPR, FTM...
11 replies | 332 view(s)
-
12-24-2020, 07:09 AM
Mea culpa, as so often, I got distracted and never finalized this article. I'll add the missing info about PROGMEM asap.
50 replies | 1808 view(s)
-
12-24-2020, 07:03 AM
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 proper testing of...
21 replies | 458 view(s)
-
12-24-2020, 06:56 AM
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 just cheats to the...
12 replies | 464 view(s)
-
12-23-2020, 08:12 PM
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 class in memory to be...
7 replies | 195 view(s)
-
12-23-2020, 02:07 PM
Well, its more like a baby tree and I had a hard time mounting it but it is a self cut tree after all ;)
21 replies | 458 view(s)
-
12-23-2020, 01:11 PM
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 the way).
I...
12 replies | 464 view(s)
-
12-23-2020, 12:42 PM
Yes, wife and daughter made me go in the forest to cut a tree :-)
21 replies | 458 view(s)
-
12-23-2020, 12:33 PM
For memory challenged boards you can switch off the std::function support in config.h.
21 replies | 458 view(s)
-
12-23-2020, 11:45 AM
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
21 replies | 458 view(s)
-
12-22-2020, 09:50 PM
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 all the time. IMHO...
134 replies | 5641 view(s)
-
12-22-2020, 01:13 PM
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...
134 replies | 5641 view(s)
-
12-22-2020, 11:19 AM
Yes, they are a bit fragile but I want to check the assembly capabilities of JLCPC. Lets see how they manage that :-)
58 replies | 1741 view(s)
-
12-22-2020, 11:01 AM
I asked them about soldering that MicroMod connector. Unfortunately they will only assemble what's in their parts library. This library is suprisingly large and they have a lot of NXP processors (e.g the MK20DX256) but...
58 replies | 1741 view(s)
-
12-21-2020, 03:26 PM
Great. Let me know if you find something else.
No, just some things unthought of so far. Would be boring if everything just worked :-).
21 replies | 458 view(s)
-
12-21-2020, 02:53 PM
@fdaniels: I uploaded a fixed version which works here. Can you give it a try? (it implements the missing _write() which is a bit rude but works)
@Paul:
So was I. To test it I placed a while(1){} in _write()...
21 replies | 458 view(s)
-
12-21-2020, 01:35 PM
If I move the definiton of _write from print.cpp to mk20dx12.c above the definition of _read, it works:
__attribute__((weak))
int _write(int file, char *ptr, int len)
{
//((class Print *)file)->write((uint8_t...
21 replies | 458 view(s)
-
12-21-2020, 01:19 PM
Yes, I've seen this. I also saw this over the part in setup.c where you define the other syscalls.
// syscall functions need to be in the same C file as the entry point "ResetVector"
// otherwise the linker will...
21 replies | 458 view(s)
-
12-21-2020, 12:55 PM
Does the other code print something to serial?
21 replies | 458 view(s)
-
12-21-2020, 12:42 PM
Your are doing nothing wrong. I can reproduce it but it is super weird. Something seems to try to use some c-library function which writes to stdout. Those functions need '_write' defined to do this. But, as usual in...
21 replies | 458 view(s)
-
12-20-2020, 06:09 PM
They ship as HID device. Try uploading a sketch compiled with the Serial option.
9 replies | 196 view(s)
-
12-19-2020, 07:26 PM
Here a nice article about how all this stuff works. http://www.cplusplus.com/articles/Gw6AC542/#:~:text=C%2B%2B%20programs%20are%20built%20in,with%20objects%20in%20your%20code.
It is really worth understanding how a...
24 replies | 526 view(s)
-
12-19-2020, 07:14 PM
The Arduino build system copies all *.inos into one huge *.cpp file which will be compiled. Depending on which file is copied on top this will work or not. You can have a look at the composed *.cpp file it is in the...
24 replies | 526 view(s)
-
12-19-2020, 12:02 PM
That's true, if you set the encoder count to 6 it will clock in only 6 encoders. If you connected two of them at the other end they would not be read. If you don't want to change your wiring you can always clock in 8...
39 replies | 2636 view(s)
-
12-19-2020, 10:44 AM
Sounds like a good plan :-)
As you observed correctly, the first encoder in the array is the first which is clocked in. I.e. the one connected to the "H" pins. The example just prints out the encoder values by...
39 replies | 2636 view(s)
-
12-19-2020, 06:16 AM
Thanks for the clarifications. Might be a good idea to explain your trademark policy on your web site.
Regardless of being listed, I want to fix that and I'll spend some time renaming VisualTeensy this weekend. Does...
134 replies | 5641 view(s)
-
12-18-2020, 10:39 PM
Yes, you are using an outdated version of Bounce2.
You can fix this by installing a current version of Bounce2 (Library manager, or download directly from GitHub). Alternatively, you can install the current...
39 replies | 2636 view(s)
-
12-18-2020, 11:33 AM
Ups, the last thing I want to do is infringe someone's trademarks. Actually, I have no problem at all to rename it by say "VST". I think GitHub even forwards old links to a renamed repo.
However, since TeensyXXX...
134 replies | 5641 view(s)
-
12-17-2020, 11:21 PM
Care to add VisualTeensy to the alternative Software section?
Here some info, feel free to shorten as needed
Repo: https://github.com/luni64/VisualTeensy
Doku: https://github.com/luni64/VisualTeensy/wiki...
134 replies | 5641 view(s)
-
12-16-2020, 10:25 PM
Placed the crystal and the diode at the bottom.
That 32kHz crystal directly over the pads of the MK20 looks bad, but it is as it is... I also removed the solder mask from the jumpers and replaced the thick...
58 replies | 1741 view(s)
-
12-16-2020, 08:30 PM
There is only the 3v3 plane under the pad no signal layer. But the board is only 0.8mm thick, so, the layers will be not very thick. The lib also contains a solder bridge version with two thinner wires might be easier...
58 replies | 1741 view(s)
-
12-16-2020, 08:27 PM
I'll see if I can squeeze the crystal in somehow. Do you have any experience if those 32kHz crystals can be placed farther away from the pins? VBat will also need two diodes to protect the battery. Hm, probably on the...
58 replies | 1741 view(s)
-
12-16-2020, 07:34 PM
Thanks again for the input, I switched to a 4 layer design and implemented your suggestions. The LED PIN can now be chosen from D13 (default) and D23 by a solder bridge. All reasonably matchable MicroMod pins are...
58 replies | 1741 view(s)
-
12-14-2020, 03:48 PM
Ended up using this:
58 replies | 1741 view(s)
-
12-14-2020, 03:35 PM
E.g.
https://forum.pjrc.com/threads/42728-Debugging-strategies?p=153104&viewfull=1#post153104
https://medium.com/@mattmatic/preparing-teensy-3-6-for-swd-b014b0ce2999
https://www.embedded-os.de/de/teensy_swd.shtml
...
58 replies | 1741 view(s)
-
12-14-2020, 02:06 PM
@embeded-creations. I meanwhile found the JLCPC spec. Looks very good, I think I'll give them a try. The price seems to be some super offer ($7 for 10 pcs 4layer boards). Do you know what they regularly charge for such...
58 replies | 1741 view(s)
-
12-14-2020, 09:57 AM
Didn't find any design spec at JLCPCB. I need 5/5mil and 12/20mil vias.
I currently plan to do this board at SeedStudio https://www.seeedstudio.com/fusion_pcb.html.
Quotes (0.8mm thickness)
10pcs 6/6mil 2...
58 replies | 1741 view(s)
-
12-14-2020, 06:35 AM
Thanks for the feedback, I try to route a few more signals from your list today and fix the ERC errors. But, without paying much more for a 4/4mil design or a 4 layer board it will be difficult (at least for my limited...
58 replies | 1741 view(s)
-
12-13-2020, 07:32 PM
Since there where rumors that we might get a MicroMod compatible T4 I read a bit into this platform and like it very much since it would make integrating Teensies in custom boards much nicer.
So, I spent the rainy...
58 replies | 1741 view(s)
-
12-13-2020, 05:43 AM
I had a very quick look at your code. Unfortunately it is not complete or I'm just overlooking the definition of mySensorSerial. I assume this is a reference to one of the hardware serials (Serial1...Serial6) where your...
8 replies | 243 view(s)
-
12-10-2020, 06:37 PM
Namespaces are a c++ concept to avoid clashes of symbol names (variables, functions etc) between libraries and user code. E.g. the teensy timer tool uses a class called "Timer". It is very likely that other libraries or...
243 replies | 14194 view(s)
-
12-10-2020, 05:57 AM
Edit: sorry, I misread your post. I thought you'd get a stable 10MHz signal from your GPSD0; so the following code probably won't help much....
...............
10MHz interrupts are not really feasible. You can...
23 replies | 791 view(s)
-
12-09-2020, 07:19 AM
Yes, paragraph II of this law is, whenever you build a minimal example to show the problem it goes away:-)
tl;dr:
This, or dividing results by 4 or 2, works for simple applications. However, there is a reason...
22 replies | 764 view(s)
-
12-07-2020, 06:57 PM
Yes, that seems to work. I played a bit with setting serial numbers and found two solutions for setting it from the EEPROM. I.e., you only need to write a new value into the EEPROM to set a new s/n. As always, both...
6 replies | 297 view(s)
-
12-06-2020, 06:58 PM
Looks like it is copied at runtime from a pre-programmed Flash region. Probably needs to happen before USB is up. Here the code from the core:...
6 replies | 297 view(s)
-
12-06-2020, 06:35 PM
You can set it with this code from the WIKI (https://github.com/TeensyUser/doc/wiki/Custom-Serial-Number)
extern "C"
{
struct usb_string_descriptor_struct
{
uint8_t bLength;
uint8_t...
6 replies | 297 view(s)
-
12-06-2020, 01:01 PM
Sure, when you added the info about nm to the WIKI some months ago, I added a call to it in VisualTeensy. I use it quite often to check things.
50 replies | 1808 view(s)
-
12-06-2020, 12:44 PM
I started with a WIKI article about this stuff here: https://github.com/TeensyUser/doc/wiki/Memory-Mapping. It currently lives in the Basisc section. It is still a bit sketchy but good enough for a first review.
...
50 replies | 1808 view(s)
-
12-06-2020, 10:19 AM
Oh, I did see your question on StackExchange but missed it here. -> See my StackExchange answer https://electronics.stackexchange.com/a/535868/270382
4 replies | 210 view(s)
-
12-05-2020, 09:56 PM
Sure, I know the page and the forum. If you like it why not posting your article there? Alternatively, you might contact Nat Friedman from GitHub. He is very responsive on Twitter https://twitter.com/natfriedman....
23 replies | 519 view(s)
-
12-05-2020, 09:36 PM
If you don't like it don't use it and set up a better one. This is a free world.
Have fun.
23 replies | 519 view(s)
-
12-05-2020, 09:29 PM
Regarding to your questions about editing in GitHub (Issues, WIKI etc). This is all done in the more or less standard Markdown syntax. Markdown is really super easy to use and one can type it quickly without much...
23 replies | 519 view(s)
-
12-05-2020, 09:18 PM
Of course I did not delete your wiki page (as I also wrote in a private mail) Instead, I moved it to the corresponding section "Compiling, Languages and upload"
Here the link ...
23 replies | 519 view(s)
-
12-05-2020, 01:28 PM
Actually a Teensy should have no problem at all to drive a stepper and read out an encoder at 25kHz. However, Accelstepper relies on calling run/runSpeed with at least the maximum step frequency, the faster the better....
8 replies | 391 view(s)
-
12-04-2020, 04:23 PM
Yes indeed. But if it works for you, and you are happy with it why not.
Just a remark: life experience shows that this kind of "fixes" will always bite back... Arduino is perfectly capable of detecting the correct...
3 replies | 143 view(s)
-
12-04-2020, 03:49 PM
I can reproduce your error. To fix it just remove the path from your Encoder include. It is unnecessary and confuses the Arduino builder. If I use the normal #include "Encoder.h" instead the sketch compiles without...
3 replies | 143 view(s)
-
12-03-2020, 08:03 PM
Don't think so. I can write something up but since I don't use those often a pointer to some detailed info would be great.
50 replies | 1808 view(s)