Replies: 3 comments 1 reply
-
It looks like the FYI – if you aren't familiar with J5e, it is a very nice robotics library for JavaScript built on the ECMA-419 standard, the ECMAScript Embedded Systems API Specification. J5e runs on the Moddable SDK's ECMA-419 implementation. |
Beta Was this translation helpful? Give feedback.
-
Yes, it does support the L298, but the docs are lacking here because I want to do more testing. I can give you some sample code, but not all L298 based motor controllers are equal. Can you tell me what input pins your board has, or even better, send a link to a spec sheet? |
Beta Was this translation helpful? Give feedback.
-
Good afternoon! import Motor from "j5e/motor";
import PWM from "pins/pwm";
export async function createMotor(){
let motorAPinEnable = 1;
let motorAPin1 = 23;
let motorAPin2 = 22;
const speedIO = new device.io.PWM({
pin: motorAPinEnable
});
const motor = await new Motor([speedIO,motorAPin1,motorAPin2]);
motor.enable();
motor.start();
motor.forward(150);
} Nothing happens haha! Thanks in advance |
Beta Was this translation helpful? Give feedback.
-
Hello.
Is there some driver to manage the L298 motor controller?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions