Hi I am new here and in the world of teensy's. I have no background in electrical engineering or programming, I have programmed with an arduino a few times. This is the first time with a teensy mircocontroller.
Problem:
What I already have done:
Project / background:
Thanks in advance,
Tim
Setup:
Windows PC
-Win 10 pro 64 bit Hp desktop.
-Teensy 4.1
-Arduino IDE 1.8.13
-Teensyduino 1.53
-Teensy loader 1.52
Raspberry pi
-Model 3 B
-Arduino IDE 1.8.13
-Teensyduino 1.53
Problem:
After receiving the teensy I soldered the headers at home. The teensy connected to the PC. With the teensy.exe demo blink hex file uploaded first the fast blink then the slow one.
Then uploaded with the teensyduino blink sketch. Everything went great. Then uploaded my custom MIDI code (see project / background below) without LED code added. The code worked (at least the pc saw the teensy as a midi controller).
Then I uploaded the full code. With LED-strip WS2812b (72 leds) connected to digital output 6 and the ground. 5v for the leds came from an atx power supply. Furthermore, nothing was connected.
After upload nothing happened. No lights or errors. But the Pc did not recognize teensy as a midi controller.
After everything disconnected the teensy did nothing. The pc does not recognize the teensy and neither the teensy.exe, windows and teensyduino. Only the red LED at the USB port flickers. When I press the reset button for 10 seconds, the red LED goes out and quickly turns on after 10 seconds. When I release the reset button the orange led starts blinking.
But the PC does not recognize the teensy even now. Press the reset button again (briefly) and the red LED will light up again. The PC gives after 27 sec. (See the video
) a Windows error code 43.
When I try to upload something with aruino ide the teensy is not in the list if the COM ports. And gives the error that no teensy was found.
Later I also tried to upload code from a raspberry pi model 3 B. Here the teensy is between the ports. But when I try to upload code the arduino ide gives the error message that I have to press the reset button, but when I do that nothing changes. The ide keeps telling me to press the reset button.
Since the teeny is still doing something, I don't feel like he's completely dead, and I hope he can still be saved.
Then uploaded with the teensyduino blink sketch. Everything went great. Then uploaded my custom MIDI code (see project / background below) without LED code added. The code worked (at least the pc saw the teensy as a midi controller).
Then I uploaded the full code. With LED-strip WS2812b (72 leds) connected to digital output 6 and the ground. 5v for the leds came from an atx power supply. Furthermore, nothing was connected.
After upload nothing happened. No lights or errors. But the Pc did not recognize teensy as a midi controller.
Settings:
Board “teensy 4.1”
USB type "serial + midi"
CPU-speed “600 Mhz”
Optimalize "faster"
Keyboard layout “US”
Board “teensy 4.1”
USB type "serial + midi"
CPU-speed “600 Mhz”
Optimalize "faster"
Keyboard layout “US”
After everything disconnected the teensy did nothing. The pc does not recognize the teensy and neither the teensy.exe, windows and teensyduino. Only the red LED at the USB port flickers. When I press the reset button for 10 seconds, the red LED goes out and quickly turns on after 10 seconds. When I release the reset button the orange led starts blinking.
But the PC does not recognize the teensy even now. Press the reset button again (briefly) and the red LED will light up again. The PC gives after 27 sec. (See the video
When I try to upload something with aruino ide the teensy is not in the list if the COM ports. And gives the error that no teensy was found.
Later I also tried to upload code from a raspberry pi model 3 B. Here the teensy is between the ports. But when I try to upload code the arduino ide gives the error message that I have to press the reset button, but when I do that nothing changes. The ide keeps telling me to press the reset button.
Since the teeny is still doing something, I don't feel like he's completely dead, and I hope he can still be saved.
What I already have done:
• Tried several USB cables that I know have a data cable.
• All cables disconnected from the teensy.
• Windows restarted (several times).
• Serial driver reinstalled.
• Used different USB ports.
• Reset button pressed for 10 sec.
• Try to upload via raspberry pi.
• Only connect Teensy to the USB when the reset button has been pressed and then release.
• USB solder connections on the teensy look good.
• All cables disconnected from the teensy.
• Windows restarted (several times).
• Serial driver reinstalled.
• Used different USB ports.
• Reset button pressed for 10 sec.
• Try to upload via raspberry pi.
• Only connect Teensy to the USB when the reset button has been pressed and then release.
• USB solder connections on the teensy look good.
Project / background:
I am modifying a MIDI controller. This midi controller operates lighting software. The problem I wanted to solve is, when fader on the board is at an value and the fader in the software is at a diffrent value, the value in the software jumps direct tot he value of the fader on the board if you move it slightly. I want the microcontroller to do a soft take over so that the value in the software only changes when the physical fader is in the same place. Meanwhile, the mirocontroller must indicate the value of the software by means of led strips WS2812b next to the physical fader. The mircocontroller does this by storing midi messages in variable.
The midi controller is connected to the micro controller by a mid host that sends the MIDI messages via serial to the micro controller. This is again connected to the PC via MIDI via USB.
The original plan was to do this with an arduino leonardo. The code works if I only upload the MIDI part. And if I upload the code of the LED-strip only. But when they combine together and MIDI messages come in, the leonardo freezes. That's why I thought maybe I just need a faster microcontroller so I modified the code for teensy. I have not saved the code that I tried to upload last, so I cannot show it.
I hope there is still a way out of driving the teesny. I would be very sorry if my teensy adventure already ends here.
The midi controller is connected to the micro controller by a mid host that sends the MIDI messages via serial to the micro controller. This is again connected to the PC via MIDI via USB.
The original plan was to do this with an arduino leonardo. The code works if I only upload the MIDI part. And if I upload the code of the LED-strip only. But when they combine together and MIDI messages come in, the leonardo freezes. That's why I thought maybe I just need a faster microcontroller so I modified the code for teensy. I have not saved the code that I tried to upload last, so I cannot show it.
I hope there is still a way out of driving the teesny. I would be very sorry if my teensy adventure already ends here.
Thanks in advance,
Tim
Setup:
Windows PC
-Win 10 pro 64 bit Hp desktop.
-Teensy 4.1
-Arduino IDE 1.8.13
-Teensyduino 1.53
-Teensy loader 1.52
Raspberry pi
-Model 3 B
-Arduino IDE 1.8.13
-Teensyduino 1.53