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

Search:

Type: Posts; User: Elf

Search: Search took 0.00 seconds.

  1. Have you tried a higher baud rate...

    Have you tried a higher baud rate?
  2. Replies
    7
    Views
    118

    Put this in the PreInitialization Event of page 0...

    Put this in the PreInitialization Event of page 0 in the Nextion:

    bauds=115200 // Set Baud rate
  3. Replies
    7
    Views
    118

    I have the Nextion connected on either Serial1 or...

    I have the Nextion connected on either Serial1 or Serial3 with a PC connected to Serial. This way I can see what shows on the Nextion and verify what the Teensy is sending and receiving.

    If you...
  4. Replies
    7
    Views
    118

    Why do you need a library? It's really simple to...

    Why do you need a library? It's really simple to send data and commands back and forth between the Teensy and the Nextion. On the Teensy side, you just need functions to convert the serial data to...
  5. Thread: A microSD puzzle

    by Elf
    Replies
    3
    Views
    161

    Thanks, adding the internal pullups fixed it.

    Thanks, adding the internal pullups fixed it.
  6. Thread: A microSD puzzle

    by Elf
    Replies
    3
    Views
    161

    A microSD puzzle

    My board has four SPI ports with common mosi, miso, and sck pins. CS pins are 9, 10, 15, and 24. I can use either the builtin microSD reader or an external reader connected to one of the SPI ports....
  7. Replies
    4
    Views
    313

    Have you considered just milling the edges off...

    Have you considered just milling the edges off the Teensy? I wouldn't expect any traces to be running outside the outer holes.
  8. Replies
    1
    Views
    152

    The Teensy 3.2 works fine with Nextion Enhanced...

    The Teensy 3.2 works fine with Nextion Enhanced touch screens.
  9. Try this: if (!strcmp(argv[0],"BTON")) {...

    Try this:


    if (!strcmp(argv[0],"BTON")) {
    Serial.println("Bluetooth Turning on"); // This properly prints to Serial
    Serial2.println("Bluetooth is turned on"); // This properly prints...
  10. Replies
    34
    Views
    1,035

    That looks positively primitive compared to...

    That looks positively primitive compared to Nextion code :)
  11. Replies
    34
    Views
    1,035

    I'm using Nextion 4.3 Enhanced screens in a...

    I'm using Nextion 4.3 Enhanced screens in a project. The screens work well. The Ide takes some getting used to (to put it mildly :D). The latest version of the Ide has much better fonts. The...
  12. Replies
    31
    Views
    1,762

    It would be useless without the SD card reader :)

    It would be useless without the SD card reader :)
  13. #define DEBUG #ifdef DEBUG . Some code...

    #define DEBUG


    #ifdef DEBUG
    . Some code here
    #endif

    Comment out the #define DEBUG when compiling for end users.
  14. Replies
    11
    Views
    538

    Lowering the SPI clock speed in the SD_t3.h...

    Lowering the SPI clock speed in the SD_t3.h library to 23950000 was successful in getting the card reader to work when compiled for 96 MHz. It failed at 24000000 when compiled for 96 MHz and 48 MHz,...
  15. Replies
    11
    Views
    538

    Unfortunately, setting the SPI clock speed for...

    Unfortunately, setting the SPI clock speed for the Sd2Card object doesn't set it for the SD object needed to read a specific text file. It does show the Teensy 3.2 is capable of communicating...
  16. Replies
    11
    Views
    538

    The same code runs on both Teensy 3.2s and Teensy...

    The same code runs on both Teensy 3.2s and Teensy 3.5s which are located on different boards. The Teensy 3.2 boards need the card reader, The Teensy 3.5 boards use the buildin card reader. How do...
  17. Replies
    11
    Views
    538

    I'm not sure what a photo will do. The Teensy...

    I'm not sure what a photo will do. The Teensy 3.2 board is wired correctly. The Teensy_SDCARD_info sketch is able to access the card when the SPI clock speed is set to quarter speed. The card...
  18. Replies
    11
    Views
    538

    Setting SPI clock for reading sd card

    I'm attempting to read an sd card attached to a Teensy 3.5 and also a Teensy 3.2. The Teensy 3.5 code works with no problem, but the Teensy 3.2 code fails.


    #ifdef TEENSY_35

    if...
  19. Replies
    87
    Views
    9,852

    When posNr = nrOfPositions, .moveAsync has just...

    When posNr = nrOfPositions, .moveAsync has just started, but the axis motor needs to keep running until it completes. Reading past the array limits explains why the Teensy is blocked.
  20. Replies
    87
    Views
    9,852

    I did get the callback method working, but it...

    I did get the callback method working, but it doesn't return control to the main program after completing the cycles. The only changes are the names of the motors and controllers plus changing...
  21. Replies
    87
    Views
    9,852

    When acceleration is set to the max, 500000, how...

    When acceleration is set to the max, 500000, how many steps are used in the stop command? Does it behave the same as an emergency stop?
  22. Replies
    87
    Views
    9,852

    Yes, that is correct.

    Yes, that is correct.
  23. Replies
    87
    Views
    9,852

    The two controller routine didn't stop at the...

    The two controller routine didn't stop at the same time. I suspect that's caused by the acceleration and deceleration of the linear motor.

    The pin changing routine will be useful, but I would...
  24. Replies
    87
    Views
    9,852

    Synchronizing callback

    I would like to run one motor alternating directions and one running in one direction only. Each needs to start and end at the time. The following sort of works, but the motors don't stop at the...
  25. Replies
    3
    Views
    736

    The PSU is actually a buck down converter with...

    The PSU is actually a buck down converter with 12V input and 5V out. I have one working Teensy that works with this setup. The voltage measured at Vin and Gnd on the Teensy is 5V on both the good...
  26. Replies
    3
    Views
    736

    Three broken Teensy 3.2s

    Two of the Teensies have the same problem. The black chip located at the upper left (USB port on the left) gets extremely hot and neither of them respond when plugged into a Windows 10 machine.
    ...
  27. Replies
    5
    Views
    1,177

    Thanks everyone for the replies. I needed more...

    Thanks everyone for the replies. I needed more room to route the traces, so not using the end pins on the Teensy 3.2 opens up a lot of space. Fortunately the power requirements are quite low. ...
  28. Replies
    5
    Views
    1,177

    Multiple 3.3v and Gnd connections to PCB

    Is there any advantage to connecting all of the 3.3v and Gnd connections on the Teensy to the ground and 3.3v planes on a PCB?
  29. Replies
    13
    Views
    1,787

    Updating Teensyduino cured the problem. Thanks

    Updating Teensyduino cured the problem.

    Thanks
  30. Replies
    13
    Views
    1,787

    I didn't think I'd ever hear the Arduino IDE was...

    I didn't think I'd ever hear the Arduino IDE was easier to use :)

    It fails with the same error.
  31. Replies
    13
    Views
    1,787

    https://github.com/luni64/TeensyStep/tree/master/e...

    https://github.com/luni64/TeensyStep/tree/master/examples/HelloStepper

    Teensy 3.2/3.1 is selected.

    I'm using Visual Studio 2015.
  32. Replies
    13
    Views
    1,787

    TeensyStep build errors

    The example HelloStepper fails to compile. First error is:
    PIT.h: 30:2: error: 'KINETISK_PIT_CHANNEL_t' does not name a type
    KINETISK_PIT_CHANNEL_t* channel = nullptr

    Any suggestions on how...
  33. Thanks for the response. I'm working on a board...

    Thanks for the response. I'm working on a board that will drive 3 DRV8825s. The MOSFETs aren't really necessary for this, but they may be useful in a future project, so I'm adding the footprints...
  34. Internal Pullup resistor as a Mosfet gate resistor

    Are the internal pullup resistors suitable for mosfet gate resistors? For 5v Arduino, it seems 220 ohm resistor is appropriate for a gate resistor. If the internal pullup resistors are not suitable...
  35. Thanks again. The DRV8825 driver has over...

    Thanks again. The DRV8825 driver has over current, under voltage, shorts, and temperature protection built in. Is a flyback diode necessary? If so, would I need one for each leg of the motor...
  36. Thanks for the quick response. That will...

    Thanks for the quick response. That will simplify the wiring. The battery is a relatively inexpensive ZIPPY Compact 2200mAh 3S 25C from Hobby King.
  37. Wiring question for Teensy 3.2 and DRV8825 stepper driver

    I'm planning on using a Teensy 3.2 to drive a Nema 17 stepper (2 amps/1.2 amps per leg) along with several limit switches and LEDs as well as a bluetooth module.

    I'll be using a Lipo 3S battery...
Results 1 to 37 of 37