Hi.
I have to do a job, which is to communicate two esp32 to control the speed of an engine.
An esp32 is connected to an LCD and here the power is shown to which the motor is wanted to turn and to the other esp32 the motor is connected.
By means of the keyboard of the computer, the hardness cycle can be selected.
if (data == '0') dutyCycle = 0;
if (data == '1') dutyCycle = 32;
if (data == '2') dutyCycle = 64;
if (data == '3') dutyCycle = 128;
if (data == '4') dutyCycle = 192;
if (data == '5') dutyCycle = 255;
I am new with this microcontroller, I hope you can help me. Thank you!
Pd: I do not speak English, I speak Spanish and use a translator.
serial communication
-
- Posts: 1
- Joined: Wed May 01, 2019 2:37 am
serial communication
- Attachments
-
- IMAG0997.jpg (675.23 KiB) Viewed 3918 times
Who is online
Users browsing this forum: No registered users and 18 guests