This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Written by Firgelli Automations | |
* Limited or no support: we do not have the resources for Arduino code support | |
* This code exists in the public domain | |
* | |
*/ | |
#include <elapsedMillis.h> | |
elapsedMillis timeElapsed; | |
#define numberOfActuators 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Written by Firgelli Automations | |
* Limited or no support: we do not have the resources for Arduino code support | |
* This code exists in the public domain | |
* | |
* Program requires two (or more) of our supported linear actuators: | |
* FA-OS-35-12-XX | |
* FA-OS-240-12-XX | |
* FA-OS-400-12-XX | |
* Products available for purchase at https://www.firgelliauto.com/collections/linear-actuators/products/optical-sensor-actuators | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Firgelli Automations | |
* Limited or no support: we do not have the resources for Arduino code support | |
* | |
* Program enables momentary direction control of actuator using push button | |
*/ | |
#include <elapsedMillis.h> | |
elapsedMillis timeElapsed; | |
int RPWM = 10; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Firgelli Automations | |
* Limited or no support: we do not have the resources for Arduino code support | |
* | |
* Program enables momentary direction control of actuator using push button | |
*/ | |
#include <elapsedMillis.h> | |
elapsedMillis timeElapsed; | |
int RPWM = 10; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Firgelli Automations | |
* Limited or no support: we do not have the resources for Arduino code support | |
* | |
* This progam controls the speed of a linear actuator via a potentiometer input | |
*/ | |
int RPWM = 10; //connect Arduino pin 10 to IBT-2 pin RPWM | |
int LPWM = 11; //connect Arduino pin 11 to IBT-2 pin LPWM | |
int potPin = A0; //analog pin that connects to centre potentiometer pin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Firgelli Automations | |
* Limited or no support: we do not have the resources for Arduino code support | |
* | |
* Program demos how a motor driver controls direction & speed of a linear actuator | |
*/ | |
int RPWM = 10; //connect Arduino pin 10 to IBT-2 pin RPWM | |
int LPWM = 11; //connect Arduino pin 11 to IBT-2 pin LPWM | |
int Speed; |