This file contains hidden or 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
/* — Ardu-Serie#53 | |
Project name: A4988 — Stepper Motor Driver Carrier | |
Allegro’s A4988 — Bipolar Stepper Motor Driver — 2A@35v peak | |
*/ | |
#define DIR 2 | |
#define STEP 3 | |
#define M0 4 | |
#define M1 5 |
This file contains hidden or 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
//define the two direction logic pins and the speed / PWMA and PWMB pin | |
const int PWMA = 6; // Front Motor (A) | |
const int AIN1 = 5; | |
const int AIN2 = 4; | |
// Rear Motor (B) | |
const int PWMB = 3; | |
const int BIN1 = 2; | |
const int BIN2 = 1; |
This file contains hidden or 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
const int PWMA = 6; | |
const int AIN1 = 5; | |
const int AIN2 = 4; | |
void setup() | |
{ | |
//set all pins as output | |
pinMode(AIN1, OUTPUT); | |
pinMode(AIN2, OUTPUT); |
This file contains hidden or 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
/* | |
Project name: L298N - Dual Full-Bridge Driver | |
Darlington Transistor Arrays Based - 3A@50v peak | |
Flavour II - 2 DC Motors @12v | |
*/ | |
//Port's Commands Motor A | |
int IN1 = 4; | |
int IN2 = 5; | |
int ENA = 9; | |
//Port's Commands Motor B |
This file contains hidden or 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
/* Project name: L298N - Dual Full-Bridge Driver | |
Darlington Transistor Arrays Based - 3A@50v peak | |
Flavour I - 1 Motor @5v | |
*/ | |
#define IN1 6 | |
#define IN2 7 | |
void setup() { |
This file contains hidden or 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
#define DIR 2 | |
#define STEP 3 | |
#define M0 4 | |
#define M1 5 | |
#define M2 6 | |
int dPause = 100; | |
void setup() |
This file contains hidden or 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
/* Project Ardu_Serie # 48 | |
EASYDRIVER: 4-Wire-Stepper Motor Driver - Brian Schmalz Design on A3967 IC | |
Bi-Polar Motors — .75A@30v peak — Making Using This a Breeze! | |
Code I | |
From: Brian Schmalz - Easy Driver Examples - Sample code and projects to get your stepper running! | |
http://www.schmalzhaus.com/EasyDriver/Examples/EasyDriverExamples.html | |
Objective: Hi,This is the most basic example you can have with an Arduino, | |
an Easy Driver, and a stepper motor;) | |
*/ |
This file contains hidden or 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
/* | |
Project name: Quick Fun Speed Lab - Ardu_Serie#44 | |
Simpler experiment - Closed Loop Motion Control - Small Fan | |
Flavour I - tachometer: Code From the Book Arduino Internals (file size: ???? bytes) | |
Hex File: _44_Tachometer_Reading_Ticks_01.ino | |
*/ // Fun's Connections definition | |
// In case using bare Arduino: Connect the fun's terminal | |
// on pins 5, 6 and 7 (SGN to pin 5) | |
//#define VCC 6 // VCC - FUN'S RED WIRE - POWER SUPPLY BUS | |
#define SGN 5 // SIGNAL - FUN'S YELLOW WIRE - TACHOMETER |
This file contains hidden or 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
class TMP36 { | |
private: | |
// TMP36 variables | |
float _tempC; | |
int _reading; | |
int _tempPin; // = 1; | |
//custom degree character | |
byte degree[8] = { |
This file contains hidden or 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
/* Project Ardu_Serie # 45 | |
Working w/ MultiFile Sketch - Part IV - Atmega328p IC - Arduino MC | |
Ino File: _45_working_w_MultiFile_Sketch_04.ino | |
*/ | |
#include <LiquidCrystal.h> | |
#include <DFR_LCD_Keypad.h> //Sample using https://www.dfrobot.com library | |
// select the pins used on the LCD panel | |
LiquidCrystal lcd(8, 9, 4, 5, 6, 7); |