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

Search:

Type: Posts; User: DrM

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. Replies
    516
    Views
    371,091

    @frankzappa Well that is interesting indeed. ...

    @frankzappa

    Well that is interesting indeed. So the ADC's are configured identically (averaging, speed, amplifier, etc)?

    The engineers at NXP are pretty knowledgeable, it would be a big...
  2. Replies
    516
    Views
    371,091

    @frankzappa As I recall, on the Teensy 3.2...

    @frankzappa

    As I recall, on the Teensy 3.2 those channel combinations use the same ADC in one case, and different ADC's in the other.

    I notice you have the ADC's set for different speeds. ...
  3. Thread: Rawhid

    by DrM
    Replies
    14
    Views
    397

    @luni and @PaulStoffregen, I just posted a...

    @luni and @PaulStoffregen, I just posted a minimum code using only PyUSB to talk to a RAWHID Teensy.

    See https://forum.pjrc.com/threads/67561-RAWHID-and-PyUSB
  4. Thread: RAWHID and PyUSB

    by DrM
    Replies
    0
    Views
    87

    RAWHID and PyUSB

    Here is a simple Python program using only PyUSB to talk to a Teensy running RAWHID


    #!/usr/bin/python

    import usb.core
    import usb.util

    dev = usb.core.find(idVendor=0x16C0,...
  5. Thread: Rawhid

    by DrM
    Replies
    14
    Views
    397

    I started a new thread with the zip, ...

    I started a new thread with the zip,

    https://forum.pjrc.com/threads/67520-RAWHID-demonstration-program


    Do you prefer it be posted here?

    (I hesitate to duplicate the posting, but either...
  6. Replies
    0
    Views
    88

    RAWHID demonstration program

    Attached is a "sketch" and python program to demonstrate use of the RAWHID.

    The sketch demonstrates data transfers in both directions and simple command processing. The python side includes an...
  7. Thread: Rawhid

    by DrM
    Replies
    14
    Views
    397

    @luni, @paul Okay, I have an example RAWHID...

    @luni, @paul

    Okay, I have an example RAWHID and Python class and program to demonstrate how to configure and communicate with the RAWHID.

    How or where should I upload it?
  8. Replies
    3
    Views
    133

    That's wonderful. Thank you.

    That's wonderful. Thank you.
  9. Thread: Rawhid

    by DrM
    Replies
    14
    Views
    397

    I rewrote the firmware a little, and wrote a...

    I rewrote the firmware a little, and wrote a Python Class to talk to it. I can send them if you like and you can see if you want to use them. I've moved on now to using it in an application so I...
  10. Replies
    3
    Views
    133

    RAWHID custom device identifier

    The goal of this question is to find the Teensy boards that are communiticating over RAWHID and programmed to run a particular application.

    For example, one Teensy might be programmed to act as a...
  11. Thread: Rawhid

    by DrM
    Replies
    14
    Views
    397

    I have it, the python api, it is called HIDAPI. ...

    I have it, the python api, it is called HIDAPI. I have other issues with it now. It returns ints rather than bytes despite the representations of the documentation.
  12. Thread: Rawhid

    by DrM
    Replies
    14
    Views
    397

    The usage_page and usage are both 0 for both...

    The usage_page and usage are both 0 for both interfaces. Here is a code snippet:



    import hid

    for h in hid.enumerate(vendor_id = 0x16c0):
    print(...
  13. Thread: Rawhid

    by DrM
    Replies
    14
    Views
    397

    @luni Thank you, that is very helpful,...

    @luni

    Thank you, that is very helpful, especially the link to the code.

    Instead of HID, and the HID API, can I just write and read to and from the endpoints?

    There is a usblib and PyUSB...
  14. Thread: Rawhid

    by DrM
    Replies
    14
    Views
    397

    Rawhid

    Hi,

    Running the USB RAWHID example in a Teensy 3.2, and python hidapi library, hid,enumerate() returns two device interfaces,

    The packets seem to appear on both, even if open at the same...
  15. Replies
    0
    Views
    98

    RAWHID example, and Python

    Is there a python program to go with the RAWHID example?

    The python program mentioned at https://www.pjrc.com/teensy/rawhid.html, is out of date and seems not compatible with python's native hid...
  16. Thread: Command Line Build

    by DrM
    Replies
    28
    Views
    2,303

    What? Read the document? Actually, i...

    What? Read the document?

    Actually, i didn't notice the link. I'll take a look at it. Thank you
  17. Thread: Command Line Build

    by DrM
    Replies
    28
    Views
    2,303

    @luni You have these lines in your make file. ...

    @luni

    You have these lines in your make file. I am wondering how they would translate to my project, or if they are needed.


    BUILD_PATH :=...
  18. Thread: Command Line Build

    by DrM
    Replies
    28
    Views
    2,303

    @KurtE that sounds like a simple approach, I was...

    @KurtE that sounds like a simple approach, I was thinking along those lines, but did not find the switch for verbose in the gui.

    @luni that seems very interesting. Are build_path and...
  19. Thread: Command Line Build

    by DrM
    Replies
    28
    Views
    2,303

    A possible solution, command line arduino

    I found a possible answer, here

    https://forum.arduino.cc/index.php?topic=713456.0

    The following command seems to work, in so far as uploading or verifying,


    # arduino --pref...
  20. Thread: Command Line Build

    by DrM
    Replies
    28
    Views
    2,303

    Has anybody tried this: ...

    Has anybody tried this:

    https://github.com/sudar/Arduino-Makefile


    It has a Teensy.mk
  21. Thread: Command Line Build

    by DrM
    Replies
    28
    Views
    2,303

    Hi Paul, I thought I replied earlier but perhaps...

    Hi Paul, I thought I replied earlier but perhaps I forgot to click post. So apologies if this is a repeat.

    Is there a makefile that I could crib from? My includes are ADC.h, EEPROM.h and...
  22. Thread: Command Line Build

    by DrM
    Replies
    28
    Views
    2,303

    Good, thank you, presumably you meant teensy3, in...

    Good, thank you, presumably you meant teensy3, in any case I found it.

    It looks like it is setup for .c files and no obvious reference to the .ino files created by the ide.

    What needs to be...
  23. Thread: Command Line Build

    by DrM
    Replies
    28
    Views
    2,303

    I do indeed know how to read make files. I...

    I do indeed know how to read make files.

    I still don't know where this one is to be found.

    And sometimes makefiles are so complicated that it takes a long time to decipher what a particular...
  24. Thread: Command Line Build

    by DrM
    Replies
    28
    Views
    2,303

    @WMXZ Sounds great. Where is it in the tree? ...

    @WMXZ Sounds great. Where is it in the tree? And, how do I use it?

    Do I just copy it into the directory with the .ino file, or do I need to edit the makefile?

    And how do I pass the switch...
  25. Thread: Command Line Build

    by DrM
    Replies
    28
    Views
    2,303

    @blackketter I am sorry, that is not a good...

    @blackketter I am sorry, that is not a good answer for me. I do not want to install more clutter, and I have no use or interest, none whatsoever, in a "a professional collaborative platform of...
  26. Thread: Command Line Build

    by DrM
    Replies
    28
    Views
    2,303

    Command Line Build

    Is there a way to automatically create (or dump) a makefile to build a sketch from the command line, in linux?

    And within the IDE, is there a way to set a macro definition, i.e. like #define in...
  27. Communication over USB fails with additoinal teensy board connected

    I am bulding an experiment that involves three teensy boards. Two act as spectrometers, and the third acts as an analog i/o and produces a trigger that goes to the two spectrometers. The system is...
  28. Replies
    516
    Views
    371,091

    Hi, nice work. 1) What setup is needed before...

    Hi, nice work.

    1) What setup is needed before calling the fast read function?

    2) Can analogSyncRead() be called from an ISR?

    I notice it appears to disable and enable interrupts. Is...
  29. Replies
    516
    Views
    371,091

    Sorry, I meant to post that on the thread for the...

    Sorry, I meant to post that on the thread for the adc library
  30. Replies
    516
    Views
    371,091

    Very nice work Can analogSyncRead() be called...

    Very nice work

    Can analogSyncRead() be called from an ISR? For example, can it be used in a function that was launched by the timer ?

    Thank you
  31. Replies
    1
    Views
    381

    The problem turns out to be a too small buffer in...

    The problem turns out to be a too small buffer in the Windows USB serial driver.

    The solution is simply to read the input from the teensy faster, and buffer it up manually.
  32. Replies
    1
    Views
    381

    USB Serial Communication problems in Windows

    On a windows 10 computer, using python with pyserial to read output from a Teensy 3.2.

    The Teensy program generates about 4,000 lines of output, but on the desktop, it stops getting input at...
  33. Thread: ADC and DMA

    by DrM
    Replies
    2
    Views
    300

    Thank you, will look for them.

    Thank you, will look for them.
  34. Thread: ADC and DMA

    by DrM
    Replies
    2
    Views
    300

    ADC and DMA

    Are there example codes using DMA to transfer from the ADC, preferably in a Teensy 3.1/2?

    And could someone please point me to the relevant documentation?

    Thank you
  35. Replies
    11
    Views
    790

    That sounds really helpful, both parts; update to...

    That sounds really helpful, both parts; update to current version and use an external editor. I did not realize 1.8.10 was out of date, it seems like not so long ago that I installed it.

    So,...
  36. Replies
    11
    Views
    790

    Yes, I thought it might be the usb flooding the...

    Yes, I thought it might be the usb flooding the serial monitor tool launched by the IDE, and then perhaps crashing the desktop. But it did disconnect spontaneously a few times along the way.
    ...
  37. Replies
    11
    Views
    790

    The PC in this case is not unstable, it has never...

    The PC in this case is not unstable, it has never crashed under any other circumstances. It was very clear at the time that it was the ide and its interaction with the teensy that did it.

    The...
  38. Replies
    11
    Views
    790

    Of course it did save the file when it last...

    Of course it did save the file when it last compiled, and then when it crashed, it overwrote that file up to line #whatever, and that is what I had after the machine rebooted.

    It did not run out...
  39. Replies
    11
    Views
    790

    IDE crashed, source code file corrupted

    While working in the teensy/arduino IDE 1.8.10, in fedora 31, the system first complained that it could not find the teensy device, and then locked the host OS.

    After rebooting, the ino file is...
  40. Replies
    19
    Views
    1,273

    I did think about the Teensy4. The analog...

    I did think about the Teensy4. The analog input needs to go at 250kS/s, synchronized at a certain phase relative to the first output signal which runs at 1MHz. The other two digital outputs also...
  41. Replies
    19
    Views
    1,273

    @Pilot DMA sounds interesting, it would surely...

    @Pilot DMA sounds interesting, it would surely be robust. Can it handle digital output on three pins simultaneously with analog input on a fourth?
  42. Replies
    19
    Views
    1,273

    That's okay, that is certainly the idea. The...

    That's okay, that is certainly the idea. The small difference of course is unavoidable anyway, unless you have hardware that lets you write multiple pins in one register. Fortunately for this...
  43. Replies
    19
    Views
    1,273

    @defragster Thank you. That looks great. ...

    @defragster Thank you. That looks great. And yes that is the task at hand. In response to a command received through Serial,read(), I need to run three waveforms and read the adc at fixed...
  44. Replies
    19
    Views
    1,273

    Hmm, yes they are different timers. I...

    Hmm, yes they are different timers. I understood that to mean that the all of the pins on one timer have to output the same frequency. I should perhaps try setting frequencies individually...
  45. Replies
    19
    Views
    1,273

    Anyway ... I've dug into the code a bit, I...

    Anyway ... I've dug into the code a bit, I wanted to see how analogwrite does it, and it seems like the answer is that it does it in hardware.

    Experimenting with the interval timer, and the pwm,...
  46. Replies
    19
    Views
    1,273

    "Perhaps editing kinetis.h to be just :: #include...

    "Perhaps editing kinetis.h to be just :: #include "my_kinetis.h""

    I was hoping for something like a path or environment variable that I could set per project. Editing the working source tree for...
  47. Replies
    19
    Views
    1,273

    Thank you, Can a project have a private...

    Thank you, Can a project have a private version of kinetis.h? How?
  48. Replies
    19
    Views
    1,273

    Timer interrupts > 1MHz ?

    Is there a way to reliably run a routine at 0.5 usec intervals on a Teensy 3.2?

    Can the IntervalTimer be configured to run at 2MHz (or faster)? How?

    I want to generate a set of synchronized...
  49. Replies
    22
    Views
    6,326

    Hi Reim, I have your configuration and code...

    Hi Reim,

    I have your configuration and code running. But I am not quite sure how it is supposed to work.

    For example, the commands 't' and 'T' seem to decrement or increment t_int and then...
  50. Replies
    30
    Views
    10,140

    Hi, it is a SMT design. So you have to have the...

    Hi, it is a SMT design. So you have to have the actual board. I am interested to make some more if there are a few people to help dilute the assembly costs.
Results 1 to 50 of 137
Page 1 of 3 1 2 3