You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<arel="license"href="http://creativecommons.org/licenses/by-sa/4.0/"><imgalt="Creative Commons License"style="border-width:0"src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" /></a><br />This work by <axmlns:cc="http://creativecommons.org/ns#"href="https://github.com/HackerInside0/Arduino_L293.git"property="cc:attributionName"rel="cc:attributionURL">Giuseppe Masino</a> is licensed under a <arel="license"href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.<br />Permissions beyond the scope of this license may be available at <axmlns:cc="http://creativecommons.org/ns#"href="https://facebook.com/peppe.masino1"rel="cc:morePermissions">https://facebook.com/peppe.masino1</a>.
<spanxmlns:dct="http://purl.org/dc/terms/"property="dct:title">The L293 Library</span> by <axmlns:cc="http://creativecommons.org/ns#"href="https://github.com/HackerInside0/Arduino_L293"property="cc:attributionName"rel="cc:attributionURL">Giuseppe Masino</a> is licensed under a <arel="license"href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a> and also under the following terms:
4
8
5
-
The full license text can be found here: https://creativecommons.org/licenses/by-sa/4.0/legalcode
9
+
The softwares, source files, schematics and all other material are provided "AS IS", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular scope and noninfringement.
10
+
11
+
In no event shall me and/or other peopole that holds the rights and/or are implied in the creation and distribution of the above mentioned things be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising form, out of or in connection with the above mentioned things or the use or other dealings in it.
12
+
13
+
The above copyright notice and this permission notice shall accompany and/or be included ( depending on the type of work ) in all the derived works from mine, as addendum to compliance with the provisions above.
14
+
15
+
If you need permissions that are beyond the scope of this license, you can ask to me through this facebook page <axmlns:cc="http://creativecommons.org/ns#"href="https://www.facebook.com/dev.hackerinside/"rel="cc:morePermissions">https://www.facebook.com/dev.hackerinside/</a>
16
+
17
+
Relatively to the Creative Commons Attribution-ShareAlike 4.0 International License:
18
+
A summary the license can be found here: http://creativecommons.org/licenses/by-sa/4.0/
19
+
Otherwise, the full license text can be found here: https://creativecommons.org/licenses/by-sa/4.0/legalcode
Copy file name to clipboardExpand all lines: README.md
+46-21Lines changed: 46 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -6,38 +6,59 @@ Compatible architecture: ALL
6
6
7
7
Library that allows to control bidirectional motors using the L293 IC in two different hardware configurations:
8
8
9
-
-L293_standalone
10
-
-L293_twoWire
9
+
-standalone
10
+
-twoWire
11
11
12
-
### L293_standalone configuration ###
12
+
### standalone configuration ###
13
13
14
-
This configuration in intended for use with a standalone L293 IC, using 3 wires for each motor to control ( exclunding the power supply ).
14
+
This configuration in intended for use with a standalone L293 IC and breakout boards that expose the ENABLE pin and the two INPUTS, using 3 wires for each motor to control ( excluding the power supply ).
**pwmPin** : the pin that generate the pwm signal used to control the motor speed
35
53
**forwardPin** : the digital pin used to tell the motor to go forward
36
54
**backpin** : the digital pin used to tell the motor to go reverse
37
-
**speedOffset** : the offset value applied to the pwm signal value, used to reduce the power given to a motor (can be a value beetween -255 and 255)
38
-
(e.g. in a robot two motors must rotate at the same speed, but one is more powerful than other)
55
+
**speedOffset** : the offset value applied to the pwm signal value, used to reduce the power given to a motor (can be a value beetween -255 and 255) (e.g. in a robot two motors must rotate at the same speed, but one is more powerful than other)
56
+
57
+
- Moving the motor
58
+
59
+
**motor.forceStop(handlingTime);** : stops the motor electically braking it, **handlingTime** is the time in milliseconds during which the motor is braked, the recommended value is 100
39
60
40
-
### Reference for the L293_twoWire configuration ###
61
+
### Reference for the L293_twoWire configuration only###
41
62
42
63
- Creating an istance
43
64
@@ -50,18 +71,22 @@ Where only two wires are used to control the motor: the PWM signal and the direc
50
71
**speedOffset** : the offset value applied to the pwm signal value, used to reduce the power given to a motor (can be a value beetween -255 and 255)
51
72
(e.g. in a robot two motors must rotate at the same speed, but one is more powerful than other)
52
73
53
-
### Common reference ###
54
74
55
-
- Moving the motor
56
-
57
-
***L293.forward(speed);*** : makes the motor to go forward, **speed** can be a value beetween 0 and 255
58
-
***L293.back(speed);*** : makes the motor to go reverse, **speed** can be a value beetween 0 and 255
59
-
***L293.stop();*** : stops the motor
60
-
***L293.setSpeedOffset(speedOffset);*** : Used to set a new speed offset value after the creation of the istance, **speedOffset** can be a value beetween -255 and 255
<spanxmlns:dct="http://purl.org/dc/terms/"property="dct:title">The L293 Library</span> by <axmlns:cc="http://creativecommons.org/ns#"href="https://github.com/HackerInside0/Arduino_L293"property="cc:attributionName"rel="cc:attributionURL">Giuseppe Masino</a> is licensed under a <arel="license"href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a> and also under the following terms:
83
+
84
+
The softwares, source files, schematics and all other material are provided "AS IS", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular scope and noninfringement.
85
+
86
+
In no event shall me and/or other peopole that holds the rights and/or are implied in the creation and distribution of the above mentioned things be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising form, out of or in connection with the above mentioned things or the use or other dealings in it.
87
+
88
+
The above copyright notice and this permission notice shall accompany and/or be included ( depending on the type of work ) in all the derived works from mine, as addendum to compliance with the provisions above.
89
+
90
+
If you need permissions that are beyond the scope of this license, you can ask to me through this facebook page <axmlns:cc="http://creativecommons.org/ns#"href="https://www.facebook.com/dev.hackerinside/"rel="cc:morePermissions">https://www.facebook.com/dev.hackerinside/</a>
66
91
67
-
<arel="license"href="http://creativecommons.org/licenses/by-sa/4.0/"><imgalt="Creative Commons License"style="border-width:0"src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" /></a><br />This work by <axmlns:cc="http://creativecommons.org/ns#"href="https://github.com/HackerInside0/Arduino_L293.git"property="cc:attributionName"rel="cc:attributionURL">Giuseppe Masino</a> is licensed under a <arel="license"href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.<br />Permissions beyond the scope of this license may be available at <axmlns:cc="http://creativecommons.org/ns#"href="https://facebook.com/peppe.masino1"rel="cc:morePermissions">https://facebook.com/peppe.masino1</a>.
92
+
The text of this license can also be found in the LICENSE.md file
0 commit comments