Hello forums!
I am a student that is relatively new to electronics. I wanted to PID control six different DC motors with encoders using a Teensy 4.1. Each encoder is 2048 counts/rev, and the motor...
Type: Posts; User: ryan1
Hello forums!
I am a student that is relatively new to electronics. I wanted to PID control six different DC motors with encoders using a Teensy 4.1. Each encoder is 2048 counts/rev, and the motor...
Thanks for the responses!
Turns out that I need to attach a wire between the ground pins of the Teensy and the device connected to my computer. Didn't know you needed to do that...I've used UART...
I'm sorry...I'm just going to keep rambling on this post about my debugging process in the hope that it might trigger an idea from someone.
I luckily had a Teensy 3.2 on hand and tested the same...
A bunch of questions I have but might not be relevant:
Could something else be blocking reception via UART? Do I need to disable the other RX/TX pins for some reason?
Do all the ground pins on the...
Thanks for the input! Unfortunately, I don't think this did anything.
I now have void loop() like this:
digitalWrite(ledPin, HIGH);
delay(1000);
digitalWrite(ledPin, LOW);
...
Update: I cut the trace between USB power and external power (as one might do to run Teensy off external power while having the USB plugged in). Still doesn't work. Seems that the Teensy has to be...
Using some if-statements and LED blinks, the problem seems to be with the UART reading garbage when powered by 5V. It's not getting the right characters that are being sent from my computer. I...
Thanks for the quick reply! I didn't think I needed to run the blink example because I have the LED blink in my void loop() function. When I apply external power, the LED turns off for 1 second and...
Hello!
My project involves sending commands over UART from my computer to my Teensy LC, triggering the Teensy to send commands over I2C (using the Wire.h library) to an external device that can...