How to Use MotordriverL298N With SkiiiD
by skiiiD in Circuits > Arduino
122 Views, 0 Favorites, 0 Comments
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/
Launch SkiiiD

Launch skiiiD and select New button
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.
Add Component

Click '+' (Add Component Button) to search and select the component.
Search or Find a Component

① Type 'motor' on the search bar or find the MotordriverL298N on the list.
Select MotordriverL298N
 2_12_2020 11_00_24 AM.png)
② Select MotordriverL298N Module
Pin Indication and Configuration
 2_12_2020 11_00_51 AM.png)
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
Check Added Module
 2_12_2020 11_00_59 AM.png)
⑤ Added Module has appeared on the right panel
SkiiiD Code of MotordriverL298N Module
 2_12_2020 11_01_11 AM.png)
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."
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!