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 14 minute(s) ago.

  1. Replies
    13
    Views
    2,394

    AFAIK this requires a debug probe which needs to...

    AFAIK this requires a debug probe which needs to be attached to the JTAG/SWD interface of the board which Teensy doesn't support. Or is this some clever software only debugging?
  2. Glad it works! ... and nothing to apologize. At...

    Glad it works!
    ... and nothing to apologize. At least this made me to finally solder that ethernet adapter :-)
  3. Thanks that was helpful. I had a quick look at...

    Thanks that was helpful. I had a quick look at your code.
    Following results:

    1) This is not related to the TimerTool, I get the same problem if I completely remove the TimerTool from the test...
  4. Ok, if you are using the GPT timers a clash is...

    Ok, if you are using the GPT timers a clash is not very likely (at least I didn't see any use of the GPT timers in the Ethernet library). Anyway, just to make sure I'd try the TCK timers. They are...
  5. 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:...
  6. Replies
    10
    Views
    310

    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...
  7. Replies
    10
    Views
    310

    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...
  8. Replies
    10
    Views
    310

    What Button library are you using?

    What Button library are you using?
  9. Replies
    11
    Views
    253

    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.
  10. Replies
    11
    Views
    253

    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();
  11. 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...
  12. Replies
    11
    Views
    241

    ... 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...
  13. Replies
    11
    Views
    241

    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"...
  14. 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...
  15. Replies
    11
    Views
    241

    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...
  16. Replies
    11
    Views
    241

    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...
  17. Replies
    888
    Views
    19,121

    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. ...
  18. Replies
    888
    Views
    19,121

    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...
  19. Replies
    888
    Views
    19,121

    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....
  20. Replies
    888
    Views
    19,121

    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...
  21. Replies
    6
    Views
    239

    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());
  22. Replies
    6
    Views
    239

    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.
  23. 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
  24. 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...
  25. Replies
    115
    Views
    20,348

    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...
  26. 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...
  27. 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]);
  28. Replies
    888
    Views
    19,121

    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...
  29. Replies
    888
    Views
    19,121

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

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

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

    You might also consider the SPI version: MCP23S17 which should work with 10MHz SPI clock.
  31. 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
  32. Replies
    888
    Views
    19,121

    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?
  33. Replies
    888
    Views
    19,121

    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
  34. Replies
    888
    Views
    19,121

    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 ...
  35. Replies
    888
    Views
    19,121

    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?
  36. Replies
    888
    Views
    19,121

    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
  37. Replies
    888
    Views
    19,121

    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...
  38. Replies
    888
    Views
    19,121

    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 :-)
  39. Replies
    888
    Views
    19,121

    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...
  40. Replies
    12
    Views
    388

    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...
  41. Replies
    888
    Views
    19,121

    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...
  42. Replies
    14
    Views
    822

    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...
  43. Replies
    888
    Views
    19,121

    Great, thanks for testing Its a standard...

    Great, thanks for testing



    Its a standard M2.5 thread.
  44. Replies
    888
    Views
    19,121

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

    Thanks, of course SDI = Serial data in. SDO = Serial data out.
    Silly me
  45. Replies
    888
    Views
    19,121

    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?
  46. Replies
    888
    Views
    19,121

    Great, thanks

    Great, thanks
  47. Replies
    888
    Views
    19,121

    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 :-)
  48. Replies
    888
    Views
    19,121

    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...
  49. Replies
    888
    Views
    19,121

    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...
  50. Replies
    888
    Views
    19,121

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