Skip to content

Instantly share code, notes, and snippets.

View ArsenioDev's full-sized avatar
🚀
May or may not contain missiles

Arsenio Menendez ArsenioDev

🚀
May or may not contain missiles
View GitHub Profile
@stdlogicvector
stdlogicvector / fdxd1417.md
Last active December 5, 2023 03:54
FDXD-1417 Notes

FDXD-1417

  • 356mm x 427mm active Area
  • 2560 x 3072 Pixel (7864320 * 14bit => 15.73MB)
  • 139µm Pixel Pitch
  • 14bit Resolution
  • 12V, 2A max.

Initialisation

@cetinajero
cetinajero / ddrescue.md
Last active July 1, 2024 15:45
Guide for using Ddrescue to recover data

Guide for using Ddrescue to recover data

Start command:

ddrescue -d /dev/sda output.img output.mapfile

NOTE: If direct disc access is not available in your system, try raw devices.

@benfasoli
benfasoli / adc_worker.ino
Created March 28, 2019 22:26
Arduino template for polling analog voltages at given interval
// Ben Fasoli
const int n = 6;
const int pins[n] = {A0, A1, A2, A3, A4, A5};
const float slope[n] = {1, 1, 1, 1, 1, 1};
const float intercept[n] = {0, 0, 0, 0, 0, 0};
// Board reference voltage measured on aref pin
const float refVoltage = 4.93; // V
@neuroprod
neuroprod / BCMotor.h
Created May 27, 2017 10:34
Arduino brushless motor driver
//
// BCMotor.h
// RollingCube
//
// Created by Kris Temmerman on 03/10/15.
//
//
#ifndef BCMotorCube_h
#define BCMotorCube_h
#include "I2Cdev.h"
#include "MPU6050_6Axis_MotionApps20.h"
#include "MPU6050.h"
#include "Wire.h"
// ==========================================================================================
// The following code was written by Jeff Rowberg to make the MPU6050 usable.
// ==========================================================================================
anonymous
anonymous / arduino.ino
Created June 12, 2016 21:19
const int phase1pin = 3;
const int phase2pin = 5;
const int phase3pin = 6;
float holdTime;
float targetSpeed;
unsigned long p1start,
p1end,
p2stafghfgfghrt,
@BTelsang
BTelsang / position_ctr.ino
Created January 28, 2016 13:30
Position control of a DC motor using Arduino micro. DC motor type: Faulhaber - Series 2607 ... SR IE2-16. Motor driver: L293DNE
#include <Encoder.h>
#define ENCODER_USE_INTERRUPTS
int driverEN = 11; //Enable input to the driver
int motorPWM1 = 8; //PWM signal to the motor pin of the driver
int motorPWM2 = 9;
Encoder myenc(3,7);
void setup(){
Serial.begin(9600);
@AdySan
AdySan / FiberOpticLamp.ino
Created January 14, 2016 04:40
Philips Hue Clone using ESP8266
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#include <PubSubClient.h>
#include <Adafruit_NeoPixel.h>
#define PIN D8
Adafruit_NeoPixel strip = Adafruit_NeoPixel(6, PIN, NEO_GRB + NEO_KHZ800);
@AdySan
AdySan / HueLight.ino
Created December 22, 2015 03:57
Philips Hue clone using ESP8266 and NeoPixels along with HAP-NodeJS
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#include <PubSubClient.h>
#include <Adafruit_NeoPixel.h>
#define PIN D4
Adafruit_NeoPixel strip = Adafruit_NeoPixel(16, PIN, NEO_GRB + NEO_KHZ800);
anonymous
anonymous / gist:4702547
Created February 3, 2013 16:54
/******************************************************************
* PID Simple Example (Augmented with Processing.org Communication)
* Version 0.3
* by Brett Beauregard
* License: Creative-Commons Attribution Share-Alike
* April 2011
******************************************************************/
#include <PID_v1.h>
#include <MegaEncoderCounter.h>