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
/* Project: Ardu_Serie # 82
* Sharp IR Sensor -  0A41SK 
* 4–30cm Infrared IR Distance Measuring Sensor
*
* INO file: _82_Sharp_Distance_Sensor_01.ino
*
* date: 8/27/19
*
* code by: https://github.com/guillaume-rico
* hardware by: GP2Y0A02YK0F IRSharp (https://www.pololu.com/product/2464)
/* Project: Ardu_Serie # 81
* HC-SR04 Ultrasound sensor 4-Arduino
* Ultra Simple Test Experiment
*
* INO file: _81_HC-SR04_SimpleTest_01.ino
*
* date: 8/25/19
*
* code by: https://forum.arduino.cc
* hardware by: Arduino IDE 1.8.9
/* Project: Ardu_Serie # 80
* 4-Channel Line Tracker Sensor
* Ensures a Successful & Accurately Navigation For Your Robot
*
* INO file: _80_yl70_01.ino
*
* date: 8/24/19
*
* code by: http://www.energiazero.org
* hardware by: Walfront
// Motor x-Axis
int Red = 14; // Firing order for 4-Wire Micro-step Motor
int Brown = 15; // First Brown coil
int Yellow = 16; // Then Yellow coil and so on...
int Orange = 10;
// Motor y-axis
// int Red = 2; // Firing order for 28BYJ-48 Stepper Motor
// int Brown = 3; // First Brown coil
// int Yellow = 4; // Then Yellow coil and so on...
// int Orange = 5;
// File:
// _24_PitBot_PanTilt.ino
// Project:
// PitBot - A Star Is Born
// Working at First Structure in This Sparring Robot - Episode #24
// begin license header
//
// This file is part of Pixy CMUcam5 or "Pixy" for short
//
// All Pixy source code is provided under the terms of the
/*
Code 3
Board: L293D Motor Drive DIP 16 Pin IC & 28BYJ-48 Stepper Motor & Arduino Uno IDE 1.8.5
Connections: See Fritzing in https://medium.com/jungletronics/28byj-48-stepper-motor-peak-rpm-658eae6afe2f
Power Supply: 12v .5A Power Cable right into 5.5mm Jack of Arduino UNO
Max RPM: 24 RPM
*/
int Blue = 0; // Firing order for 28BYJ-48 Stepper Motor
int Pink = 1; // First Blue coil
/*
Code 2
Board: Adafruit Motor/Stepper/Servo Shield for Arduino kit - v1.2 & 28BYJ-48 Stepper Motor & Arduino Uno IDE 1.8.5
Connections: See Fritzing in https://medium.com/jungletronics/28byj-48-stepper-motor-peak-rpm-658eae6afe2f
Power Supply: 5v .5A USB Power Cable right into 5.5mm Jack of Adafruit Board
Max RPM: 15 RPM in FullDriver Mode
*/
#include <AFMotor.h>
// Connect a stepper motor with 64 steps per revolution (5.625 degree)
@giljr
giljr / _68_28BYJ-48_FullStep_01.ino
Last active August 5, 2019 20:10
RPM Configurations & Industrial Conveyor Belt — ArduSerie#68 https://medium.com/jungletronics/28byj-48-stepper-motor-peak-rpm-658eae6afe2f
/*
Code 1
Board: ULN2003 Driver & 28BYJ-48 Stepper Motor & Arduino Uno IDE 1.8.5
Connections: See Fritzing in https://medium.com/jungletronics/28byj-48-stepper-motor-peak-rpm-658eae6afe2f
Power Supply: 12v .5A or 5v .5A USB Power Cable right into 5.5mm Jack of UL2003 Board
Max RPM: Power Supply 5v .5A USB -> #define waiting_time 2 (seconds) MAX 14.5 RPM
Power Supply 9v .5A -> #define waiting_time 1 (seconds) MAX 29.0 RPM
but heat issue happens:/
*/
/*
Ardu-Serie#66
Project : Digispark - Easy Installations Procedures
Ino File: _66_DigiSpark_Blinking_LED_01.ino
*/
void setup() {
pinMode(1, OUTPUT);
/*
Kids-Serie#10
Project : Arduino Start Up
Ino File: _10_All_Features_05.ino
*/
#include <Servo.h>
Servo myServo;