Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: luni

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    47

    Just did the same :-) Can't observe any drift. ...

    Just did the same :-) Can't observe any drift.

    Edit: looks like you started fiddling around with the register to set a new period while the timer runs? Since the requests for this feature somehow...
  2. Replies
    591
    Views
    10,015

    It is just copying the current bits fromGPIO7_PSR...

    It is just copying the current bits fromGPIO7_PSR (input register) to the variable in and shifting everything 4 bits to the right to account for the fact that the MM pins sit on bit 4-11 of GPIO7. ...
  3. Replies
    591
    Views
    10,015

    Does also look good and super easy to use but it...

    Does also look good and super easy to use but it seems to be targeted at larger machines? The one I linked is explicitly done for Cortex M processors. Don't know if it makes a difference though. Need...
  4. Replies
    591
    Views
    10,015

    Actually it is quite, say, teensy :-) ...

    Actually it is quite, say, teensy :-)



    Thought of encoding to jpeg before sending to reduce the data to transfer. Maybe something like this: https://github.com/noritsuna/JPEGEncoder4Cortex-M....
  5. Replies
    591
    Views
    10,015

    MM board tests in a DIY carrier (solder paste dispenser)

    I tested the Teensy MM beta board in my DIY stepper motor carrier. This carrier is part of a solder paste dispenser project I'm working on since a couple of weeks. The T4 MM board finally motivated...
  6. Replies
    6
    Views
    154

    Here you are: #include "TeensyTimerTool.h"...

    Here you are:


    #include "TeensyTimerTool.h"
    using namespace TeensyTimerTool;

    PeriodicTimer myTimer(GPT1);

    void printCurrentTime(){
    Serial.printf("Called at: %d\n", micros());
  7. Replies
    6
    Views
    154

    You can switch the GPT (32bit) timers to 150MHz....

    You can switch the GPT (32bit) timers to 150MHz. Have a look at the configuration chapter in the wiki.
  8. I recommend to install the TyTools to upload &...

    I recommend to install the TyTools to upload & monitor. You can integrate it to VisualTeensy in the settings tab.

    24445
  9. You would need a debug probe like a JLink and the...

    You would need a debug probe like a JLink and the corresponding GDB server to make this work. Plus you need to modify the hardware of your Teensy to be able to connect this probe. You find some...
  10. Replies
    115
    Views
    19,743

    Actually, I'm currently working on it. I...

    Actually, I'm currently working on it.



    I don't know your mechanical setup but one often underestimates moment of inertia of the lead screw and motor anchor as limiting factors to the...
  11. Per default, both ISRs have the same priority. ...

    Per default, both ISRs have the same priority. Thus the pin ISR won't interrupt the timer ISR.

    Try


    myTimer.begin(StatusUpdateTimer, 250000); // run every 0.25 seconds...
  12. This should work pot pots[16]; void...

    This should work


    pot pots[16];

    void update()
    {
    for (int i = 0; i < 16; i++)
    {
    pots[i].update(output[i]);
  13. Replies
    591
    Views
    10,015

    Defining things like 'D0' or 'TX2' without a...

    Defining things like 'D0' or 'TX2' without a dedicated namespace is screaming for trouble... However, I don't know if it make sense to do this in 'c++' in the core files since, AFAIK, they are...
  14. Replies
    591
    Views
    10,015

    This is why (in my original file) they are in...

    This is why (in my original file) they are in their own namespace :-)
  15. Replies
    18
    Views
    389

    You might also consider the SPI version: MCP23S17...

    You might also consider the SPI version: MCP23S17 which should work with 10MHz SPI clock.
  16. Actually, this is just an unmaintained fork I...

    Actually, this is just an unmaintained fork I made for some experiments. Here a link to the correct repository: https://github.com/ftrias/TeensyDebug
  17. Replies
    591
    Views
    10,015

    Just another guess, did you try INPUT instead of...

    Just another guess, did you try INPUT instead of INPUT_PULLDOWN? If I understand correctly the camera works with 1.8V? Maybe this together with the internal pulldowns is just borderline?
  18. Replies
    591
    Views
    10,015

    Yes, i.e. G0 = 1 -> 1, G1=1 -> 2 G2=1 -> 4 etc

    Yes, i.e. G0 = 1 -> 1, G1=1 -> 2 G2=1 -> 4 etc
  19. Replies
    591
    Views
    10,015

    I got my mm4 board and did some tests with the...

    I got my mm4 board and did some tests with the mmBus functionality. Looks like there is a glitch with the overwritten pinMode(mmBus, INPUT_PULLDOWN). I currently don't know why, but it somehow ...
  20. Replies
    591
    Views
    10,015

    Looks like a usb-micro connector? Any chance to...

    Looks like a usb-micro connector? Any chance to change it to a USB-C one?
  21. Replies
    591
    Views
    10,015

    This worked for me (measurement from the...

    This worked for me (measurement from the connector index hole which is better defined than the card edge...)

    24332

    If gerbers help: https://github.com/luni64/mmStep/tree/main/Production
  22. Replies
    591
    Views
    10,015

    Actually, soldering the connector is super easy....

    Actually, soldering the connector is super easy. It has two pins which conveniently fix it on the board. Just take an iron with a large flat tip and drag it across the pins using lots of solder. Then...
  23. Replies
    591
    Views
    10,015

    Somehow makes sense. I assume they don't want to...

    Somehow makes sense. I assume they don't want to restrict the usability of those general purpose carriers to special MM processors. Lots of opportunities to do special carriers :-)
  24. Replies
    591
    Views
    10,015

    Works with the usual Windows warnings on...

    Works with the usual Windows warnings on downloaded files. Still waiting for my MM board. But at least I can confirm that it is able to upload to a T4.1 :-)
    Thanks, great work! Makes life so much...
  25. Replies
    12
    Views
    296

    Maybe unrelated but might be worth looking into:...

    Maybe unrelated but might be worth looking into: I once had a similar problem with an attached pwm controller breakout board. Turned out that it was drawing too much from the 3V3 regulator of the...
  26. Replies
    591
    Views
    10,015

    I probably misinterpret your post. But just in...

    I probably misinterpret your post. But just in case: the MM parallel port (G0-G7) is mapped to consecutive pins on GPIO7, starting at bit4. So, reading / writing a byte to it should be simple. Here...
  27. Replies
    14
    Views
    683

    https://www.youtube.com/watch?v=jhP9n6WvVfQ Of...

    https://www.youtube.com/watch?v=jhP9n6WvVfQ

    Of course I don't know how professional you need/want to build that. At about 1:10 they give you a glance at the mechanical/electronical setup. Doesn't...
  28. Replies
    591
    Views
    10,015

    Great, thanks for testing Its a standard...

    Great, thanks for testing



    Its a standard M2.5 thread.
  29. Replies
    591
    Views
    10,015

    Thanks, of course SDI = Serial data in. SDO =...

    Thanks, of course SDI = Serial data in. SDO = Serial data out.
    Silly me
  30. Replies
    591
    Views
    10,015

    This 24276 is probably a typo? Shouldn't it be...

    This
    24276
    is probably a typo? Shouldn't it be SPI_COPI1 / SPI_CIPO1? If so, which one is which?
  31. Replies
    591
    Views
    10,015

    Great, thanks

    Great, thanks
  32. Replies
    591
    Views
    10,015

    I got myself one of those 24273 to replace...

    I got myself one of those

    24273

    to replace the original tiny screw. Makes swapping much easier :-)
  33. Replies
    591
    Views
    10,015

    This just translates the Teensy Pin names to...

    This just translates the Teensy Pin names to official pin names from the MicroMode spec. You can of course use Teensy Names as well but then you have to look up in a table where they end up on the...
  34. Replies
    591
    Views
    10,015

    Sorry, my post #64 was unclear. Currently this is...

    Sorry, my post #64 was unclear. Currently this is not an Arduino library. The idea is to just copy the two files MicroModT4.h and MicroModT4.cpp into your sketch folder.
    I also fixed the 'MM32' bug...
  35. Replies
    591
    Views
    10,015

    I updated my little MicroMod helper files which I...

    I updated my little MicroMod helper files which I made for my DIY MicroMod T3.2. Should work now with the MicroMod T4. It contains the mapping of the MM pins to the Teensy pins so that you can use...
  36. Replies
    591
    Views
    10,015

    In case you send to Europe, I would be *really*...

    In case you send to Europe, I would be *really* interested. Like to test it on my MicroMod stepper board.
  37. Wild guess: Can it be that you have your common...

    Wild guess: Can it be that you have your common encoder pin connected to VCC instead of GND?

    If you have a scope or an LA you can have a look at the pins if they are actually changing while you...
  38. Replies
    89
    Views
    7,364

    In case an upgrade to a newer toolchain is still...

    In case an upgrade to a newer toolchain is still considered here an observation which might help debugging:

    This



    #include "Arduino.h"
    #include <string>

    void setup()
  39. Replies
    15
    Views
    446

    Looks like you didn't copy the libraries to the...

    Looks like you didn't copy the libraries to the correct path? Unless the GCC folder structure is different for a MAC, they need to go into the MAC equivalent of this WIN10 folder:
    ...
  40. Replies
    15
    Views
    446

    Yes, the Wiki link shows how to fix this

    Yes, the Wiki link shows how to fix this
  41. Replies
    15
    Views
    446

    https://github.com/TeensyUser/doc/wiki/GCC ...

    https://github.com/TeensyUser/doc/wiki/GCC

    Scroll down to "Switching between different toolchains". I'm usually using VisualTeensy where switching is done by simply changing the setting for the...
  42. Replies
    15
    Views
    446

    AFAIK you need to use at least GCC 6 for this. I...

    AFAIK you need to use at least GCC 6 for this. I just tested your code with gcc-arm-none-eabi-9-2019-q4. And it compiles without issue. There are a few discussions about this issue on Stackoverflow.
  43. Replies
    4
    Views
    185

    delayNanoseconds(500) Should delay for about...

    delayNanoseconds(500)

    Should delay for about 500ns.
  44. Replies
    4
    Views
    185

    You are right, there is a bug in this example....

    You are right, there is a bug in this example. Here a fix:



    #include "Arduino.h"
    #include "TeensyTimerTool.h"
    using namespace TeensyTimerTool;

    OneShotTimer timer[]{TCK, TCK, TCK, TCK}; //...
  45. Replies
    115
    Views
    19,743

    I second MarkT's remarks above and the currently...

    I second MarkT's remarks above and the currently implemented accelerators do not provide this.

    However, if for some reasons you want to change the acceleration behavior, the library is prepared...
  46. Replies
    5
    Views
    271

    Your dBounce array has only 12 entries but in the...

    Your dBounce array has only 12 entries but in the for loop in readInputs() you are calling update() for 16 entries.
  47. Replies
    9
    Views
    655

    Your code doesn't write the changed time back to...

    Your code doesn't write the changed time back to the RTC.
    This one should work:


    #include <Arduino.h>
    #include <TimeLib.h>

    void setup()
    {
    while (!Serial) {}
  48. Thread: Encoder Tester

    by luni
    Replies
    16
    Views
    2,521

    Thanks for the enhancement idea. I implemented it...

    Thanks for the enhancement idea. I implemented it and uploaded the code to GitHub. Can you give it a try?
  49. Yes, ADC_util is part of ADC. PlatformIO is a...

    Yes, ADC_util is part of ADC. PlatformIO is a completely different tool also working with vsCode as editor. You do not need it for VisualTeensy.
  50. Looks like you didn't tell vsTeensy which...

    Looks like you didn't tell vsTeensy which libraries you need. Here https://www.youtube.com/watch?v=8oTSou1I3IM a video showing how that works.
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4