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; generated 17 minute(s) ago.

  1. Which timer are you using for your stepper...

    Which timer are you using for your stepper control? It looks like NativeEthernet is using TMR4 (quad timer) per default:...
  2. Replies
    10
    Views
    262

    Played a bit with your code. The problem is that...

    Played a bit with your code. The problem is that "wasPressed" is true for a short press and a long press which makes detecting a long press somehow difficult. I changed your button class to be able...
  3. Replies
    10
    Views
    262

    Ok, this is using Bounce in the background. AFAIK...

    Ok, this is using Bounce in the background. AFAIK you are supposed to call update as often as possible. Your delays (where you don't update the buttons) might confuse the debounce algorithm.

    You...
  4. Replies
    10
    Views
    262

    What Button library are you using?

    What Button library are you using?
  5. Replies
    11
    Views
    225

    Sorry, I was a bit sloppy when I wrote "string"....

    Sorry, I was a bit sloppy when I wrote "string". Of course I meant to say c_string, i.e. a plain old char array.
  6. Replies
    11
    Views
    225

    Here some code showing what is happening. ...

    Here some code showing what is happening.



    #include "Arduino.h"

    void testFunction(char *data)
    {
    Serial.printf("Address of data: %010p\n", data);
    Serial.flush();
  7. The SerEmu interface not related to fligthsim....

    The SerEmu interface not related to fligthsim. More or less all Teensy USB modes which don't have a "real" Serial interface provide a SerEmu interface. You find the corresponding report descriptor in...
  8. Replies
    11
    Views
    222

    ... and since you seem to like the std::chrono...

    ... and since you seem to like the std::chrono literals (e.g. ms, s, etc), here a version showing how to set the reload value directly in time units. BTW: calculation of timer ticks is done at...
  9. Replies
    11
    Views
    222

    What do you mean by "doesn't work"? Works here...

    What do you mean by "doesn't work"? Works here without issue.

    I did a few changes to your code to make it easier to analyze results:



    #include "Arduino.h"
    #include "TeensyTimerTool.h"...
  10. Here a simple example showing how to receive...

    Here a simple example showing how to receive SerEMU data from a FligthSim device (uses Mike O'Brien's HidLibrary https://www.nuget.org/packages/hidlibrary/3.3.40)



    using HidLibrary;
    using...
  11. Replies
    11
    Views
    222

    Setting the OCR1 register of the GPT timer will...

    Setting the OCR1 register of the GPT timer will reset its counter.



    If you set the counter in the OCR-ISR the actual period will be prolonged by the time it takes from the OCR1 event to the...
  12. Replies
    11
    Views
    222

    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...
  13. Replies
    873
    Views
    17,765

    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. ...
  14. Replies
    873
    Views
    17,765

    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...
  15. Replies
    873
    Views
    17,765

    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....
  16. Replies
    873
    Views
    17,765

    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...
  17. Replies
    6
    Views
    225

    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());
  18. Replies
    6
    Views
    225

    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.
  19. 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
  20. 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...
  21. Replies
    115
    Views
    20,223

    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...
  22. 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...
  23. 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]);
  24. Replies
    873
    Views
    17,765

    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...
  25. Replies
    873
    Views
    17,765

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

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

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

    You might also consider the SPI version: MCP23S17 which should work with 10MHz SPI clock.
  27. 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
  28. Replies
    873
    Views
    17,765

    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?
  29. Replies
    873
    Views
    17,765

    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
  30. Replies
    873
    Views
    17,765

    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 ...
  31. Replies
    873
    Views
    17,765

    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?
  32. Replies
    873
    Views
    17,765

    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
  33. Replies
    873
    Views
    17,765

    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...
  34. Replies
    873
    Views
    17,765

    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 :-)
  35. Replies
    873
    Views
    17,765

    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...
  36. Replies
    12
    Views
    373

    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...
  37. Replies
    873
    Views
    17,765

    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...
  38. Replies
    14
    Views
    794

    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...
  39. Replies
    873
    Views
    17,765

    Great, thanks for testing Its a standard...

    Great, thanks for testing



    Its a standard M2.5 thread.
  40. Replies
    873
    Views
    17,765

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

    Thanks, of course SDI = Serial data in. SDO = Serial data out.
    Silly me
  41. Replies
    873
    Views
    17,765

    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?
  42. Replies
    873
    Views
    17,765

    Great, thanks

    Great, thanks
  43. Replies
    873
    Views
    17,765

    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 :-)
  44. Replies
    873
    Views
    17,765

    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...
  45. Replies
    873
    Views
    17,765

    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...
  46. Replies
    873
    Views
    17,765

    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...
  47. Replies
    873
    Views
    17,765

    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.
  48. 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...
  49. Replies
    92
    Views
    8,729

    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()
  50. Replies
    15
    Views
    644

    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:
    ...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4