Driving Two motors by Bolt though L298N without Arduino

I would like to drive TWO DC motors of the car. Front have gear to turn the car to LEFT or RIGHT depending on the HIGH/LOW signals to L298N pins. Back motor can take car to FORWARD or REVERSE depending on the rotation.
There are 5 digital Pins and One Analog. Is it possible to drive two motors through Bolt directly using L298N? Giving required signals from digital pins for clockwise and anticlockwise rotation of motors and supplying PWM signals from A0?
Will following code will drive the motor?

<button onclick=“digitalWrite(0, ‘HIGH’);” “analogWrite(A0, ‘200’);”>FORWARD

Hi @prakash52kar,

I am inviting @vinayak.joshi . He will help you out by tomorrow EOD.

Hi @prakash52kar,

It is definitely possible. (Except for the part of supplying PWM signal using A0, which is not possible).

You will have to setup the L298N motor driver to use 3.3v as control voltage. Next have the enable pins of the driver connected to 3.3v.
Connect each control pin of the motor driver to 1 digital pin of the Bolt WiFi module.

Use appropriate diodes and connect the motors to the outputs of the L298N. You will then be able to use the remote API such as digitalWrite and digitalMultiWrite to control the 4 digital pins.

You can also use analogWrite on these digital pins to set the PWM value on the pin.