ASL is a library that makes it easier to implement sensors and other components to the Arduino Uno r3. This was made to simplify large chuncks of code into something more readable and English for the rest of my team can understand what the arduino code does.
- Hall Effect Sensor UGN3503UA
- Magnetometer HMC5883L
- Motor Shield L298P-TWIN
- Ultrasonic Sensor HC-SR04
- Diodes
- DC Motors
- Inbuilt LED for the Arduino
- You can use the Diodes object for other things such as transistors and relays or anything that requires 1 selector pin and only has a On or Off state.
- Has an inbuilt macro
LOG("message", 1)
where it prints to the serial monitor. The second parameter is either a 1 or 0 where 1 prints a new line and 0 doesn't.
git clone https://github.com/lcox74/ArduinoSensorLibrary
into your Arduino library folder, typically found in your Documents folder.- Open the Arduino IDE.
- On your toolbar click
Sketch->Include Library->ArduinoSensorLibrary
it might have-master
at the end of it depending on how you cloned it. - If it worked then
#include <ASL.h>
would have appeared on top of your file. - You're set to go.
If the library didn't show up in your Include Library then you can put the ArduinoSensorLibrary folder into your solution folder. The folder your script is saved, the folder that has {your script name}.ino in it. Then to include it into your script put #include "ArduinoSensorLibrary/ASL.h"
at the top of your file.