Search results

  1. L

    T41 USBHost_T36 caused CRC error on an OUT packet

    I wonder what may have caused a CRC error. I was transmitting data that T41 received from PC to a device that T41 was hosting. The data was a complete packet of 512 bytes. The Beagle between T41 and device recorded 512-4*16 bytes with a wrong CRC. The Wrong CRC was 0x5a69. I calculated the...
  2. L

    T41 USBHost_T36 cause of PID sequence error?

    I have this that Beagle USB 2.0 analyzer complains as PID sequence error: What I see is that the first OUT was done properly: OUT token DATA0 packet NYET response PING ACK response OUT token DATA1 packet NYET response PING ACK response OUT token DATA0 packet NYET response Then I saw the...
  3. L

    Broken resistor on back of Teensy 4.1

    Seems like if when teensy is held in "landscape" orientation like in your photo, the ferrite is vertical while the resistor is horizontal. So which one broke? I guess you can short the ferrite pads with some short wire because the ferrite part may be hard to source. The resistor, it's gonna be...
  4. L

    Disable port in Teensy 4

    If you didn't upload some sort of sophisticated code that made the pressing of the PROG button useless, then you may have destroyed your board with whatever you were trying to get us to critique that you wanted to do. I find it hard to believe that in 2022 it's still so hard for someone asking...
  5. L

    Teensy 4.1 GPIO input voltage concern

    If everything is right, your regulator should output within specs but it's not. Touch your regulator with a finger tip. If it is warm, there' something wrong in your circuits. Unless you post enough information regarding your circuits, I suggest you follow aleglakov's recommendation and use...
  6. L

    USB signal noise

    ads1256 seems to require external reference voltage, is that correct? If so, how are you providing this voltage? Also what is your adxl accelerometer's model number? There are many accelerators starting with adxl. If it happens to be a ratiometric one, then its supply voltage will affect its...
  7. L

    Teensy 4.1 GPIO input voltage concern

    Hello, The regulator should output 3.3V, not 3.7V. How are you measuring this output voltage? Do you have a decent multimeter?
  8. L

    How to detect USB device class port is disconnected from PC?

    I'm using teensyduino 1.55. Maybe this VBUS detection is not implemented? In usb_init(): // TODO: only enable when VBUS detected // TODO: return to low power mode when VBUS removed // TODO: protect PMU access with MPU
  9. L

    How to detect USB device class port is disconnected from PC?

    I know this is not a common use case that I disconnect teensy from PC but suppose teensy is powered by a battery thus disconnecting it from PC won't shut it off. I want to know how to detect disconnection. I was looking at void usb_isr(void) in usb.c but there's no mention of disconnection or...
  10. L

    Test if SerialUSB1 is connected

    There is a missing understore: usb_cdc2_line_rtsdtr instead of usb_cdc2line_rtsdtr. With the underscore, it works like the (SerialUSB1).
  11. L

    Test if SerialUSB1 is connected

    After a bit more reading, it seems that there is this already in usb_serial.h so you can just use if(SerialUSB1) like if(Serial). operator bool() { return usb_configuration && (usb_cdc2_line_rtsdtr & USB_SERIAL_DTR) && ((uint32_t)(systick_millis_count -...
  12. L

    Test if SerialUSB1 is connected

    If I have some time I can test also. Most of my teensy software has been heavily modified for my work so I have to find a mint copy first :)
  13. L

    Test if SerialUSB1 is connected

    Hello, This is a tricky thing to do. Here is how you can use if(Serial) in the first place: operator bool() { return usb_configuration && (usb_cdc_line_rtsdtr & USB_SERIAL_DTR) && ((uint32_t)(systick_millis_count - usb_cdc_line_rtsdtr_millis) >= 15); So the gist is you need to test...
  14. L

    Teensy 4.1 pins 42-54 for micromod design

    Not only does the micromod has no PSRAM, it also didn't bring out the pins to connect to PSRAM externally. Maybe same is true for ethernet. This makes micromod quite limited.
  15. L

    Teensy 4.1 pins 42-54 for micromod design

    I'm trying to design a board with micromod teensy to include both a PSRAM and sd card slots so I'm in need for the pins that these things use, 42-52. It seems that the m.2 connector's pins 60-62-64-66-68-70 are dedicated to the sd card's 4-pin SDC/MMC interface. I can use that to connect to an...
  16. L

    Stupid question about blowing up Teensy3.2

    Write a test code to test your electronics. We don't know how the 12V may have damaged everything else. The very least, find a way for 12V to not be accidentally wired to a Teensy pin. This could involve optimizing your design, wiring and/or build process.
  17. L

    Teensy 4.1 how can you analogWrite() from 0v going up?

    Maybe use mcp4725? The chip has i2c interface and is not hard to use even without a library. Here is a link: https://www.adafruit.com/product/935
  18. L

    Box/Enclosure

    It depends on which country or continent you live in/on. Here is an enclosure company based in USA: https://www.polycase.com/ Lots of options even handheld boxes if you have drill and router to open holes for things like wire or buttons.
  19. L

    How to resolder Teensy LC USB connector?

    If the tab completely covers the pad, you have to either use a heat gun or maybe have your iron on the tab for some extended amount of time to try to melt the solder under the tab. I might add a bit of solder paste to the pad and apply heat with iron on the tab. If you don't do SMD parts, you...
  20. L

    How to resolder Teensy LC USB connector?

    I just took a look at my LC. The microUSB has two surface tabs that can be soldered by hand. First you want to check the solder pads (2 for the tabs and 5 for the connection) on the board to make sure they are all there, instead of broken off. If the pads all look good, you can start by...
  21. L

    How many teensy 4 can be connected together?

    I'm not a drummer so what I suggest may be just wrong: Say you have 5 drums. Build each like you did with the single drum. Then under the middle drum, install a hub. So two left drums wire to under the center drum, so do the two right drums. Center drum also wires to the same hub. Then this hub...
  22. L

    USBHost_t36 with Circuitpython serial device Keybow2040

    I guess there's the spec, then there's popular hosts such as windows/nix/macos, then there's device manufacturers. Here's what I have on a square ipad stand hosting a receipt printer: 10ms between setAddress and requesting 8-byte device desc. (data are 2yr old) 32ms between setAddress and...
  23. L

    USBHost_t36 with Circuitpython serial device Keybow2040

    Thanks. Yeah, a better way to add another case with some USB timer will be great but I didn't know how. Hope you find out what else may cause the issue and make a patch. I've heavily modified the library so I will have to wait and read git to see what you change and incorporate into my version.
  24. L

    USBHost_t36 with Circuitpython serial device Keybow2040

    @Paul, Is it related to this issue? This causes issues to https://github.com/PaulStoffregen/USBHost_t36/issues/87 Can you please share what delay command you used? Thanks.
  25. L

    USBHost_t36 with Circuitpython serial device Keybow2040

    My suspicion is that the code running on keybow causes some delay/blocking during boot so if you add some delay in teensy before it enumerates keybow, then keybow has completed initialization (could be the enable/disable that messes up enumeration if executed while it is being enumerated) and...
  26. L

    WTF IS this board?

    Thanks @mark. I think JLCPCB must have very large rolls and may have pressed the non-framed stencils before shipping. Theirs are much flatter than osh stencil's.
  27. L

    WTF IS this board?

    The first image is from JLCPCB. When ordering stencils at JLCPCB, I've been scared by this image at times and have always hated it because it looks like my board file has got screwed up, from those components placed at an angle which I've never done. I'm sorry this is as big as it gets. Then...
  28. L

    Teensy 4. USB host port as device port (clone).

    I tried to remove some simple thruhole components with a soldering iron some decades ago and had very poor success. Kind of questioned whether I could learn soldering. It turned out the board was covered with conformal coating against weather. You can't remove components easily if they are under...
  29. L

    Teensy 4. USB host port as device port (clone).

    In case you are interested,: Tacky flux: https://www.amazon.com/Chip-Quik-SGF991-10CC-Stained-Soldering/dp/B099XCWXX6/
  30. L

    Teensy 4. USB host port as device port (clone).

    It is, difficult, to look at. While this turned out to be salvageable, you should do some more practice on scrap boards (broken electronics etc) before doing this again! To remove a connector, use hot air rework station with a small nozzle to deliver heat to only the connector, also heat from...
  31. L

    T4.1 PSRAM static allocation and copy content

    Thanks Paul! I'll avoid using DMA to access PSRAM. What I want to do is to write some content into OUTbuf, then have the content sent to a USB device using a USBHost_t36 library driver I wrote, and "at the same time" save a copy of the content to PSRAM. I wrote my driver so that it copies the...
  32. L

    T4.1 PSRAM static allocation and copy content

    Just want to check whether I'm doing it right: I have an 8MB PSRAM from prjc that I soldered to my T4.1 smaller footprint. I plan to use the PSRAM as a large buffer so I don't need ext_malloc(). #define PSRAM_SIZE (8*1024UL*1024UL) EXTMEM uint8_t PSRAM_buffer[PSRAM_SIZE]; // May use...
  33. L

    Which Teensy to replace an Arduino Mega for more memory?

    This may help you stay with MEGA2560 for a bit longer if you wish to pay the $33+SH price: https://www.rugged-circuits.com/new-products/quadram Do read the tech details if you want to get it: https://www.rugged-circuits.com/quadram-tech I would definitely recommend you to get Teensys. If...
  34. L

    Teensy 4. USB host port as device port (clone).

    OK, you have the right expectation. It's not impossible but very unlikely unless you have a lot of time, the right tools, and don't mind doing a lot of hard work. I don't know what setup you have and how you can't just use a right-angle microUSB cable etc on the main microUSB port. Most...
  35. L

    "Serial + MIDI" over long distance

    It's a very extensive project you're developing and managing @paul and despite of my short time using teensy so far I, see an excellent project, platform, and community, so I'm just going to remind myself to grab windows instead of whole screens until the forum gets its upgrade. ;)
  36. L

    "Serial + MIDI" over long distance

    Great! You definitely went above and beyond of merely asking for an answer. You took the information and went ahead with your own investigation, and you posted back your solution. Thanks! This was also a first clean win for me since I started to try to help others on this forum. I don't know...
  37. L

    "Serial + MIDI" over long distance

    @paul I really wish you would allow a maximal of 1920*1080 image size as most people have this resolution or higher on their monitors and could provide screen shots at this resolution, not the 2000-era 1280 pixels wide. My carefully arranged screens are downsampled into blurry images.
  38. L

    "Serial + MIDI" over long distance

    You need to provide a link to this adapter you got. Nobody knows exactly what you have. I have this one: https://www.amazon.com/Monoprice-Extender-CAT5E-Connection-150ft/dp/B003L14ZTC/ This is only good for USB 1.1. If you connect a teensy to this, it will force the teensy into full speed...
  39. L

    Quadrature simulator feasibility

    I'm not familiar with the library you're using but I can provide some timing data/diagram of a 2-channel rotary encoder. It's not as symmetric as most theory diagrams picture them. Here is what I have: https://liudr.wordpress.com/2014/06/21/debouncing-a-mechanical-rotary-encoder/
  40. L

    How to protect a Teensy 4.1 pin from higher voltages?

    Maybe you didn't have the right Zener diode. Or it could have been broken. Lower voltage Zener diodes can get damaged by static electricity if they are in non-antistatic bags. If you bought a 3.6V Zener, then it should be 3.6V. Also add a serial resistor between teensy pin and the Zener-3K...
  41. L

    Teensy 4.1 USB device code: why are all the functions avoiding EP1?

    So I am seriously considering running host mode on OTG1 (instead of on OTG2) and device mode on OTG2 so I can have all 8 EPs to work with. This stems from drivers of devices I want to simulate. Some drivers are smart enough to actually read conf desc to determine the EP# to work with so I can...
  42. L

    USBHost_t36 with Circuitpython serial device Keybow2040

    So when successful, it took 0.1ms to go from set address to get dev desc. I'm suspecting that it WAS circuitpython running startup routines in the background that caused the device to respond too slowly. If you're interested in trying, gradually reduce the 5 seconds until it starts to fail and...
  43. L

    USB Output: Force 12mbit and change bPacketSize?

    Totally works! I also made wMaxPacketSize0 dynamic depending on what I want to do.
  44. L

    Teensey 4.1 Schematic For Small Project

    I wish I had your optimism or skill level. I've been designing boards for over a decade but on 2-layer boards so far. As I mentioned, I only know some things in theory. Hope you can get some prototype boards working. I'll have this on my to-do list. I use a toaster oven with heating elements on...
  45. L

    Teensey 4.1 Schematic For Small Project

    Thanks @Paul. I think you answered my questions. I may be interested in a few 1062 and the smaller chips with bootloader. It's for one of the projects I've been bugging you guys with weird USB questions for. Should I PM you for pricing?
  46. L

    USBHost_t36 with Circuitpython serial device Keybow2040

    Could you post your successful enumeration with the 5-second delay? I am curious whether it is the rp2040 that is too slow to respond with USB requests when it starts up circuitpython and usb device. If you wait 5 seconds after booting, then maybe the CPU is more or less idling so it processes...
  47. L

    USBHost_t36 with Circuitpython serial device Keybow2040

    I'm not sure what took the same device so much longer to respond to Teensy than PC. The error was not the setup packet of "set address" that got stalled. The one after it got stalled. It's a request for device descriptor. Good thing you have access to a beagle so I can easily understand your...
  48. L

    USB hardware support of LPM ECN?

    I am guessing the answer is no according to the spec sheet but just want a confirmation: Page 2203: I did a rough search of "LPM" and all of them came out of chapter 44 with FlexCAN. So no support then?
  49. L

    How to protect a Teensy 4.1 pin from higher voltages?

    I found this schematic diagram from an AVR microcontroller. It may be easier to understand since the diodes are drawn almost in line. You can imagine the resistor on the right to external input and Teensy pin on left. So if you have 3.3V/GND on Teensy, and say the diodes have 0.3V of drop when...
  50. L

    How to protect a Teensy 4.1 pin from higher voltages?

    Sorry the photo is a bit out of focus as it's too close. You need one Zener diode of the appropriate voltage (3.3V or maybe 3.6V), and a resistor to limit current from your source. This resistor's value depends on the current rating of the Zener diode. But if you just use a 1K resistor, then the...
Back
Top