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.02 seconds.

  1. 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]);
  2. Replies
    363
    Views
    5,061

    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...
  3. Replies
    363
    Views
    5,061

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

    This is why (in my original file) they are in their own namespace :-)
  4. Replies
    16
    Views
    232

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

    You might also consider the SPI version: MCP23S17 which should work with 10MHz SPI clock.
  5. 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
  6. Replies
    363
    Views
    5,061

    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?
  7. Replies
    363
    Views
    5,061

    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
  8. Replies
    363
    Views
    5,061

    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 ...
  9. Replies
    363
    Views
    5,061

    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?
  10. Replies
    363
    Views
    5,061

    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
  11. Replies
    363
    Views
    5,061

    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...
  12. Replies
    363
    Views
    5,061

    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 :-)
  13. Replies
    363
    Views
    5,061

    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...
  14. Replies
    12
    Views
    206

    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...
  15. Replies
    363
    Views
    5,061

    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...
  16. Replies
    14
    Views
    518

    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...
  17. Replies
    363
    Views
    5,061

    Great, thanks for testing Its a standard...

    Great, thanks for testing



    Its a standard M2.5 thread.
  18. Replies
    363
    Views
    5,061

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

    Thanks, of course SDI = Serial data in. SDO = Serial data out.
    Silly me
  19. Replies
    363
    Views
    5,061

    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?
  20. Replies
    363
    Views
    5,061

    Great, thanks

    Great, thanks
  21. Replies
    363
    Views
    5,061

    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 :-)
  22. Replies
    363
    Views
    5,061

    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...
  23. Replies
    363
    Views
    5,061

    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...
  24. Replies
    363
    Views
    5,061

    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...
  25. Replies
    363
    Views
    5,061

    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.
  26. 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...
  27. Replies
    77
    Views
    4,980

    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()
  28. Replies
    15
    Views
    292

    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:
    ...
  29. Replies
    15
    Views
    292

    Yes, the Wiki link shows how to fix this

    Yes, the Wiki link shows how to fix this
  30. Replies
    15
    Views
    292

    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...
  31. Replies
    15
    Views
    292

    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.
  32. Replies
    4
    Views
    134

    delayNanoseconds(500) Should delay for about...

    delayNanoseconds(500)

    Should delay for about 500ns.
  33. Replies
    4
    Views
    134

    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}; //...
  34. Replies
    109
    Views
    19,318

    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...
  35. Replies
    5
    Views
    221

    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.
  36. Replies
    9
    Views
    582

    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) {}
  37. Thread: Encoder Tester

    by luni
    Replies
    16
    Views
    2,487

    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?
  38. 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.
  39. 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.
  40. Replies
    8
    Views
    595

    This ...

    This https://forum.pjrc.com/threads/65023-Unique-Teensy-Serial-Number-using-getTeensySerial()-from-TeensyID-h?p=262494&viewfull=1#post262494 shows how to read out the EEProm before USB enumerates....
  41. He, he, there is no such thing as a free lunch :D...

    He, he, there is no such thing as a free lunch :D On the other hand, NXP won't refund any money for unused flash bytes... :-))
  42. BTW: In case you don't know (or don't want to...

    BTW: In case you don't know (or don't want to know) the size of your parts array beforehand you might consider changing it to vector<GUIIconPart>. If so, you probably don't need the uint8_t len...
  43. There are two issues in your code. You can...

    There are two issues in your code.


    You can not initialize non literal static types directly in the a class declaration. You need to do that in some cpp file
    Your array GUIIconPart parts[]...
  44. Replies
    6
    Views
    293

    That won't work since it will mess up the...

    That won't work since it will mess up the interrupt handling. Anyway, I'd simply define a relay function which, depending on the current mode, increments one of two variables. Limiting the values to...
  45. Thanks a lot, updated the repository accordingly....

    Thanks a lot, updated the repository accordingly.


    BTW:


    Doesn't work without DSB (or other syncing code) for short ISRs because the ISR will be reentered (interrupt flag not yet set after...
  46. That's great. I was afraid that the std::function...

    That's great. I was afraid that the std::function interface is quite expensive which it obviously isn't :-)


    This is weird. The TMR has a combined IRQ for all 4 channels, therefore it needs to...
  47. You need to take into account that you can...

    You need to take into account that you can utilize the time needed for syncing the interrupt flag. Here an example using the code from LAtimes and replacing the callback by this:



    void...
  48. Thread: TeensyTimerTool

    by luni
    Replies
    261
    Views
    18,501

    Sorry for the delay, I finally found some time...

    Sorry for the delay, I finally found some time trying your code. I can not reproduce the problem. It generates nice 10ms calls here. Do you still have this problem?
  49. Replies
    6
    Views
    293

    Instead of calling your sequencer from loop I'd...

    Instead of calling your sequencer from loop I'd use an interval timer to generate the calls. You can then simply change the timer period when the encoder value changes. IIRC you are using the...
  50. Replies
    468
    Views
    49,577

    As Kurt mentioned, you can use the...

    As Kurt mentioned, you can use the TeensyTimerTool if you need to access more timers with a high level interface. For the T4 you can use it with

    2x GPT 32bit
    16x TMR 16bit
    4x PIT 32bit
    20x...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4