How to Use MotordriverL298N With SkiiiD

Introduction: How to Use MotordriverL298N With SkiiiD

This project is an instruction of "how to use Segment 3642BH with Arduino via skiiiD

Before start, below is a basic tutorial for how to use skiiiD https://www.instructables.com/id/Getting-Started-With-SkiiiD-Editor/

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Launch SkiiiD

Launch skiiiD and select New button

Step 2: Select Arduino UNO

Select ① Arduino Uno and then click ② OK button

*This is Tutorial, and we use Arduino UNO. Other boards(Mega, Nano) have the same process.

Step 3: Add Component

Click '+' (Add Component Button) to search and select the component.

Step 4: Search or Find a Component

① Type 'motor' on the search bar or find the MotordriverL298N on the list.

Step 5: Select MotordriverL298N

② Select MotordriverL298N Module

Step 6: Pin Indication and Configuration

then you can see ③ pin indication. (You can configure it.)

*This module has 8 pins to connect

skiiiD Editor automatically indicate pin setting *configuration available

[Default Pin Indication for MotordriverL298N Module] in case of Arduino UNO
5V: 5V

GND: GND

ENA: 3

IN1: 0

IN2: 1

IN3: 2

IN4: 4

ENB: 5

After configuring pins ④ click ADD button on the right below side

Step 7: Check Added Module

⑤ Added Module has appeared on the right panel

Step 8: SkiiiD Code of MotordriverL298N Module

skiiiD Code is intuitive function-based codes. This is based on skiiiD libraries

RotateA()

"Change speed and direction of motor connected with OUT1 and OUT2 pin.

Speed default: 100, Range: 0~100

Enter 1 on direction to change direction of the motor, default is 0."

RotateB()

"Change speed and direction of motor connected with OUT3 and OUT4 pin.

Speed default: 100, Range: 0~100

Enter 1 on direction to change direction of the motor, default is 0."

RotateAB()

"Change speed and direction of two motors simultaneously.

Speed default: 100, Range: 0~100

Enter 1 on direction to change direction of the motor, default is 0."

Step 9: Contact and Feedback

We are working on components and boards libraries. Feel free to use it and feedback us, please. Below is contact methods

email: contact@skiiid.io

twitter: https://twitter.com/skiiiD_official

Youtube: https://www.youtube.com/channel/UCfS2RQL3m3hVoHkFo...

Comments are fine too!

Be the First to Share

    Recommendations

    • Trash to Treasure Contest

      Trash to Treasure Contest
    • Raspberry Pi Contest 2020

      Raspberry Pi Contest 2020
    • Wearables Contest

      Wearables Contest

    Discussions