Skip to content

Instantly share code, notes, and snippets.

View Naylamp-Mechatronics's full-sized avatar

Naylamp Mechatronics Naylamp-Mechatronics

View GitHub Profile
/* Funduino Joystick Shield Example
This program simply captures all of the inputs of the Funduino Joystick Shield buttons and
joystick every second and displays them in the Serial Monitor Window.
The Arduino pins below are defined by the shield and cannot be changed.
*/
int const UP_BTN = 2;
int const DOWN_BTN = 4;
int const LEFT_BTN = 5;
int const RIGHT_BTN = 3;
/* FILE: lcd2004_hellotest.ino
DATE: 07/03/2023
VERSION: 1.0
AUTHOR: Naylamp Mechatronics - Peru / Dast.C
*/
#include <LiquidCrystal.h>
/**************************************************************************/
/*!
@author Naylamp Mechatronics
@license BSD (see license.txt)
This example will generate a sine wave with the MCP4725 DAC.
This is an example sketch for the Adafruit MCP4725 breakout board
----> http://www.adafruit.com/products/935
/* FILE: nanoCNCshieldTest.ino
DATE: 30/05/19
VERSION: 0.2
AUTHOR: Naylamp Mechatronics
Basado en el ejemplo HC_CNC_Shield_Test por Andrew Davies de HobbyComponents.com
Este ejemplo prueba la funcionalidad básica del shield CNC para Arduino Nano
Este scketch moverá los ejes X, Y, Z en ambas direcciones. También reportará
via puerto serial si algún final de carrera fue activado.
@Naylamp-Mechatronics
Naylamp-Mechatronics / Shield_cnc_nano.h
Last active May 30, 2019 19:34
Cambios a realizar en el firmware GRBL
//Se puede descargar GRBL desde su repositorio oficial en: https://github.com/gnea/grbl
//En el directorio donde se encuentra GRBL, en el archivo grbl/cpu_map.h es necesario hacer los cambios
// de las siguientes definiciones de pines. Solo reemplazar las siguientes lineas y dejar intacto el resto.
#define X_STEP_BIT 5 // Uno Digital Pin 2
#define Y_STEP_BIT 6 // Uno Digital Pin 3
#define Z_STEP_BIT 7 // Uno Digital Pin 4
//Basado en el ejemplo incluido en la libreria "TFT_22_ILI9225" por Bolukan y Nkawu
//Puede instalar la libreria desde el gestor de librerias de Arduino o desde
//la fuente en https://github.com/Nkawu/TFT_22_ILI9225
//
// Por Naylamp Mechatronics - Perú
// https://naylampmechatronics.com/displays/462-display-a-color-lcd-2inch.html
#include "SPI.h"
#include "TFT_22_ILI9225.h"
@Naylamp-Mechatronics
Naylamp-Mechatronics / servo_rds3115_test.ino
Last active March 8, 2023 00:55
Arduino Sketch to test robotic servos RDS3115 and RDS3135
/* FILE: servo_rds3115_test.ino
DATE: 28/12/2017
LAST M.: 03/01/2018
VERSION: 1.0
AUTHOR: Naylamp Mechatronics - Peru / Dast.C
SERVO TEST RDS3115/RDS3135 180º
*/
#include <Servo.h>