Can't get Teensy 4.0 to communicate with motor ESC

spsam

New member
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.
 
1783983450856.png

1783983466339.png

1783983478907.png

1783983492425.png


I know my soldering is very poor but rest assured I have checked every connection with a multimeter...

ESC:
 
so I built a basic 2n2222 logic shifter to 5V but had no luck with that.
Suspicious of this, the 2222 is actually slow compared to logic speeds (try reducing the base resistor to 1k though), and not push-pull (totem pole). A 74HCTxx gate would do the job properly as they run at 5V and are 3.3V input compatible.

You used far too much solder on those joints, BTW, you may be hiding a dry joint even.
 
Back
Top