Skip to content

Instantly share code, notes, and snippets.

@ericfont
ericfont / WORKS_annotated_impedance_balanced_to_single_ended_positive-only-op-amp_exactly_1pt65v_capacitively-biased_circuit-20220328.circuitjs.txt
Last active April 5, 2022 15:32
circuitjs for converting balanced audio into single-ended biased around 1.65v and remove noise.
$ 65 1e-8 263.0686190299136 63 5 43 5e-11
w -496 208 -336 208 0
w -496 384 -336 384 0
b -809 125 -356 485 0
x -796 79 -578 82 4 12 Model\sof\show\sthe\sbalanced\saudio\scomes:
x -797 101 -436 104 4 8 •\s60\sHz\snoise\s(B)\sfrom\spower\slines\sgets\sadded\sin\sphase\sto\soriginal\ssignal\s(A)\sand\sto\sinverse\ssignal\s(-A).
209 -128 384 -208 384 0 0.000009999999999999999 1.6190470112865065 1.65 0.1
209 -128 208 -208 208 0 0.000009999999999999999 1.6505183937354877 1.65 0.1
212 -624 208 -576 208 0 2 a\pb
g -528 416 -528 448 0 0
@cnlohr
cnlohr / forgot_to_check_out_with_recurse_submodules.md
Last active May 10, 2024 15:59
Git forgot to clone recursively (forgot to check out with recurse submodules)
@askpatrickw
askpatrickw / ESP32S2-Camera-Interface-Research.md
Last active May 2, 2024 15:00
Research about the ESP32-S2 Camera Interface

Research about the ESP32-S2 Camera Interface

I am very interested in the ESP32-S2's camera port and the possibility of using it for a variety of MicroPython\CircuitPython projects. My hope is that the ESP32-S2 will the ability to do do things similiar to what is possible on the Raspberry Pi. Today there is no ESP32-S2 board available which exposes this port, and no camera modeles, but I wanted to understand the hardware capabilities to understand what might be possible and just as important, what is not.

This write up is based on solely on a morning's worth of research. If there are errors

/*
Capacitive Sensing methods using Arduino
Visit https://bashtelorofscience.wordpress.com/ for a description and the circuit required to make this work.
Please see https://www.arduino.cc/en/Reference/PortManipulation for an explanation on the direct I/O access used in this sketch.
note:
the assembler command
__asm__("nop\n\t");
is used in the sketch to do single clock (62ns) delays.
@Brainiarc7
Brainiarc7 / ffmpeg-vp8&9-encode-test-vaapi-intel.md
Last active December 31, 2023 02:19
PSA: You can now use FFmpeg's VAAPI-based VP8 and VP9 encoder on Skylake+ systems on Linux: Tested on Ubuntu 16.04LTS

Build VAAPI with support for VP8/9 decode and encode hardware acceleration on a Skylake validation testbed:

Build platform: Ubuntu 16.04LTS.

First things first:

Install baseline dependencies first

sudo apt-get -y install autoconf automake build-essential libass-dev libtool pkg-config texinfo zlib1g-dev libva-dev cmake mercurial libdrm-dev libvorbis-dev libogg-dev git libx11-dev libperl-dev libpciaccess-dev libpciaccess0 xorg-dev intel-gpu-tools

@dev001hajipro
dev001hajipro / build.bat
Created April 24, 2017 07:47
emscripten draw pixels and scale by SDL_RenderCopy
emcc test_pixel2.c ^
-O2 ^
-Wall -Wextra -pedantic ^
-s USE_SDL=2 ^
-s USE_SDL_IMAGE=2 -s SDL2_IMAGE_FORMATS="[""png""]" ^
-s USE_SDL_TTF=2 ^
--preload-file assets ^
-o test_pixel2.html
@yoggy
yoggy / SerialPort.cpp
Created August 11, 2012 10:58
SerialPort class sample using boost::asio::serial_port
#include "StdAfx.h"
#include <Setupapi.h>
#pragma comment(lib, "Setupapi.lib")
#include "SerialPort.h"
SerialPort::SerialPort(void) : end_of_line_char_('\n')
{
}