Skip to content

Instantly share code, notes, and snippets.

View giljr's full-sized avatar
💭
Full Stack Developer with a degree in Computer Engineering.

Gilberto Oliveira Jr giljr

💭
Full Stack Developer with a degree in Computer Engineering.
View GitHub Profile
@giljr
giljr / _10_SimulateAnalogOutput_03.ino
Created December 2, 2018 01:42
Arduino UNO — Quick Intro A Workshop in BSB with the Kids :) https://medium.com/kidstronics/arduino-uno-quick-intro-94c7c682740a
/*
Kids-Serie#10
Project : Arduino Start Up
Ino File: _10_SimulateAnalogOutput_03.ino
*/
void setup() { // put your setup code here, to run once:
pinMode(3, OUTPUT); // LED connected
@giljr
giljr / _10_PushButton_02.ino
Created December 2, 2018 01:38
Arduino UNO — Quick Intro A Workshop in BSB with the Kids :) https://medium.com/kidstronics/arduino-uno-quick-intro-94c7c682740a
/*
Kids-Serie#10
Project : Arduino Start Up
Ino File: _10_PushButton_02.ino
*/
void setup() { // put your setup code here, to run once:
pinMode(3, OUTPUT); // LED connected
@giljr
giljr / _10_Blinking_LED_01.ino
Created December 1, 2018 22:31
Arduino UNO — Quick Intro A Workshop in BSB with the Kids :) https://medium.com/kidstronics/arduino-uno-quick-intro-94c7c682740a
/*
Kids-Serie#10
Project : Arduino Start Up
Ino File: _10_Blinking_LED_01.ino
*/
void setup() {
/*
Project name:
16 #arduSerie - Arduino Headless Setup & ESP 8266
(WIFI cheap chip!)
Flavour I -
Hex File: _16_arduSerie_sketch_01.HelloServer_Json.ino
Revision History:
20160927:
- board found on Arduino IDE Exemples
(connect everything on ESP8266 to access examples)
/*
BTS 7960B
*/
int RPWM1 = 5; // Two board used here, 1
int LPWM1 = 6;
int L_EN1 = 7;
int R_EN1 = 8;
int RPWM2 = 9; // and 2
const int AIA = 3;
const int AIB = 4;
const int BIA = 5; // If you have the dual driver remove
const int BIB = 6; // the comments and enable the other engine
byte speed = 255;
void setup() {
Serial.begin(9600);
pinMode(AIA, OUTPUT);
pinMode(AIB, OUTPUT);
// HALF STEP
#define stepper PORTB
#define waiting_time 500
void setup() {
for (int z = 8; z < 12; z++) {
pinMode(z, OUTPUT); // pins 8,9,10,11 output for driving the motor
// Full Step
#define stepper PORTB
#define waiting_time 500
void setup() {
for (int z = 8; z < 12; z++) { // FULL STEP DRIVE
pinMode(z, OUTPUT); // pins 8,9,10,11 output for driving the motor
}
// WAVE DRIVE
#define stepper PORTB
#define waiting_time 500
void setup() {
for (int z = 8; z < 12; z++) {
pinMode(z, OUTPUT); // pins 8,9,10,11 output for driving the motor
#define control1 8 // pin that controls the MOSFET
#define control2 9 // pin that controls the MOSFET
void setup() {
pinMode(control1, OUTPUT); // define control pin as output
pinMode(control2, OUTPUT); // define control pin as output
Serial.begin(9600);