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. Thread: Encoder Tester

    by luni
    Replies
    1
    Views
    1,325

    As per user request, I updated my quadrature...

    As per user request, I updated my quadrature generator library (EncSim) to be compatible to T4.x. I replaced the underlying timer library (TeensyDelay) by the TeensyTimerTool which supports all ARM...
  2. Replies
    188
    Views
    15,185

    Thanks for spotting that. Since my path doesn't...

    Thanks for spotting that. Since my path doesn't contain spaces I never stumbled over it.
    I just released 0.9.8.2 on GitHub which should fix it. https://github.com/luni64/VisualTeensy/releases/
  3. Replies
    188
    Views
    15,185

    PIO is nice of course. I'm quite sure that PIO...

    PIO is nice of course. I'm quite sure that PIO will be the dominant development system for the Arduino world sooner or later. But it just doesn't fit my needs. And presumably it doesn't fit the needs...
  4. Replies
    188
    Views
    15,185

    Perfect, here it currently it works without...

    Perfect, here it currently it works without problems. Good to know how to fix it if the problem shows up later....

    I reread your question and found that I overlooked your issue with the spaces...
  5. Replies
    188
    Views
    15,185

    Yes, that's true. Originally I started with...

    Yes, that's true. Originally I started with backslashes as path separator. But since vsCode also accepts a forward slash as separator I switched to "/". Obviously I didn't yet switch all...
  6. Replies
    188
    Views
    15,185

    Actually, they had some changes in the auto...

    Actually, they had some changes in the auto format feature in the current insider version.



    There also are a couple of new issues logged regarding formatting logged:...
  7. Replies
    7
    Views
    741

    Great that it works now. Can't help you about...

    Great that it works now.
    Can't help you about syncing and other details of the library. I was only interested in the tone on/off messages to open/close my organ pipes and didn't look what...
  8. Replies
    7
    Views
    741

    Ups, that was private indeed. I used this repo as...

    Ups, that was private indeed. I used this repo as backup, didn't intend to publish... Anyway, ist public now.
  9. Replies
    7
    Views
    741

    I did a T3.5 project using MD_Midifile and the...

    I did a T3.5 project using MD_Midifile and the T3.5 SD card reader a couple of weeks ago. Here the corresponding post https://forum.pjrc.com/threads/61795-Teensy-Organ.

    Unfortunately MD_Midifile...
  10. You can use it for a T3.5 which has 5V tolerant...

    You can use it for a T3.5 which has 5V tolerant pins. A T3.6 or a T4.X will not like the 5V signal on its RX pin.
  11. Actually this is quite simple. Here an example ...

    Actually this is quite simple. Here an example


    void setup()
    {
    while(!Serial){}

    // writing text
    Serial.println("Some Text\n");
  12. Your statement above is exactly why I developed...

    Your statement above is exactly why I developed VisualTeensy a couple of years ago. I had some bad experiences with maintaining old code which was not compatible to current versions of IDEs and...
  13. In case you only need to change some parameters...

    In case you only need to change some parameters you do not need to upload a new program. You can do this via Serial and have your sketch store the parameters in the EEPROM. Your sketch can then use...
  14. Replies
    3
    Views
    192

    Looks like you have 4 instances of RotateControl...

    Looks like you have 4 instances of RotateControl and one StepControl. Each one of those uses a Intervaltimer. Since there are only 4 Interval timers, this can get complicated. Older versions of...
  15. Replies
    188
    Views
    15,185

    Just released a new version of VisualTeensy ...

    Just released a new version of VisualTeensy which should be more robust regarding installation and first startup.

    To achieve this I removed the problematic dependency on the Arduino library...
  16. Replies
    188
    Views
    15,185

    done...

    done (https://github.com/luni64/VisualTeensy/wiki/Quick-Start-Guide)
  17. Replies
    188
    Views
    15,185

    Master is a Git thing. It is the branch of the...

    Master is a Git thing. It is the branch of the source code which should compile into the currently released version. You only need to clone/download this if you want to compile yourself. ...
  18. Replies
    188
    Views
    15,185

    Ok, I once had a similar issue with a fresh...

    Ok, I once had a similar issue with a fresh Arduino install. It looks like some of the required files (e.g. the huge list of Arduino libraries) are only generated at the first run. It probably...
  19. Replies
    188
    Views
    15,185

    Looks like you don't have Arduino / Teensyduino...

    Looks like you don't have Arduino / Teensyduino installed? It requires a few files from it.
  20. Replies
    3
    Views
    192

    I had a quick look at your code but unfortunately...

    I had a quick look at your code but unfortunately I can't compile it due to dependencies on other libraries. Can you please reduce this 620 lines sketch to a minimal example showing the problem and...
  21. Replies
    23
    Views
    905

    I played a little bit with discourse. Works...

    I played a little bit with discourse. Works nicely, here a test post https://try.discourse.org/t/test-of-forum-capabilites/1396?u=lntest (post will be deleted after one day)

    Has some syntax...
  22. While Paul's comments are certainly true, in this...

    While Paul's comments are certainly true, in this special case the problem is different (the code assigns the volatile _pause to pause, so it wont be optimized away).

    See my comments in the code...
  23. Thread: TeensyTimerTool

    by luni
    Replies
    212
    Views
    8,473

    The 32bit cycle counter (ARM_DWT_CYCCNT) which is...

    The 32bit cycle counter (ARM_DWT_CYCCNT) which is used for the TCK timers overflows quite fast (e.g. every 7s on a T4@600MHz). I therefore added a variant of the TCK timers which extends...
  24. Thread: TeensyTimerTool

    by luni
    Replies
    212
    Views
    8,473

    Using one of the GPTs at 24MHz should work 2^32...

    Using one of the GPTs at 24MHz should work 2^32 * 1/24E6 = 179s which is about 3min max period

    I'm also working on an optional extension of the counter variable to 64bit which will allow more...
  25. Replies
    188
    Views
    15,185

    Glad you like it. Once you got used to using a...

    Glad you like it. Once you got used to using a state of the art IDE like vscode it feels somehow sluggish to code with the Arduino IDE :-)
  26. Replies
    7
    Views
    138

    For controlling your steppers you can use...

    For controlling your steppers you can use TeensyStep https://luni64.github.io/TeensyStep/. In the applications chapter you'll find some information about modern drivers like the one MarkT mentioned....
  27. Thread: Backup Strategy?

    by luni
    Replies
    19
    Views
    420

    I've been responsible for sourcing parts for...

    I've been responsible for sourcing parts for optical measurement devices for long years. I'd say you seldom get complex parts/modules with less risk than those Teensies. Schematics is open source,...
  28. Replies
    7
    Views
    166

    Unless doing this for a high volume product I'd...

    Unless doing this for a high volume product I'd consider buying a T3.2 or T4.1 instead. Price difference equates to about 5min engineering time.
    If you need to stick with a LC, first thing I'd look...
  29. Replies
    3
    Views
    153

    Did you try this library...

    Did you try this library https://github.com/mjs513/Teensy-4.x-Quad-Encoder-Library from mjs513? It uses hardware timers which should be more immune to interference from other libs.
  30. Replies
    23
    Views
    905

    Does it allow to simply paste images from the...

    Does it allow to simply paste images from the clipboard (e.g. screenshots) to posts like in GitHub?
  31. Yes, I did TeensySharp ...

    Yes, I did TeensySharp some years ago when I was tired of looking in the device manager at which port my various teensies are connected today... It also contains an uploader class which comes in...
  32. Communicating with a PC via Usb Serial is quite...

    Communicating with a PC via Usb Serial is quite simple. You don't need any HID stuff or low level USB communication. Just open the virtual serial port and write / read from it. How to open a serial...
  33. Thread: TeensyTimerTool

    by luni
    Replies
    212
    Views
    8,473

    @Manu, great you gave VisualTeensy a try. ...

    @Manu, great you gave VisualTeensy a try.

    Quick answer:
    If you want to get the same behaviour as you get with the Arduino IDE you can set the underlying build system to "Arduino Builder" with a...
  34. Replies
    8
    Views
    216

    Did you try TyCommander...

    Did you try TyCommander (https://github.com/Koromix/tytools)? Its main purpose is to provide a more versatile uploader for Teensy. But, it also includes a serial monitor which works with the SerEmu...
  35. Yes I'm the author, glad you like it. It is a...

    Yes I'm the author, glad you like it. It is a standard c#/wpf app, nothing special at all from the coding point of view.



    Agreed, the Arduino IDE is great for beginners allowing them to setup...
  36. Perfect, have fun with VisualTeensy and let me...

    Perfect, have fun with VisualTeensy and let me know if something doesn't work as expected.
  37. Fair point. Good thing is that there is no hidden...

    Fair point. Good thing is that there is no hidden stuff or extensions installed by VisualTeensy which basically makes you independent of third party software.


    I don't quite understand? This...
  38. Thread: TeensyTimerTool

    by luni
    Replies
    212
    Views
    8,473

    In principle yes. The library can't know which...

    In principle yes. The library can't know which parameters users need... But you can easily work around that. Here some options:

    1) Introducing relay functions and attach them to the timer:


    ...
  39. The HID usage and usage page are defined in the...

    The HID usage and usage page are defined in the HID descriptor. You are looking at the device descriptor.


    Capability is a completely different story and has nothing to to with HID usage pages....
  40. In non bootloader mode the bcdDevice identifies...

    In non bootloader mode the bcdDevice identifies the board type. See here for a list: ...
  41. Starting the bootloader is quite simple. You'd...

    Starting the bootloader is quite simple. You'd just send some magic bytes to the feature report of the serEmu interface which will restart the Teensy in bootloader mode. In bootloader mode the Teensy...
  42. The VSC menu is named a bit unusual. You'd not...

    The VSC menu is named a bit unusual. You'd not use the Run menu but the Terminal menu. So, Terminal | Run Build Task | Upload (XXX) where XXX is the uploader you prefer. (Teensy.exe, TyCommander...
  43. webHID feasibility experiments

    I did a few feasibility experiments with the webHID interface of chrome. This interface allows a web page to communicate with a Teensy over its HID interface. Since firmware uploading is also done...
  44. Thread: TeensyTimerTool

    by luni
    Replies
    212
    Views
    8,473

    Thanks a lot Kurt! I didn't want to create this...

    Thanks a lot Kurt! I didn't want to create this PR since I can only check if the change compiles but have no means of testing the functionality.
  45. Replies
    6
    Views
    234

    You can use bin2hex which should be available for...

    You can use bin2hex which should be available for all OS. (e.g. https://tomeko.net/online_tools/file_to_hex.php?lang=en)

    This will generate an ascii file (lets call it data.hex) containing the...
  46. Thread: TeensyTimerTool

    by luni
    Replies
    212
    Views
    8,473

    Good, maybe the maintainers of the ILI lib are...

    Good, maybe the maintainers of the ILI lib are willing to fix the issue. On the other hand, the workaround is quite simple...



    No, this is to be expected. The FTMs are 16bit timers and, at...
  47. Replies
    7
    Views
    205

    Does ResponsiveAnalogRead ...

    Does ResponsiveAnalogRead https://github.com/dxinteractive/ResponsiveAnalogRead help?
  48. I'm using exponential smoothing quite often. It...

    I'm using exponential smoothing quite often. It is very convenient to smooth values on the fly without the need for a buffer. The version you are using seems to be some integer optimized version of...
  49. Thread: TeensyTimerTool

    by luni
    Replies
    212
    Views
    8,473

    I opened a corresponding issue in the ILI9341_t3...

    I opened a corresponding issue in the ILI9341_t3 repo https://github.com/PaulStoffregen/ILI9341_t3/issues/62
  50. Thread: TeensyTimerTool

    by luni
    Replies
    212
    Views
    8,473

    It looks like ILI9341_t3 defines a macro "swap"...

    It looks like ILI9341_t3 defines a macro "swap" which clashes with standard c++ headers (<functional> in this case). You can work around by including the ILI9341_t3.h after TeensyTimerTool.h. I can...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4