Skip to content

Instantly share code, notes, and snippets.

View mnemocron's full-sized avatar
:octocat:
bonk!

Simon Burkhardt mnemocron

:octocat:
bonk!
View GitHub Profile
// WARCAMPING
/*
* Board:
* https://www.sparkfun.com/products/13231
* with SD card
*
* Pinout
* https://cdn.sparkfun.com/assets/learn_tutorials/4/4/5/esp8266-thing-pinout.png
*
* git clone https://github.com/esp8266/Arduino.git
@mnemocron
mnemocron / PS4BT_HobbyKing_ESC_motorcontrol.ino
Created July 2, 2017 16:09
Control a brushless DC motor wirelessly using a Dualshock 4 controller and an ESC.
/**
* @author Simon Burkhardt - github.com/mnemocron
* @date 2017-07-02
*
* This sketch demonstrates, that you can control a brushless DC motor wirelessly using a Dualshock 4 controller.
*
* Connections: 11.1V power supply
* |
* v
* Dualshock 4 --(Bluetooth)--> USB Host Shield (w/Bluetooth adapter) --> Arduino --> ESC --> brushless DC motor
@mnemocron
mnemocron / HobbyKing_ESC_Calibration.ino
Last active August 22, 2017 16:44
Tutorial to set up and calibrate a Hobbyking brushless motor control with an Arduino.
/**
* @author: Simon Burkhardt - github.com/mnemocron
* @date: 2017-07-02
*
* Calibrate HobbyKing ESC (tutorial)
* tested with:
* ESC: HK-SENS-35A https://hobbyking.com/en_us/hobbykingr-tm-35a-sensored-sensorless-car-esc-1-10-1-12.html
* Motor: Quanum MT 1806-1600KV https://hobbyking.com/en_us/quanum-mt-series-1806-2300kv-brushless-multirotor-motor-built-by-dys.html
* Arduino Uno
* 11V / 3A bench power supply
@mnemocron
mnemocron / unicode-spammer.py
Created August 25, 2017 06:54
quick unicode garbage creator
#!/usr/bin/python
#_*_ coding: utf-8 _*_
# python unicode-spammer.py > unicodes.txt
# generates all possible unicode characters
# use the generated garbage to test the behaviour of user input fields
# GIGO
import unicodedata
#include <Adafruit_NeoPixel.h>
#define PIN 6
#define NUM_LEDS 8
#define COLOR_PRESET 0x00F02000 // orange
// Parameter 1 = number of Pixels in strip
// Parameter 2 = Arduino pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
// NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs)
@mnemocron
mnemocron / Adafruit_NeoPixel::Color(String).ino
Last active August 25, 2017 08:24
idea for a another overloading function for the Adafruit
#include <Adafruit_NeoPixel.h>
#include <string.h>
class NeoPixel : public Adafruit_NeoPixel
{
public:
NeoPixel(uint16_t pixels, uint8_t pin, uint8_t type):Adafruit_NeoPixel(pixels, pin, type){};
uint32_t Color( String col_str ){
// int to hex - 16 chars + terminator
@mnemocron
mnemocron / wearableRGBW-NeoPatterns.ino
Last active August 27, 2017 08:04
project failed due to hardware issues - code for reference
// #include <EEPROM.h>
#include <TimerOne.h> // timer interrupts
#include <OneButton.h> // button library
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
/*
@mnemocron
mnemocron / random-berndeutsch.py
Created October 4, 2017 12:46
Selects a random word from the json word list (for a Telegram bot)
#!/usr/bin/python
#_*_ coding: utf-8 _*_
'''
@author Simon Burkhardt - simonmartin.ch - github.com/mnemocron
@date 2017
'''
import random
import sys # args
#!/bin/bash
# @title : debian-setup.sh
# @author : Simon Burkhardt - simonmartin.ch
# @date : 2017-12-23
# @version : 1.1.0
# @copyright : CC0 - https://creativecommons.org/publicdomain/zero/1.0
# @brief : Install beautiful stuff, uninstalls useless gnome bloatware
# @details : none
# @date : 10.04.2017
@mnemocron
mnemocron / Fensterfunktionen.java
Last active April 27, 2018 14:15
Fensterfunktionen für Signalverarbeitung
package pro2e.matlabfunctions;
import java.math.BigDecimal;
public class Fensterfunktionen {
/**
* @brief enumerations for the different window functions
*/
public static final int RECTANGULAR = 0;
public static final int CHEBYSHEV = 1;