Wheels not turning/spinning/rotating, but all is okay

Hi I'm Newbie in Arduino and i searched a the issue of my lafvin 2wd robot car

I use arduino r3 uno ch340 and a expansion board, i dont what's model is this

the issue i encounter is the wheel is not rotating or spinning, I try to serial print the voltage that A1 and B1 got, Voltage A1: 1.67 V Voltage B1: 1.67 V but when i try to upload the motor speed is not spinning

I use 2 battery which is 18650 but its not working

void setup(){
  pinMode(2, OUTPUT);//
  pinMode(5, OUTPUT);
  pinMode(4, OUTPUT);
  pinMode(6, OUTPUT);
}

void loop(){
  digitalWrite(2,HIGH);
  analogWrite(5,50);
  digitalWrite(4,LOW);
  analogWrite(6,50);
  delay(2000);
  digitalWrite(2,LOW);
  analogWrite(5,50);
  digitalWrite(4,HIGH);
  analogWrite(6,50);
  delay(2000);
  digitalWrite(2,LOW);
  analogWrite(5,50);
  digitalWrite(4,LOW);
  analogWrite(6,50);
  delay(2000);
  digitalWrite(2,HIGH);
  analogWrite(5,50);
  digitalWrite(4,HIGH);
  analogWrite(6,50);
  delay(2000);

}

You should have a on/off pushbutton to use the batteries. The blue square dot in your picture.

image
here?

i push that button and add 2 battery 18650 but its not working

Is the LED on the motor shield on? Is the LED on the Arduino on?

the led in the motor shield is off, but the led in the arduino is on

i try to test the blink the led in arduino and its on

I tried also adding this in expansion board


and its working but in dc motor its not rotating or spinning

Your topic is wheels. Disconnect everything except motors... and power connected.

Next to the blue button, are your power wires (BAT) using the correct polarity (GND is black, 5V is red)

Your topic has been moved. Please do not post in "Uncategorized"; see the sticky topics in https://forum.arduino.cc/c/using-arduino/uncategorized/184.

When you push the power button you should see two LEDS on the shield (Power and IR) and at least one LED on the Arduino (Power and maybe Tx to the bluetooth module)

Not much information there.
Weird?

My guess is, there's info in the Tutorials, but not interested in going down that rabbit hole.

You need to dig for it... and you will find all the datasheets, code and video assembly.

"No hole too deep!"

At the top bar... "TUTORIALS"... " LA018 2WD Smart Robot Car Kit V1"... "DOWNLOAD TUTORIALS"

The ZIP file will contain all of it. (900MB)... note which motor driver you have. The large L398N or the TB6612 (small footprint). Also, the old kit had a 433mHz transceiver, the new one has BlueTooth (but in a JDY-16 form... which is not easy to find useful references)

Also...

Without L298N or 38kHz IR receiver

LAFVIN: (shows L298N and 38kHz IR receiver)

TURKISH:

Too much like work.

1 Like

I cheated. I accumulated links over the many topics on this subject and updated dead links.

This is how to test your Lafvin kit...

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.