Search found 14 matches

by JacktheRipper
Tue Nov 16, 2021 12:38 pm
Forum: General Discussion
Topic: Num=max(Num,3); throws compiler error if Num declared int8_t. Really?
Replies: 4
Views: 4332

Re: Num=max(Num,3); throws compiler error if Num declared int8_t. Really?

First of all, please be aware that I thought the word "dats" was actually a legitimate word somewhere in the C++ language, one that I did not know anything about. I did, indeed, try to find a reference to it. My statement wasn't meant to be a criticism at all. Sorry for the confusion, and sorry to b...
by JacktheRipper
Sun Nov 14, 2021 8:37 pm
Forum: General Discussion
Topic: Num=max(Num,3); throws compiler error if Num declared int8_t. Really?
Replies: 4
Views: 4332

Re: Num=max(Num,3); throws compiler error if Num declared int8_t. Really?

I saw that, and I'm wondering what the value of such rigor would be. Curiously, Num=max(Num-1,4) compiles just fine. I suppose the arithmetic forces the data types to be sorted out automatically. I've never heard of a "dats" type, and the C++ reference doesn't mention it anywhere that I could find. ...
by JacktheRipper
Sat Nov 13, 2021 9:34 pm
Forum: General Discussion
Topic: Num=max(Num,3); throws compiler error if Num declared int8_t. Really?
Replies: 4
Views: 4332

Num=max(Num,3); throws compiler error if Num declared int8_t. Really?

Of course, it works just fine on any AVR board. But with the compiler used for ESP32s one must code
Num=max(Num,(unt8_t)3); Seems like a bit of C++ rigor overreach to me.
by JacktheRipper
Thu Apr 29, 2021 6:50 pm
Forum: ESP32 Arduino
Topic: Driving a brushless motor with an ESC from a ESP32
Replies: 12
Views: 47342

Re: Driving a brushless motor with an ESC from a ESP32

My startup sequence looks like: * Send zero commands every 2ms for 3 seconds (waiting for startup, arms ESCs) * Send "3d mode on" command 20x - several repeats of this with zeros * Set LED colours I've tried to do this with the following code at the bottom of my Setup function, but no joy on settin...
by JacktheRipper
Tue Apr 27, 2021 12:50 pm
Forum: ESP32 Arduino
Topic: Driving a brushless motor with an ESC from a ESP32
Replies: 12
Views: 47342

Re: Driving a brushless motor with an ESC from a ESP32

I've implemented this on esp32 using the RMT peripheral markxr... I borrowed heavily from your provided code and the HW timer tutorial, and now have Dshot 600 working beautifully, but only in forward speed. Still trying to dig out how to reverse direction. Seems to be more than just commanding spee...
by JacktheRipper
Sat Apr 24, 2021 1:25 pm
Forum: ESP32 Arduino
Topic: Driving a brushless motor with an ESC from a ESP32
Replies: 12
Views: 47342

Re: Driving a brushless motor with an ESC from a ESP32

Update: I have now verified that this ESC works very well with an ESP32 driving it using PWM. In fact, I would say the low speed performance is a shade better than what the Nano did.
by JacktheRipper
Sat Apr 24, 2021 10:36 am
Forum: ESP32 Arduino
Topic: Driving a brushless motor with an ESC from a ESP32
Replies: 12
Views: 47342

Re: Driving a brushless motor with an ESC from a ESP32

I got the ESC I mentioned above, and wrote the following Amazon review. Works much better than the unit I had: "I bought this unit for its DShot 600 digital control capability, but my first evaluation was done with standard PWM control signals sent from an Arduino Nano (using the RC_ESC.h and Servo....
by JacktheRipper
Thu Apr 22, 2021 11:34 am
Forum: ESP32 Arduino
Topic: Driving a brushless motor with an ESC from a ESP32
Replies: 12
Views: 47342

Re: Driving a brushless motor with an ESC from a ESP32

I've implemented this on esp32 using the RMT peripheral, example here markxr... Looks like a fantastic way to go. I found a DSHOT600-compliant ESC on Amazon for $9 [url=https://www.amazon.com/FlashHobby-BLheli_S-Dshot600-Oneshot42-Multishot/dp/B085ZC2Z4T/ref=sr_1_14?dchild=1&keywords=dshot600&qid=1...
by JacktheRipper
Tue Apr 20, 2021 1:21 pm
Forum: General Discussion
Topic: Using ESC (Electronic Speed Control) with ESP32
Replies: 5
Views: 12889

Re: Using ESC (Electronic Speed Control) with ESP32

I did get this working, and posted what I did in another thread:

viewtopic.php?f=19&t=20450&p=75073#p75073
by JacktheRipper
Tue Apr 20, 2021 1:17 pm
Forum: ESP32 Arduino
Topic: Driving a brushless motor with an ESC from a ESP32
Replies: 12
Views: 47342

Re: Driving a brushless motor with an ESC from a ESP32 (Corrected)

Oops! Errors in the code I previously posted. Correct code is.... /* Note: the following code is a modification of the Knob Example that * comes with the ESC library, so that it works with an ESP32 DevKit V1 * and my particular ESC (generic 30A) and brushless motor (generic 2200KV) */ #include <ESP3...