Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
DrM's Activity
About Me
Tab Content
  • DrM's Avatar
    07-21-2021, 01:32 PM
    @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 surprise if the two...
    516 replies | 372972 view(s)
  • DrM's Avatar
    07-21-2021, 11:49 AM
    @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. The faster setting on...
    516 replies | 372972 view(s)
  • DrM's Avatar
    06-24-2021, 09:10 PM
    DrM replied to a thread Rawhid in Technical Support & Questions
    @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
    14 replies | 474 view(s)
  • DrM's Avatar
    06-24-2021, 09:06 PM
    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, idProduct=0x0486) try:
    0 replies | 93 view(s)
  • DrM's Avatar
    06-20-2021, 05:00 PM
    DrM replied to a thread Rawhid in Technical Support & Questions
    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 is okay with me).
    14 replies | 474 view(s)
  • DrM's Avatar
    06-20-2021, 04:54 PM
    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 optional queue, using...
    0 replies | 90 view(s)
  • DrM's Avatar
    06-18-2021, 06:58 PM
    DrM replied to a thread Rawhid in Technical Support & Questions
    @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?
    14 replies | 474 view(s)
  • DrM's Avatar
    06-18-2021, 03:09 PM
    That's wonderful. Thank you.
    3 replies | 150 view(s)
  • DrM's Avatar
    06-18-2021, 03:07 PM
    DrM replied to a thread Rawhid in Technical Support & Questions
    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 will need to revisit...
    14 replies | 474 view(s)
  • DrM's Avatar
    06-18-2021, 02:24 AM
    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 spectrometer (with a...
    3 replies | 150 view(s)
  • DrM's Avatar
    06-17-2021, 02:44 PM
    DrM replied to a thread Rawhid in Technical Support & Questions
    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.
    14 replies | 474 view(s)
  • DrM's Avatar
    06-17-2021, 02:23 PM
    DrM replied to a thread Rawhid in Technical Support & Questions
    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( '\n**********************\nhid device' ) ...
    14 replies | 474 view(s)
  • DrM's Avatar
    06-17-2021, 12:46 PM
    DrM replied to a thread Rawhid in Technical Support & Questions
    @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 that works at that...
    14 replies | 474 view(s)
  • DrM's Avatar
    06-17-2021, 12:29 AM
    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 time. Why are there...
    14 replies | 474 view(s)
  • DrM's Avatar
    06-15-2021, 04:01 PM
    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 support. Thank you
    0 replies | 105 view(s)
No More Results
About DrM

Basic Information

About DrM
Biography:
Doctorate in Chemistry and Physics, former faculty in Materials Science at a big ten school, scientist in x-ray diffraction, spectroscopy and instrumentation at a National Lab. Currently working on lasing, lighting and quantum information applications in organic semiconductors.
Location:
Eastern Time, USA
Interests:
Quantum optics, acoustics, jazz guitar, acoustic bass, flying, ice hockey, surfing
Occupation:
Scientist, engineer

Statistics


Total Posts
Total Posts
133
Posts Per Day
0.11
Last Post
ADC library, with support for Teensy 4, 3.x, and LC 07-21-2021 01:32 PM
General Information
Last Activity
07-21-2021 01:34 PM
Join Date
04-26-2018