Hi Cliff, where do you declare chipSelect? It should be declared in the first part of your program before anything that needs it. If that is not it, post a more complete example of your code so that we can better...
I had a similar problem with my Teensy 4.1 and Adafruit HX8357 display. It went to inverse colors and a mirrored image. It turned out to be a loose connection. I reseated the connectors and the problem went away.
Here is a GitHub link to my Teensy 4.1 based ham radio controller. It controls a Flex 6000 series Software Defined Radio over TCP/IP. My version of the radio has no front panel controls except for a power button. It...
@Sprool You may want to move up to a Teensy 4.1. I am running 9 mechanical and two optical encoders as well as 19 buttons (using two MUX boards from SparkFun). All encoders use interrupt pins and they are all very...
Good to know that you support multiplexed encoders. I got that question recently from a guy who is considering replicating my controller. I will pass the EncoderTool information on to him. Thanks again!
Len
Hi luni, Thanks for the information. On the unit that I built, I use 1:1 encoders from Leo Bodnar in England. My buddy built one with Bourns PEC-11 4:1 encoders. No problem with encoder jitter from either encoder. I...
@Micki, you get two value increments per detent click because your encoder is a 2:1 encoder. There are also 4:1 encoders that jump 4 values per click. To solve this problem, I multiply or divide by the number of steps...
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 loop. In this case...
@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 it is likely an...
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 found that tidbit). For...
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 press_on_time to 50 ms or...
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 they work as...
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 the old value in...
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 characters:
...
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 paper with .015 inch...
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 required.
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 of the user manual....
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 the mouse over the...
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 the connected SDR...
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
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 (unused??), pin pus 0,...
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 did not wait long...
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 just looking for...
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 gizmo is not likely to...