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...
Type: Posts; User: KD0RC
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...
Humble beginnings...
23593
Rat's nest (hey - it works...)
23594
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...
@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...
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...
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...
@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...
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...
@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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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,...
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...
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...
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...
Excellent, glad you found the issue!
Hi Leonardo, have you tested it without the sensor attached? If the sensor is damaged, that may cause the issues you see.
Len
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...
Hi grinch,
Here is how I deal with it:
/***************************** GetConfigFile ***************************/
void GetConfigFile()
{
if(MenuActive)
{
tft.fillScreen(HX8357_NAVY);
Seems like a 5.1 V zener diode would take care of the problem.
@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.
Thanks for all the discussion and ideas. It sounds like the easiest thing is to just live with it. Seems like a funny limitation...
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...
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...
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...
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...
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?
On the fillTriangle, change 272 to 320 and see if that helps.
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...
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...
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...
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...
OK, thanks for the information KIIV, I really appreciate it.
Len
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.
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...
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