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

Search:

Type: Posts; User: KD0RC

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    11
    Views
    47

    Not a C fan either... I grew up on a mainframe...

    Not a C fan either... I grew up on a mainframe using PL/I, Fortran and COBOL...
    The main working components of your program need to be either within the braces of setup, or within the braces of...
  2. Replies
    11
    Views
    145

    @Micki What kind of encoder do you have? Is it...

    @Micki What kind of encoder do you have? Is it an incremental or absolute? When you show a data and clock line, that implies an absolute position encoder. If it is a mechanical switch type, then...
  3. Replies
    8
    Views
    254

    Hi Frank, Yep, it looks like the times are preset...

    Hi Frank, Yep, it looks like the times are preset as I look at your library code. The trick is that by using a null callback, you can cheat and get an immediate shutdown (can't remember where I...
  4. Replies
    8
    Views
    254

    Well, I found something very interesting. If I...

    Well, I found something very interesting. If I put these statements in setup, I get the elusive reset button! A push of the on/off button turns the T4 off and then right back on. If I set...
  5. Replies
    8
    Views
    254

    It looks like there are 4 possible button hold...

    It looks like there are 4 possible button hold down times for powering off the T4 - 5 sec, 10 sec, 15 sec or turn off the ability to power off using the on/off button. I am able to set these and...
  6. Replies
    283
    Views
    15,931

    The problem with my method is that rapidly...

    The problem with my method is that rapidly changing values can induce flicker. Another approach is to save the current value of each character or characters to be updated. At update time, rewrite...
  7. Replies
    283
    Views
    15,931

    I think the problem you are having is that new...

    I think the problem you are having is that new characters just overlay what is already on the screen. Here is a typical thing that I do to clear the portion of the screen in preparation for new...
  8. Replies
    23
    Views
    323

    Thanks Frank, I appreciate it! It is the...

    Thanks Frank, I appreciate it! It is the aluminum panel that came with the box. I drilled it and cut the display window with an old-school nibbling tool. The graphics are just printed on plain...
  9. Replies
    23
    Views
    323

    Very cool, thanks Paul. I'm not sure how much...

    Very cool, thanks Paul. I'm not sure how much attention my project will ultimately get, but the simple, straightforward operation of the Teensy.exe loader is priceless in terms of support time...
  10. Replies
    23
    Views
    323

    Thanks everyone, I appreciate the help. Now that...

    Thanks everyone, I appreciate the help. Now that I understand the symptoms, I will be better prepared to help others with this project going forward. I will add this to the troubleshooting section...
  11. Replies
    23
    Views
    323

    hex file too large message

    I recently completed a project using a Teensy 4.1. Works great. A friend of mine duplicated it. Also works great. Another person is duplicating it but can't get the hex file to load. Hovering...
  12. Replies
    8
    Views
    254

    Thanks @defragster! I finally have a way to...

    Thanks @defragster! I finally have a way to software reset the Teensy! I have been looking for this for a while so that people don't have to keep unplugging to reset the Teensy if they power cycle...
  13. Replies
    8
    Views
    254

    Hi Neal, This thread should have the info you...

    Hi Neal,
    This thread should have the info you need.

    https://forum.pjrc.com/threads/65716-Teensy-4-x-where-to-find-documentation-about-the-throughhole-contacts-in-the-middle

    Len
  14. Replies
    2
    Views
    111

    Hi Scott, not being familiar with the encoder you...

    Hi Scott, not being familiar with the encoder you are using, it looks like QuadEncoder myEnc1(1, 1, 0, 0, 4); does not have enough parameters. You are on channel 1, Phase A pin 1, Phase B pin 0...
  15. Replies
    18
    Views
    484

    My T 4.1 has been running non-stop for a little...

    My T 4.1 has been running non-stop for a little over 10 hours in a 70-ish degree F room. At 528 MHz, it ran about 58 deg C. At 150 MHz it looked to stabilize around 54 deg C (not too scientific - I...
  16. Replies
    18
    Views
    484

    Thanks for the information. My Teensy is indeed...

    Thanks for the information. My Teensy is indeed in its permanent location in an enclosure. I will add some code to look at temps over the course of a day. Even when in heavy use, the MCU is mostly...
  17. Replies
    18
    Views
    484

    Very interesting discussion... I just moved my...

    Very interesting discussion... I just moved my clock speed down to 528 MHz, and for my application (provides buttons and knobs for a Flex SDR radio), I see no difference in performance. Since my...
  18. Have you tried increasing the SPI clock speed? I...

    Have you tried increasing the SPI clock speed? I did that with an HX8357 display by passing the SPI clock speed in the begin. tft_Track.begin(30000000) to set it to 30MHz for example. You will need...
  19. Hi Michael, I think the pin you have as Reset is...

    Hi Michael, I think the pin you have as Reset is actually the programming button. It does not reset (the on/off does that sort of...) but puts the 4.1 into programming mode. If held for 15 seconds,...
  20. Hi Jimmie, in my app, I set up the serial port,...

    Hi Jimmie, in my app, I set up the serial port, then the SD Card, then the ethernet (using NativeEthernet.h), so I don't think that is it. I do it in this order to allow me to get ethernet config...
  21. HX8357 SPI frequency with Teensy 4.1 (re-post from Adafruit forum)

    I am trying to understand the proper SPI frequency to use with an Adafruit HX8357 and a Teensy 4.1. I am using the Teensy libraries and currently have SPIClock set to 40 MHz. This works great on my...
  22. Replies
    1
    Views
    118

    Nevermind, I solved it. After adding the tft...

    Nevermind, I solved it. After adding the tft reset that I thought fixed the problem, it started happening again. I began to suspect the SPI clock speed, and changed my tft.begin(); to...
  23. Excellent, glad you found the issue!

    Excellent, glad you found the issue!
  24. Hi Leonardo, have you tested it without the...

    Hi Leonardo, have you tested it without the sensor attached? If the sensor is damaged, that may cause the issues you see.

    Len
  25. Replies
    1
    Views
    118

    Teensy 4.1 with HX8357 display issue

    Hi Kurt E, I have a Teensy 4.1/Adafruit HX8357 project that uses your excellent HX8357_t3n.h library. My project is nearly done and working well (I'm at the code clean-up and documentation...
  26. Hi grinch, Here is how I deal with it: ...

    Hi grinch,
    Here is how I deal with it:


    /***************************** GetConfigFile ***************************/
    void GetConfigFile()
    {
    if(MenuActive)
    {
    tft.fillScreen(HX8357_NAVY);
  27. Replies
    7
    Views
    233

    Seems like a 5.1 V zener diode would take care of...

    Seems like a 5.1 V zener diode would take care of the problem.
  28. Replies
    22
    Views
    772

    @borogove, I have had that same problem, and in...

    @borogove, I have had that same problem, and in every case it has been a poor connection. You might want to be sure that your wiring is solid on the encoders causing issues.
  29. Replies
    13
    Views
    559

    Thanks for all the discussion and ideas. It...

    Thanks for all the discussion and ideas. It sounds like the easiest thing is to just live with it. Seems like a funny limitation...
  30. Replies
    13
    Views
    559

    I edit and compile from the Arduino (Teensyduino)...

    I edit and compile from the Arduino (Teensyduino) IDE. It gives me quick access to everything, including the serial console. My technique is to code a little, test a little, so I like staying in the...
  31. Replies
    13
    Views
    559

    Thanks for the response BriComp. I am not trying...

    Thanks for the response BriComp. I am not trying to compile one program for multiple boards. Each of my boards has its own code. I was hoping that there was a compiler directive that would allow...
  32. Replies
    13
    Views
    559

    Compiler directive to select board

    Lately, I have been playing with several Teensy boards (3.6, LC, 4.0, 4.1), often hooked together. Tweaking code back and forth means having to remember to set the board correctly every time. Is...
  33. Replies
    18
    Views
    655

    Hi Sean, data can be stored in flash memory. ...

    Hi Sean, data can be stored in flash memory. Look up PROGMEM in the Arduino reference to see how it works. I don't know the relative speeds of SD card vs flash memory, but you could write a quick...
  34. Hmmm... So the fillTriangle without the canvas...

    Hmmm... So the fillTriangle without the canvas works? I am unfamiliar with the canvas, but maybe that is the place to look. Could the x and y parms be backwards in the canvas?
  35. On the fillTriangle, change 272 to 320 and see if...

    On the fillTriangle, change 272 to 320 and see if that helps.
  36. Replies
    5
    Views
    298

    I use my Teensy to control a Software Defined...

    I use my Teensy to control a Software Defined Radio (Flex 6400 Ham Radio). I am active on the ham bands from 1.8 MHz up to 54 MHz. I found the 24 MHz clock in the Teensy with the receiver, but it...
  37. Replies
    5
    Views
    308

    Hi Tim, yes, you can measure the Din voltage with...

    Hi Tim, yes, you can measure the Din voltage with a multimeter. I saw your video, and it looks like your Teensy is working properly. The ten second reset reloads the demo blink program, so you are...
  38. Replies
    10
    Views
    424

    One other thing you can try is setting the Teensy...

    One other thing you can try is setting the Teensy clock speed down to test your theory that it is the faster processor. Go to Tools, CPU Speed and set it down to 150 MHz which will be in the...
  39. Replies
    5
    Views
    308

    Hi Tim, The Teensy is not 5V tolerant. The I/O...

    Hi Tim, The Teensy is not 5V tolerant. The I/O pins must never see more than 3.3V. You are powering the LED strip from 5V which is only OK if 3.3V or less is present on the Din pin of the LED strip...
  40. Replies
    6
    Views
    256

    OK, thanks for the information KIIV, I really...

    OK, thanks for the information KIIV, I really appreciate it.
    Len
  41. Replies
    6
    Views
    256

    Update: I looked up the 74HCT4051, and it CAN be...

    Update: I looked up the 74HCT4051, and it CAN be used with a 3.3V supply. If you use it, do not power it from 5V, power it from 3.3V. Sparkfun also makes an 8 channel MUX using this chip.
  42. Replies
    6
    Views
    256

    I don't think you want to use a 5 V device on a...

    I don't think you want to use a 5 V device on a Teensy 4. I have had very good luck with the Sparkfun Mux boards with my Teensy 4.1. They will run on 3.3 V (Teensy safe) and have 16 analog or...
  43. Replies
    10
    Views
    424

    Hmmm... What type does Servo1.read() return? I...

    Hmmm... What type does Servo1.read() return? I see that you have sumServo1 declared as a float. Can all of this be done with int or long instead of float? I am thinking of rounding errors...
    Len
  44. Replies
    16
    Views
    971

    Hi Jake, Here is how I use NativeEthernet. I...

    Hi Jake,
    Here is how I use NativeEthernet. I can get a connection whether there is a DHCP served address or not. It does rely on me hardcoding a known good address in the event of no DHCP. In my...
  45. Replies
    10
    Views
    424

    Put a print statement in to show timeout as the...

    Put a print statement in to show timeout as the first statement of 'if(timeout > 100000)'. I think you will find that the if statement is being hit with different values of timeout (all over...
  46. @kg4rul I have had similar issues. In my case, it...

    @kg4rul I have had similar issues. In my case, it is a cheap 4 port hub that has trouble providing the current. If I plug directly into the laptop, it has no problems at all. If I plug my project...
  47. Replies
    171
    Views
    15,533

    It worked perfectly! Thanks for sticking with me...

    It worked perfectly! Thanks for sticking with me on this, I really appreciate it.
    Len
  48. Replies
    171
    Views
    15,533

    Ok, thanks for that insight, I will adjust...

    Ok, thanks for that insight, I will adjust accordingly. I still have the problem where an Ethernet.begin(mac) followed by Ethernet.begin(mac, ip) in the case of no DHCP server connects briefly, then...
  49. Replies
    171
    Views
    15,533

    @vjmuzik Hi vj, I loaded the latest library from...

    @vjmuzik Hi vj, I loaded the latest library from Github, but it did not solve my issue (- Allow using Ethernet.begin(mac, ip) after Ethernet.begin(mac) if dhcp fails). If I go straight to...
  50. Thanks vj, I will give it a shot this afternoon....

    Thanks vj, I will give it a shot this afternoon.
    Len
Results 1 to 50 of 69
Page 1 of 2 1 2