Skip to content

Instantly share code, notes, and snippets.

View mstroehle's full-sized avatar

mstroehle

View GitHub Profile
@mstroehle
mstroehle / Figure 1 zero-phase.png
Created January 17, 2026 10:18 — forked from endolith/Figure 1 zero-phase.png
Multitone test signal generation (and Rudin-Shapiro sequence) in Python
Figure 1 zero-phase.png
@mstroehle
mstroehle / LICENSE.txt
Created January 17, 2026 10:17 — forked from endolith/LICENSE.txt
Arduino hardware true random number generator
MIT License
Copyright (c) 2012 endolith
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@mstroehle
mstroehle / dual-scope.c
Created November 19, 2020 23:02 — forked from edgar-bonet/dual-scope.c
Dual channel Arduino/AVR oscilloscope
/*
* dual-scope.c: Dual channel Arduino/AVR oscilloscope.
*
* This program alternatively samples analog inputs 0 and 1, with an
* overall sampling rate of about 9615 samp/s (one sample every 104 us),
* i.e. 4808 samp/s per channel. The samples are output as 8-bit binary
* through the serial port at 115200/8N1. A fixed 16-byte ASCII prologue
* is sent at program startup, before the actual binary data, for
* synchronization purposes. The first byte sent after the prologue is a
* sample from channel 0.
@mstroehle
mstroehle / ebclock.ino
Created November 19, 2020 23:02 — forked from edgar-bonet/ebclock.ino
Alternate firmware for Daniel Andrade's binary clock
/*
* ebclock.ino: Edgar's binary clock.
*
* This is an alternate firmware for Daniel Andrade's binary clock.
* For details and schematic, see Daniel's post at
* http://www.danielandrade.net/2008/07/15/binary-clock-with-arduino/
*
* A few things are changed with respect to the original firmware:
* - you can fine-tune the clock speed if it runs too fast or too slow
* - you do not need the 2.2 KOhm pull-up resistors
@mstroehle
mstroehle / sound-meter.ino
Created November 19, 2020 23:02 — forked from edgar-bonet/sound-meter.ino
Arduino sound meter
/*
* sound-meter.ino: Arduino sound meter.
*
* This program continuously samples a sound signal on analog input 0
* and outputs the computed sound intensity through the serial port.
*
* The analog-to-digital converter is set to "free running mode" and
* takes one sample every 104 us. After subtracting a DC offset
* (constant dc_offset below), the samples are squared and low-pass
* filtered with a time constant of 256 sample periods (26.6 ms). They
@mstroehle
mstroehle / interpreter.ino
Created November 19, 2020 23:00 — forked from edgar-bonet/interpreter.ino
Simple Arduino command line interpreter
/*
* interpreter.ino: Simple Arduino command line interpreter.
*
* This is intended solely as a template for building richer,
* application-specific interpreters. Add your specific commands to the
* exec() function, and whatever you need to setup() and loop().
*
* Usage:
* Talk to it through the serial port at 9600/8N1. Commands should be
* terminated by CR (\r), answers are terminated by CRLF (\r\n). This
@mstroehle
mstroehle / tdms_reading_options.m
Created June 14, 2019 15:58 — forked from JimHokanson/tdms_reading_options.m
Shows how to read parts of a file using TDMS_reader
%Code: https://www.mathworks.com/matlabcentral/fileexchange/30023-tdms-reader
file_path = 'D:\repos\SVN_FOLDERS\Labview\TDT_Controller\Modules\ENG Recorder\Data\Block-003_ENG.tdms';
%TDMS file and index at (download index to speed up reading)
%https://drive.google.com/drive/folders/1iiwPMvn5l5nrMOwrt5sSBYrCm7SyJAi1?usp=sharing
%This file contains:
%/'Data'/'Trigger'
%/'Data'/'Distal'
@mstroehle
mstroehle / webgl.py
Created April 2, 2019 19:52 — forked from yorikvanhavre/webgl.py
A FreeCAD webGL maker
import FreeCAD,WebGui
SCALE = 10 # global scale modifier
template = """<!DOCTYPE HTML>
<html lang="en">
<head>
<title>FreeCAD webGL viewer</title>
<meta charset="utf-8">
<style type="text/css">
@mstroehle
mstroehle / tarcheatsheet.md
Created June 21, 2018 10:03 — forked from haskaalo/tarcheatsheet.md
Tar usage / Tar Cheat Sheet

Tar Usage / Cheat Sheet

Compress a file or directory

e.g: tar -czvf name-of-archive.tar.gz /path/to/directory-or-file

  • -c: Create an archive.
  • -z: Compress the archive with gzip.
  • -v: makes tar talk a lot. Verbose output shows you all the files being archived and much.
  • -f: Allows you to specify the filename of the archive.
@mstroehle
mstroehle / PowerShellFileSearch.md
Created June 12, 2018 18:49 — forked from Derrien211/PowerShellFileSearch.md
[PowerShell Filesearch] Eine Übersicht über Befehle zur Dateisuche mit PowwrShell #PowerShell #Filesearch

Übersicht

Sucht Strings in Dateien und gibt den Pfad zurück

Get-ChildItem -recurse | Select-String -pattern "dummy" | group path | select name

Mit Softwraps der Ergebnisse