Forum Rule: Always post complete source code & details to reproduce any issue!
Tab Content
  • KurtE's Avatar
    Today, 01:10 AM
    I have a hacked up version of blink I use to test IO pins. It starts off blinking pin 13. You can then enter a pin number in serial port to start blinking that pin instead. If that pin is not pin 13 it switches pin...
    20 replies | 312 view(s)
  • KurtE's Avatar
    Yesterday, 09:22 PM
    Hope you did not get too much damage! I have a version of the code where I did not use malloc (was experimenting with DMAMEM...) but I don't think I ever pushed that version up. My feeling is that I do not want...
    93 replies | 15526 view(s)
  • KurtE's Avatar
    Yesterday, 08:06 PM
    I was going to suggest (and or do), maybe add the event responder code only after the first millis object is used...
    74 replies | 14186 view(s)
  • KurtE's Avatar
    Yesterday, 08:04 PM
    Yep - They are two different hardware serial ports. So you are free to use them any which way you want to...
    8 replies | 99 view(s)
  • KurtE's Avatar
    Yesterday, 06:52 PM
    Try Serial1.begin(9600); serial1.println("Test"); I am guessing that Serial is going to the USB serial port not to the hardware pins
    8 replies | 99 view(s)
  • KurtE's Avatar
    Yesterday, 02:54 PM
    Might help to see actual hookup and the actual code you are running. Warning I do not have a 2+, but have all the others... If it is using Serial communications, is it not on pins D2/D3 as RX/TX? Also is your test...
    8 replies | 99 view(s)
  • KurtE's Avatar
    Yesterday, 01:43 PM
    You can also play around using the new EventResponder code and setup MillisTimer With this you can have an EventResponder object, which you set a callback function to. Probably easiest to look at some of Paul's...
    7 replies | 120 view(s)
  • KurtE's Avatar
    09-18-2017, 09:25 PM
    Paul and Others: Update: I have a WIP version up in the branch: https://github.com/KurtE/USBHost_t36/tree/HID-Device-API-Additions Right now I have three new APIS to query the product name, manufacturer name and...
    83 replies | 2688 view(s)
  • KurtE's Avatar
    09-17-2017, 05:27 PM
    I am thinking out loud, that maybe the default systick timer code should be in a core place. Maybe only if someone uses the event code and sets the first event that uses call on yield, should it either replace the...
    13 replies | 303 view(s)
  • KurtE's Avatar
    09-17-2017, 02:11 PM
    Yep - I think the whole truth is, that the yield code called runfromYield... So the event responder code was brought in. The actual code that is really needed was the systick timer ISR, which counted millis... Which...
    13 replies | 303 view(s)
  • KurtE's Avatar
    09-17-2017, 12:48 PM
    Yes - the system appears to depend on runFromYield() being called. #include "EventResponder.h" int led = 13; void setup() { // initialize the digital pin as an output. pinMode(led,...
    13 replies | 303 view(s)
  • KurtE's Avatar
    09-16-2017, 10:33 PM
    Paul (and others), More questions about maybe API's(methods) for the USB Host code. As you mentioned earlier and in code. There are cases, where I may want to print out the Vendor name, or product name or Serial #....
    83 replies | 2688 view(s)
  • KurtE's Avatar
    09-15-2017, 03:27 PM
    Not sure if I should post it here or in another thread about USB Keyboards... I drug out a Dell USB keyboard, from maybe 2 or 3 computers ago that is not working with the USB Host code. What is different about this...
    83 replies | 2688 view(s)
  • KurtE's Avatar
    09-15-2017, 01:16 PM
    Quick update: I added some of the stuff mentioned above. That is added query for available() to both top level devices and HID devices. Likewise added query to got vendor ID and product ID. And started doing...
    83 replies | 2688 view(s)
  • KurtE's Avatar
    09-15-2017, 12:31 PM
    Maybe both ;) - That is maybe have maybe the top 10 FAQs - Some of these might be generic, like I am having problems installing. Maybe have a few of the top answers local and then have a link to some place else (could...
    10 replies | 321 view(s)
  • KurtE's Avatar
    09-15-2017, 02:02 AM
    Sort of #1 and #2, but programming a new teensy... my teensy does not show up. Installation questions,like Setup could not write a file: maybe virus detector Teensyduino wont run on Linux - need to mark executable...
    10 replies | 321 view(s)
  • KurtE's Avatar
    09-14-2017, 07:10 PM
    Thanks Paul, I assumed also that things like connected should be done at the base class, which is why mentioned HID vs non-HID as the non-Hid did not inherit from the base class. Again was thinking these methods...
    83 replies | 2688 view(s)
  • KurtE's Avatar
    09-14-2017, 03:35 PM
    @Paul (and others) I am thinking of adding a few new methods to some of these classes. For example I might want to know when there is a device connected, like do I have a mouse connected, or joystick or keyboard... ...
    83 replies | 2688 view(s)
  • KurtE's Avatar
    09-14-2017, 01:03 AM
    Back to playing a little with PS3, to see how the data is being overwritten for Right joystick. It has to do with this section: Usage Page (Desktop), ; Generic desktop controls (01h) Report...
    83 replies | 2688 view(s)
  • KurtE's Avatar
    09-13-2017, 01:28 PM
    @Paul - Speed - I am not sure, I have only used them to run test app... I may try some other tests soon... I probably won't get much done today, but will continue. With my Rabbit hole version - I only made one...
    83 replies | 2688 view(s)
  • KurtE's Avatar
    09-12-2017, 10:33 PM
    Sounds good, I created a pull request. Will look into some of the other issues I mentioned...
    83 replies | 2688 view(s)
  • KurtE's Avatar
    09-12-2017, 02:08 PM
    Quick update: I pushed up a version of the code: https://github.com/KurtE/USBHost_t36/tree/joystick-testing That increased HID report size to 512, Plus increased the Joystick Axes count to 10 for HAT 0x10039...
    83 replies | 2688 view(s)
  • KurtE's Avatar
    09-12-2017, 01:21 PM
    Thanks, I synced up and the PS4 does not work as per the previous posting. Changed descriptor to 512 instead of 256 made it work. I tried a couple of hacks to see if you could make it work when the descriptor...
    83 replies | 2688 view(s)
  • KurtE's Avatar
    09-12-2017, 12:51 AM
    Hi Paul, I hacked up a Joystick class and saw that you had the PS3 reporting :D So I am getting output from it... Can Upload a version if you like, but my guess is you already have one. The PS4 controller was...
    83 replies | 2688 view(s)
  • KurtE's Avatar
    09-11-2017, 07:29 PM
    If I have time, if you don't beat me to it, will hack up my earlier one and test out the PS4, which worked fine earlier. If I am reading the code correctly, you are interpreting the HID descriptor with each packet...
    83 replies | 2688 view(s)
  • KurtE's Avatar
    09-11-2017, 07:09 PM
    I will try looking again... Also wonder about looking also at the Usb_host_shield_2.0 code base: https://github.com/felis/USB_Host_Shield_2.0 I do see they have PS3 modules Just updated to your checked in...
    83 replies | 2688 view(s)
  • KurtE's Avatar
    09-11-2017, 03:22 PM
    Same idea... Before current stuff I generated my SPIN library to allow me to do it. That is give a common class for each SPI object. With current stuff, all are instances for the SPIClass, so the changes are like...
    10 replies | 200 view(s)
  • KurtE's Avatar
    09-11-2017, 03:20 PM
    Note: please use the code tags # as it makes code easier to read... if (dataNew < 250) { if(dataPrev !=dataNew) { tft.setCursor(0,100); tft.setTextSize(10); tft.setTextColor(ILI9341_WHITE); ...
    4 replies | 144 view(s)
  • KurtE's Avatar
    09-11-2017, 02:59 PM
    I think it would be great to get as many libraries adapted to allow you to pass in which Wire or which SPI as with our current stuff, this also should work with several of the Arduino ARM boards like Due or M0... Which...
    10 replies | 200 view(s)
  • KurtE's Avatar
    09-11-2017, 02:24 PM
    Looks like the Wacom table is now working :D
    83 replies | 2688 view(s)
  • KurtE's Avatar
    09-11-2017, 02:12 PM
    Hi Gony, Will try to quick answer as I need to get back to playing (plus feed dogs) :D For 90+ percent of code, you don't need to know anything about the pin mappings. You simply use the Arduino pin numbers and...
    7 replies | 274 view(s)
  • KurtE's Avatar
    09-11-2017, 01:26 PM
    So yes, using EasyTransferI2C example, your code would have: #include <EasyTransferI2C.h> EasytransferI2C myTransfer; void setup() { ... myTransfer.begin(&Wire2);
    10 replies | 200 view(s)
  • KurtE's Avatar
    09-11-2017, 01:19 PM
    Sorry, I have not gone through your code in detail and am not sure what all of the issues are you are trying to solve, but will try to give a few hints to hopefully help you fix it. If you are running on a Teensy...
    4 replies | 144 view(s)
  • KurtE's Avatar
    09-11-2017, 12:46 PM
    What I would do is pass either pass the pointer or reference to the object on the constructor or on some other method, like a logical begin method. I know I did that earlier when I was experimenting with with some...
    10 replies | 200 view(s)
  • KurtE's Avatar
    09-10-2017, 08:52 PM
    Paul, You might also simply look at plugging in a teensy configured as both Keyboard, Mouse and Joystick, I think I am seeing the same hang: USB Host Testing sizeof Device = 32 sizeof Pipe = 96 sizeof...
    83 replies | 2688 view(s)
  • KurtE's Avatar
    09-10-2017, 08:19 PM
    I am not sure if they are still made? I see used ones up there: https://www.amazon.com/Wacom-CTH661-Bamboo-Fun-Tablet/dp/B002OOWC4C/ref=sr_1_1?ie=UTF8&qid=1505074445&sr=8-1&keywords=wacom+bamboo+fun Looks like...
    83 replies | 2688 view(s)
  • KurtE's Avatar
    09-10-2017, 02:50 PM
    Wacom Bambo: Debug info: USB Host Testing sizeof Device = 32 sizeof Pipe = 96 sizeof Transfer = 64 power up USBHS PHY ISR: 408C Port Change
    83 replies | 2688 view(s)
  • KurtE's Avatar
    09-10-2017, 02:44 PM
    I am not sure if this will help or not, but will take a stab: All of the IO pins on the Teensy (and most processors) are grouped together into different ports. On the Teensy each of these ports can have up to 32...
    7 replies | 274 view(s)
  • KurtE's Avatar
    09-10-2017, 02:13 PM
    Great, I just synced up. Now trying with my mice, let me know if you want more details on each device... I think I have most of the information in previous posts. Belkin wired - Appears to work Dell wired -...
    83 replies | 2688 view(s)
  • KurtE's Avatar
    09-10-2017, 01:15 PM
    You are hitting lots of terms and lots of different things. With many things like this it might help to know what code you are looking at, to help know what to try to explain... GPIOD_PDOR - is the IO register...
    7 replies | 274 view(s)
  • KurtE's Avatar
    09-10-2017, 12:37 AM
    Do you have a test app with the current stuff? Will tryout the different stuff I have. Also trying to figure out XBox one, but I am still learning stuff, like how to send it a command... I believe you need to...
    83 replies | 2688 view(s)
  • KurtE's Avatar
    09-09-2017, 07:27 PM
    Sounds great! Will look for it later today, to see what all you have done. The HID stuff is interesting. It will be fun to see how to use it, especially with some different devices. Example the Watcom...
    83 replies | 2688 view(s)
  • KurtE's Avatar
    09-09-2017, 03:23 PM
    I have not used that one by Tall Dog, I used a couple of his DIP ones https://www.tindie.com/products/loglow/teensy-3536-breakout-revision-a-dip-64/ Which worked nicely for prototyping... But does not have the...
    13 replies | 411 view(s)
  • KurtE's Avatar
    09-09-2017, 01:27 PM
    Sorry, I did not mean to confuse things. If you are asking about what I meant by Pins in different Modes... Almost every IO pin is setup on processor to be able to do different things, depending on how the Pin is...
    22 replies | 677 view(s)
  • KurtE's Avatar
    09-08-2017, 10:45 PM
    Yep - I forked his library, in order to make some changes and make Pull Requests.... It malloc's the memory as the library can be and, and is most often used without using the frame buffer, especially on everything...
    93 replies | 15526 view(s)
  • KurtE's Avatar
    09-08-2017, 06:21 PM
    yep - As mentioned elsewhere, the PJRC web pages are in serious need of updates! Hopefully they will get to it at some point... (Hopefully soon) In the old days probably back to Teensy 1.0 and possibly 2.0 you...
    6 replies | 239 view(s)
  • KurtE's Avatar
    09-08-2017, 05:56 PM
    If you are using the SD port on the Teensy 3.5 or 3.6 it does not use SPI, it has it's own hardware support, which is hopefully faster. If you look at any of the example programs you should see things like this in...
    22 replies | 677 view(s)
  • KurtE's Avatar
    09-08-2017, 04:31 PM
    There is probably two parts to this. Example code to run on the Teensy... You should look at the Teensyduino install. If you have not already done so, you should install the latest Arduino and the latest version of...
    13 replies | 411 view(s)
  • KurtE's Avatar
    09-08-2017, 03:54 PM
    Found another device to test out. I have a Watcom Bamboo fun tablet. Mouse descriptor: : 09 04 00 00 01 03 01 02 00 09 21 00 01 00 01 22 B0 00 07 05 81 03 09 00 04 09 04 01 00 01 03 00 00 00 09 21 00 01 00 01 22...
    83 replies | 2688 view(s)
  • KurtE's Avatar
    09-08-2017, 03:04 PM
    As for Raw Hid: you might take a look at the page: https://www.pjrc.com/teensy/rawhid.html Yes you can typically reprogram the Teensy through USB without having access to it. (After it has been programmed before). ...
    13 replies | 411 view(s)
  • KurtE's Avatar
    09-08-2017, 02:42 PM
    Looks good, I have a few of the same ones as I mentioned throughout the thread. Also have for example Sony DualShock 4: 001:006:000:DESCRIPTOR 1504880944.787596 05 01 09 05 A1 01 85 01 09 30 09 31 09 32 09...
    83 replies | 2688 view(s)
  • KurtE's Avatar
    09-08-2017, 01:35 PM
    As Frank mentioned, I am not sure what that has to do with Teensy or Arduino in general? As you mentioned, the Winavr you installed is from 2010 and there have not been any updates since then. If you need an...
    6 replies | 239 view(s)
  • KurtE's Avatar
    09-08-2017, 12:59 AM
    For the most part with normal apps using standard SPI (which is using SPI as the master) library you can use any digital pin as a chip select pin. You simply need to set the pin to be digital and typically set it...
    22 replies | 677 view(s)
  • KurtE's Avatar
    09-07-2017, 02:53 PM
    Sounds good... Note: the joystick parse code is probably in better state than the mouse one currently... Also I punted so far on things like multiple reports, I assume first one. And not really sure how to properly...
    83 replies | 2688 view(s)
  • KurtE's Avatar
    09-07-2017, 02:34 PM
    From your other threads, it sounds like you are wanting to program in embeded C... So the first question would be what compiler are you using? Does it already have header files these processors? Personally unless...
    21 replies | 2220 view(s)
  • KurtE's Avatar
    09-07-2017, 01:44 PM
    Glad you have it working!
    11 replies | 2423 view(s)
  • KurtE's Avatar
    09-07-2017, 01:41 PM
    My guess is you could probably make your own version of the library that works similar to instumentk did, probably without needing any hardware changes, especially if you only need to only detect one button at a time. ...
    5 replies | 194 view(s)
  • KurtE's Avatar
    09-06-2017, 10:25 PM
    As Frank mentioned, SPI is simply a mechanism to transfer data. That is all that is really defined is, when you do something like: x = SPI.transfer(y); Since you are using the SPI library it is assumed you are the...
    22 replies | 677 view(s)
  • KurtE's Avatar
    09-06-2017, 08:42 PM
    Thanks Paul, I think I have been slowly converging over to a common driver for Joystick and Mouse and ???. I already figured and sort of mentioned, that I thought the two drivers (Mouse and Joystick) could converge...
    83 replies | 2688 view(s)
  • KurtE's Avatar
    09-06-2017, 05:04 PM
    Yep - Although there are boards sort of similar to at lesaat the Joule. I know that for example: Trossen Robotics with their newer Turtlebot 2i robot, they went from using the Joule to using a NUC (Intel board) ...
    11 replies | 3436 view(s)
  • KurtE's Avatar
    09-06-2017, 04:57 PM
    This morning for the fun of it I tried plugging in an XBOX one controller into my USB Host to see if the USB Joystick hid code would work... Turns out the XBox one is not a HID setup... So currently the joystick...
    83 replies | 2688 view(s)
  • KurtE's Avatar
    09-06-2017, 12:58 AM
    I don't, but played with an updated version using my spin library and I know a few users tried it in the thread https://forum.pjrc.com/threads/40252-Teensy-3-6-with-RA8875-TFT?p=125295&viewfull=1#post125295 Also in...
    8 replies | 755 view(s)
  • KurtE's Avatar
    09-06-2017, 12:17 AM
    Depends on what you are talking to. What device?
    9 replies | 2213 view(s)
  • KurtE's Avatar
    09-05-2017, 11:52 PM
    Wrong library ;) That is Frank's library, mine is ILI9341_t3n. I did borrow some of Frank's stuff, but then updated it to work in all orientations, plus merged in lots of stuff, that had Pull requests for the main...
    93 replies | 15526 view(s)
  • KurtE's Avatar
    09-05-2017, 10:11 PM
    Hi defragster... Yes I should try an xbox plugged in and see if it works... Will see about setting up other test that stores results. Right now still trying to figure out PS3... I figured out that I think I need...
    83 replies | 2688 view(s)
  • KurtE's Avatar
    09-05-2017, 06:35 PM
    Sounds good, I have installed on Windows 10 64bit, Arduino 1.8.4 and appears to work fine. Built my version of USB_Host code for Mouse and now Joystick and it builds... Run test case of ili9341_t3n library to see about...
    8 replies | 755 view(s)
  • KurtE's Avatar
    09-05-2017, 12:53 PM
    What is not working on 1 and 3? Everything or the DMA stuff? I will try to take a look later today. Update: I tried on my Flex board, with my Frame buffer output and clip test program and was able to set...
    93 replies | 15526 view(s)
  • KurtE's Avatar
    09-04-2017, 09:29 PM
    Quick update: I think I have the PS4 joystick (plugged into USB host) working pretty well. I reworked the code to extract the fields when they are off byte boundaries. Also now look for logical Min/Max values for...
    83 replies | 2688 view(s)
  • KurtE's Avatar
    09-04-2017, 09:15 PM
    Board looks nice!
    16 replies | 974 view(s)
  • KurtE's Avatar
    09-04-2017, 02:54 AM
    Warning: WIP - But playing around right now with Joystick plugged into USB.. Actually currently playing with Sony PS4 controller (DS4). I started off from my Mouse code reading in HID information and then try to...
    83 replies | 2688 view(s)
  • KurtE's Avatar
    09-03-2017, 10:03 PM
    Maybe, I am confused. If you wish to do debug messages using Serial.print... then this goes to the USB port, not to one of the hardware serial ports such as Serial1 which goes to RX1/TX1 (pins 0, 1 by default). ...
    10 replies | 363 view(s)
  • KurtE's Avatar
    09-03-2017, 12:13 AM
    Another update: I modified the claim code: first I split out the code that a driver can claim a whole device, as it's own method. Then setup the claim for Interface code to allow the code to be called multiple...
    83 replies | 2688 view(s)
  • KurtE's Avatar
    09-02-2017, 08:17 PM
    Looks good, Keep meaning to get back to playing with some form of Rover platform, and maybe get more into ROS or the like. Rover/tracked platforms, I have played with the earlier Lynxmotion Rover And their...
    6 replies | 515 view(s)
  • KurtE's Avatar
    09-02-2017, 06:32 PM
    Looking good. Which Track platform are you using?
    6 replies | 515 view(s)
  • KurtE's Avatar
    09-01-2017, 09:26 PM
    Looking through my Odroid box... Decided to reflash C1 and C2 to latest Ubunut releases, plus do all of the updates: (sudo apt-get update ... upgrade ... dist-upgrade (install new kernel...) I may have screwed up...
    30 replies | 1355 view(s)
  • KurtE's Avatar
    09-01-2017, 01:52 PM
    Runs (or more appropriately crawls) on Arduino Zero wireless. Again tested uploading blink to Teensy LC Side notes: Hard to click upload when the Teensy LC was previously programmed with USB Mouse TrangleMove...
    30 replies | 1355 view(s)
  • KurtE's Avatar
    09-01-2017, 12:43 PM
    Note: I don't do I2C very often so hopefully others will help. But one issue. Looks like you have the Arduino IO pins which I believe are +5v connected to Teensy3.6 IO pins which are 3.3V and NOT 5v tolerant, which...
    6 replies | 238 view(s)
  • KurtE's Avatar
    09-01-2017, 02:09 AM
    I downloaded Arduino 1.8.4 and this test build to Odroid XU4 and they installed properly. I already had the udev rule in place. I plugged in a Teensy LC to the board and used example Blink which worked. I then...
    30 replies | 1355 view(s)
  • KurtE's Avatar
    08-31-2017, 08:12 PM
    Thanks @tni, I read that also. So far the Keyboard and Mouse code looks at the subclass for boot device and works with that. What I am trying to figure out, is what is the more generic way (at least for...
    83 replies | 2688 view(s)
  • KurtE's Avatar
    08-31-2017, 04:05 PM
    Yes - With the last few releases of Teensyduino, the SPI class is one class with multiple instances instead of different classes. I had it working a long time on my machine and forgot to push a Pull request... ...
    9 replies | 944 view(s)
  • KurtE's Avatar
    08-31-2017, 02:48 PM
    Thanks @defragster and @tni! I am looking at trying to handle the Teensy configured as an USB mouse as a mouse to the T3.6... The first issue, is the USBHost code is not currently claiming the Mouse. This is...
    83 replies | 2688 view(s)
  • KurtE's Avatar
    08-31-2017, 02:34 PM
    I should be able to try out on a few different platforms... Like RP (but you already have that ;) I do have RPI3 so 2s sitting around some place and an zero w. Can try on Odroids: Xu4, C1... Could try C2(64 bit),...
    30 replies | 1355 view(s)
  • KurtE's Avatar
    08-31-2017, 01:11 PM
    I took a quick look through this and most of this looks like standard SPI stuff. You do need to do the pinMode and probably digitalWrite calls, like you mentioned. If I looked correctly you can set the CS pin in the...
    9 replies | 459 view(s)
  • KurtE's Avatar
    08-31-2017, 01:03 AM
    Which library? Do you have a link?
    9 replies | 459 view(s)
  • KurtE's Avatar
    08-30-2017, 11:11 PM
    Hi Paul, I went from 1.38.beta4 to 1.38 released and that is when I noticed the issue... I also then tried update to 1.39 beta1 and it happened again... So far it has not happened again since I wiped out Temp folder,...
    15 replies | 1384 view(s)
  • KurtE's Avatar
    08-30-2017, 07:20 PM
    Ran a quick test of taking one of my Raspberry pi test programs (try to talk to Dynamixel servos through other hardware like USB2AX or Teensy). I built it on an Odroid XU4, uploaded the binary to my Dev machine using...
    30 replies | 1355 view(s)
  • KurtE's Avatar
    08-30-2017, 07:14 PM
    May have to play around more with the test app. This started off as part of the zip file from @wwatson, I have not played around at all with the scaling and the like, nor initial values. I simply verified if I move...
    83 replies | 2688 view(s)
More Activity
About KurtE

Basic Information

Statistics


Total Posts
Total Posts
2,831
Posts Per Day
2.10
Last Post
serial.print won't print + general debugging issues Today 01:10 AM
General Information
Last Activity
Today 04:33 AM
Join Date
01-12-2014