Hello, I've been working on a controls project trying to control a 4x1 BLHELI_s type ESC with a Teensy 4.0. I initially used DSHOT with an Arduino Uno successfully but after adapting the code to a Teensy I get no response out of the ESC. I've gone through and checked all the connections with a multimeter.
I initially thought it was because the ESC couldn't use the 3.3V logic of the Teensy so I built a basic 2n2222 logic shifter to 5V but had no luck with that.
I had the emitter connected to ground, base connected to 10k resistor connected to Teensy signal, and collector connected to 1k resistor connected the Teensy VIN/5v pin. I made sure it had a 5v output when the signal was low and 0v when the signal was high with a multimeter. To compensate for signal inversion I switched all the low/high writing in the code.
I've tried libraries for DShot and OneShot (jacqu/teensyshot, simondlevy/OneShot125) just trying to use their example code to spin a motor as well as basic PWM and have had no luck. Any advice would be appreciated.
I initially thought it was because the ESC couldn't use the 3.3V logic of the Teensy so I built a basic 2n2222 logic shifter to 5V but had no luck with that.
I had the emitter connected to ground, base connected to 10k resistor connected to Teensy signal, and collector connected to 1k resistor connected the Teensy VIN/5v pin. I made sure it had a 5v output when the signal was low and 0v when the signal was high with a multimeter. To compensate for signal inversion I switched all the low/high writing in the code.
I've tried libraries for DShot and OneShot (jacqu/teensyshot, simondlevy/OneShot125) just trying to use their example code to spin a motor as well as basic PWM and have had no luck. Any advice would be appreciated.