Search results

  1. B

    Teensy 4.0 SPI Clock isn't Square at Relatively Low Speeds

    Hey everyone! I have been trying to use SPI on my Teensy4.0 that is running at 600MHz at faster speeds then 5MHz but I can't even manage to get square waves at this speed. The code is a simplified version of what I'm trying to do but the behavior is same in the code provided below and the more...
  2. B

    Guidance on transitioning from Teensy to bare metal

    I would be willing to save the time and effort but bootloader chip for 4.1 or 4.0 isn’t out yet unfortunately. If I transition to 3.6 I think I’ll have less resistance to making it work on a custom board I suppose?
  3. B

    Guidance on transitioning from Teensy to bare metal

    Thank you very much! That’s all I need I believe. Now I guess I can lift the 4.1 to my board, upload the hex from JTAG and that’s all?
  4. B

    Guidance on transitioning from Teensy to bare metal

    I think it only has 2-3 more pins?
  5. B

    Guidance on transitioning from Teensy to bare metal

    I looked at IO expanders but I need to control peripherals with time critical signals
  6. B

    Guidance on transitioning from Teensy to bare metal

    Hello everyone, I’m working on a product and my prototype phase is about to be over. I’m currently using T4.0 but I’m finding myself a bit constrained with amount of IO pins I’m able to use. For that reason I need guidance on a couple of issues. First: Is making my own board is as easy as just...
  7. B

    SPI, Stepper and Healthy Communications

    Hey everyone, I’m having a bit of a design dilemma and don’t really know how to proceed. In my project I need to read/write data over SPI to two different ICs. One of them is MCP3201 ADC and other one is TMC2130. I don’t necessarily need to read back from TMC2130 stepper controller but I...
  8. B

    Teensy 4.0 Serial Working Differently on Different Devices

    Okay got everything to work on my macbook. After seeing the code works fine in both Mac and rPi when compiled to rPi we narrowed the problem to software and not the usb serial communication. I have solved the problem by fiddling with the TMC2130 library. When we are reading back from TMC2130 it...
  9. B

    Teensy 4.0 Serial Working Differently on Different Devices

    Here is the video that explains it in more detail: https://youtu.be/p1tC9Yj7lvo
  10. B

    Teensy 4.0 Serial Working Differently on Different Devices

    I instantiate TMC2130Stepper object here: TMC2130Stepper driverZ = TMC2130Stepper(csZ); and use dirZ throughout the program. Is there something I'm missing here?
  11. B

    Teensy 4.0 Serial Working Differently on Different Devices

    I really don't know if it has reliability issues if the pin is changed. I can't change it now since I have made my own PCB and it is physically set there :rolleyes:... I have placed diodes on the board that satisfies the power-up sequence requirements as well as flyback diodes on all steppers...
  12. B

    Teensy 4.0 Serial Working Differently on Different Devices

    At first I thought the problem was due to USB Serial but now I think it is something else. Same code compiled from rPi and Mac give the same results over USB Serial on all machines. By that I mean if the code is compiled from rPi and stepper is controlled over Serial Monitor on either rPi or Mac...
  13. B

    Teensy 4.0 Serial Working Differently on Different Devices

    Yes you are right. The old one is the rPi and the new one is Mac. However the rPi compiled code works as expected, at least in my case and the Mac is not. rPi Arduino version is 1.8.10 and Teensyduino add-on is 1.48. Mac is running the latest stand alone Teensyduino available. TMC2130 library...
  14. B

    Teensy 4.0 Serial Working Differently on Different Devices

    Okay new update... I get the same result depending on where I compile and load the code from. When the code is loaded from Mac and serial monitor is opened from Mac or Rpi, I can control the motors but the T4 can send direction etc to the TMC2130 but it can't read back. When I load the...
  15. B

    Teensy 4.0 Serial Working Differently on Different Devices

    Okay I did that and there is something weird going on. I don't know if it affects anything but the dynamic available for everything seems like 1048576 bytes in Rpi but it is only 524288 bytes in Mac. Here is the output from the Rpi: Multiple libraries were found for "TMC2130Stepper.h" Used...
  16. B

    Teensy 4.0 Serial Working Differently on Different Devices

    Hmm.. I'll try to reinstall. By local library copies in sketchbook what do you mean? The latest teensyduino complete package from the teensy downloads page. Not the add on. How do I check the verbose output?
  17. B

    Teensy 4.0 Serial Working Differently on Different Devices

    Update!!!! The same code is now working for my macbook pro as well but I would be really happy if we can figure out the underlying problem. I deleted the latest Teensyduino, Installed Arduino 1.8.11 and installed the latest Teensyduino installer and it started to work. ######### Edit 1...
  18. B

    Teensy 4.0 Serial Working Differently on Different Devices

    Hey everyone, I'm trying to make the T4 work with TMC2130 Stepper Drivers so that I can use them without endstops. The following code works fine when I connect to my T4 with RPi but when I connect T4 to my Mac the T4 gives out wrong output from serial (Almost everything turns out to be 0 and...
  19. B

    Teensy 4.0 and TMC2130 StallGuard Sensorless Homing

    Hello, Sorry I should’ve given an update. The problem was with another IC not releasing the MISO line on my PCB. I had to cut the trace and included a tri-state buffer for future revisions. It’s working fine for now and if anyone wants a Teensy specific code on how to run the StallGuard, there...
  20. B

    Using TMC2130 Stepper Driver Stallguard feature for sensorlesshoming with Teensy 4.0

    Hello everyone, I have posted on general discussion but I guess it was the wrong place to ask this question so here I go :) I have been trying to use the TMC2130 stepper driver and hopefully without endstop switches using the "StallGuard" feature. However I have been getting really frustrated...
  21. B

    Teensy 4.0 and TMC2130 StallGuard Sensorless Homing

    Hello Everyone, I have been trying to use the TMC2130 stepper driver and hopefully without endstop switches using the "StallGuard" feature. However I have been getting really frustrated with the set up and any help will be really appreciated. I'm not going to post a schematic because I think...
  22. B

    Edge Detection on a signal using Teensy 4.0

    https://forum.pjrc.com/threads/58193-Port-Pin-Edge-Detection I think this will do for my purposes. Will report back when I have it working :)
  23. B

    Edge Detection on a signal using Teensy 4.0

    Alrighty. Will take a look. I have another question though... I need interrupts for a switch, to know if someone opens the door while the device is working or wants to stop its operation. If I disable all the interrupts I wont be able to use another interrupt right? Can I specifically disable...
  24. B

    Edge Detection on a signal using Teensy 4.0

    Hey! Sorry yes you are right we don’t need to dive into datasheet. Ready is normally high and for one cycle it is pulled low to indicate that the write is successful and it is pulled high again by the IC. I haven’t used interrupts before but definitely disabling it would work. Will look more...
  25. B

    Edge Detection on a signal using Teensy 4.0

    Hello everyone, I'm trying to use digital potentiometer IC AD5293 (Datasheet, Page 8 Timing Diagrams) with my project and I was wondering how I can read the Ready signal go low without using interrupts to confirm correct operation of the part (other than measuring the resistance with a...
  26. B

    Teensy 4.0 two pins at the same time

    Ahahahah I love this response. Thank you very much for your concise and meaningful response.
  27. B

    Avoiding a possible ground loop

    Hello everyone, I have a project that I hook up Teensy 4.0 and a RPi together with a USB cable and was wondering if my setup would cause a mishap. I have one 24V PSU and two separate 5V buck converters, one going to T4.0 and another to RPi, hence their grounds are connected.(In the future I’ll...
  28. B

    Teensy 4.0 two pins at the same time

    Thank you both for your responses. It’s working very well with digitalWriteFast()
  29. B

    Teensy 4.0 two pins at the same time

    Hey everyone, I’m trying to drive two steppers at the same time in a CoreXY system using a Teensy 4.0. As you might know the steppers need to move at the same time to go straight and I was wondering if using digitalWriteFast() will be enough. If not how can I do port manipulation with 4.0. I’m...
Back
Top