- Fri May 27, 2022 4:51 pm
#56773
Hello,
from france
YL-ES200G with ES90 battery
System unlocked but wheel didn't turn
WIRING IS
YELLOW CONNECTED TO RX ARDUINO
BLUE CONNECTED TO TX ARDUINO
BLACK CONNECTED TO GND ARDUINO
Light up, display up, no error but no motor
Code used
--------------------------------------------------
#include <Arduino.h>
int powerPin = 5;
byte messageA[] = {0xA6, 0x12, 0x02, 0x10, 0x14, 0xCF};
byte messageB[] = {0xA6, 0x12, 0x02, 0x11, 0x14, 0x0B};
byte messageC[] = {0xA6, 0x12, 0x02, 0x15, 0x14, 0x30};
void setup() {
// initialize Serial:
Serial.begin(9600);
pinMode(powerPin, OUTPUT);
digitalWrite(powerPin, HIGH);
}
void loop() {
delay(500);
Serial.write(messageC, sizeof(messageC));
}
-----------------------------------------------------------
Any suggestion?