Skip to content

Instantly share code, notes, and snippets.

View dropmeaword's full-sized avatar

Luis Rodil-Fernandez dropmeaword

  • Amsterdam, Netherlands
View GitHub Profile
@dropmeaword
dropmeaword / photogrammetry.md
Created October 1, 2018 20:19
Some notes about creating 3D models from pictures

Photogrammetry software

This is the open source solution that I have used for the Giampilieri project. The interface is less than ideal, saving projects is confusing, it's fairly slow to process and needs CUDA for high density mesh calculations.

https://colmap.github.io/

Also open source kit, but seems to be a collection of libraries for real time pipelines.

https://alicevision.github.io/

@dropmeaword
dropmeaword / anycubic_marlin_1.1.9.md
Last active January 3, 2020 15:47
Anycubic Kossel Linear Plus

30 SEPT 2018

Got it to work now!

Tried this method which seems to go more smoothly than previous tries. The Cura printer definition file and the modified version of Marlin 1.1.9 can be found here. They seems to be working fine. I re-sliced the model using Cura 3.3.1 and that seems to work fine now.


27 SEPT 2018

@dropmeaword
dropmeaword / personal_workflow.md
Last active May 23, 2018 10:38
This is the personal workflow that I explained in class

Your git(hub) workflow

Step #1: clone the repo you want to work on

git clone https://github.com/<myusername>/<myrepo>

Step #2: add your changes

git add my_changed_file.pde

@dropmeaword
dropmeaword / blender_holographic_projection.md
Last active May 20, 2018 11:50
Blender scripts for holographic projection

Array of cameras

The following script creates an array of cameras in position pos, looking at target, with a name prefix of dimensions dimwxdimh, with a distance between cameras specified by hdist and wdist.

import bpy

def  get_cameras(prefix):
    return [obj for obj in bpy.data.objects if( (obj.type =='CAMERA') and (prefix in obj.name) )]
@dropmeaword
dropmeaword / flasher.h
Created March 6, 2018 18:19
LED flasher for Arduino without delays
class Flasher
{
int ledPin; // the number of the LED pin
long OnTime; // milliseconds of on-time
long OffTime; // milliseconds of off-time
// These maintain the current state
int ledState; // ledState used to set the LED
unsigned long previousMillis; // will store last time LED was updated
@dropmeaword
dropmeaword / shybot.ino
Last active November 24, 2017 23:52
This is the shell code for the shy bot of Unit #3 - MDD
int sWAITING = 0;
int sMOVING = 1;
int sSAFETY = 3;
int currentState = sWAITING;
int eyeL = 0;
int eyeR = 0;
int pinLeftEye = 8;
@dropmeaword
dropmeaword / AnalogStats.py
Last active November 15, 2017 16:16
This bit of code, uses the update funtion to calculate a dynamic running average that can be used for accurate analog sensing.
class MovingStats:
def __init__(self, alphaOrN):
self.mean = 0
self.var = 0
self.started = False
if (alphaOrN > 1):
self.alpha = 2 / (alphaOrN - 1)
else:
self.alpha = alphaOrN
@dropmeaword
dropmeaword / ARDUINO_MIDI.md
Last active February 20, 2018 18:07
Using a simple LDR sensor and an ARDUINO as a MIDI control signal

Setting up

You will need an Arduino library, this one will work and the page behind this link also explains how to install it in your Arduino programming environment.

  1. Open your Arduino programming environment (IDE).
  2. In the menu go to Sketch > Include Library > Library Manager...
  3. Search for a library called Arduino MIDI and install it

library manager

Here's the link to the library:

// install the Arduino SC Quarks
Quarks.update("arduino");
Quarks.install("arduino");
Quarks.gui;
// create an Arduino instance
(
p = ArduinoSMS("/dev/tty.wchusbserial1420", 9600);
)
@dropmeaword
dropmeaword / rpifind.py
Last active September 25, 2017 13:07
Find rpi in current network
#!/usr/bin/env python
import subprocess
import os, sys
import platform
import re
HOST_VARS = {}
ANSIBLE_INV = {}
rpi_ip_list = []
rpi_name_list = []