Skip to content

Instantly share code, notes, and snippets.

@bshambaugh
bshambaugh / gist:cb113144bc9a75e4117f5ef5c684d5bf
Last active October 30, 2025 18:11
VS1053 MIDI snyth/sound module links
https://diyelectromusic.wordpress.com/2020/07/08/arduino-midi-vs1053-synth/ (Arduino MIDI VS1053 Synth)
https://diyelectromusic.wordpress.com/2020/06/04/arduino-simple-midi-controller/ (Arduino Simple MIDI Controller)
https://forum.arduino.cc/t/what-are-the-different-usb-sheild-options-for-an-uno/299676 (usb adapter, usb to serial)
https://www.youtube.com/watch?v=7xIEA66e7eI (DIY VS1053 MIDI Sound Module)
https://datasheetspdf.com/pdf/640613/VLSI/VS1053B/1 (datasheet)
https://www.pschatzmann.ch/home/2022/08/25/arduino-audio-tools-vs1053-real-time-midi/
https://diyelectromusic.wordpress.com/2021/01/09/arduino-midi-vs1003-synth/ (vs1003 synth)
@bshambaugh
bshambaugh / gist:9a78b47571bdb0220db62f505a1a7020
Created September 13, 2023 21:28
npm install mdns error --- maybe a python version problem??
0 verbose cli /usr/local/bin/node /usr/local/bin/npm
1 info using [email protected]
2 info using [email protected]
3 timing npm:load:whichnode Completed in 6ms
4 timing config:load:defaults Completed in 9ms
5 timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 4ms
6 timing config:load:builtin Completed in 6ms
7 timing config:load:cli Completed in 26ms
8 timing config:load:env Completed in 2ms
9 timing config:load:file:/home/brent/Downloads/queryMDNS/.npmrc Completed in 0ms
@bshambaugh
bshambaugh / gist:3da3079286ea05fba616fa47852f8274
Created September 12, 2023 21:32
WifFi Manager by Drone Bot Workshop
https://www.youtube.com/watch?v=VnfX9YJbaU8
WiFiManager with ESP32 - Stop Hard-coding WiFi Credentials! -
DroneBot Workshop
1) Deal with the use of only port 80 and 43 on most public networks with a reverse proxy
https://www.tutorialspoint.com/how-to-configure-nginx-as-reverse-proxy-for-websocket
2) Deal with a changing IP address of the websockets server with
bshambaughOP
08/30/2023 4:44 PM
That reminds me, in https://github.com/bshambaugh/BlinkyProject/blob/remoteSigner/edgeDevices/ESP32-testing/include/websocketserver_config.h I have the IP address of the laptop assigned by the router hardcoded which I can discover by hostname -I on the laptop. Recompiling the ESP32 with the new IP address when I move to a new network like 192.168.1.29 (or even if the router reassigns it .... occasionally locally I go from 10.0.0.4 to 10.0.0.5 and back again) is a pain. I think this is a different issue though....I just need to somehow give my devices unique identifiers, call out to them through some sort of broadcast scheme and pull down their assigned IP addresses.
lots to think about, thanks for your help so far. (Find the IP address
@bshambaugh
bshambaugh / gist:b72a95cf70268b68a6377261d87bf6f5
Created August 4, 2023 19:06
sketch_used_for_sensorica_sign_08042023
// video: https://www.youtube.com/watch?v=vH2QmrpCJuw
// code: https://www.tweaking4all.com/hardware/arduino/arduino-all-ledstrip-effects-in-one/
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h> // Required for 16 MHz Adafruit Trinket
#endif
// Which pin on the Arduino is connected to the NeoPixels?
#define PIN 6 // On Trinket or Gemma, suggest changing this to 1 // white --> green wire
@bshambaugh
bshambaugh / gist:a1c7d66551f22c8c68cf46ad1aa31477
Created April 25, 2023 14:27
go through pospigos REA for HoloChain tutorial and try to replicate it.
https://www.youtube.com/watch?v=CHbl_tHtr3o
@bshambaugh
bshambaugh / gist:2097200d293cef6b9877c205d8da77a1
Created March 22, 2023 10:34
simple button clicker ... needs server
<!DOCTYPE html>
<head>
<meta charset="utf-8" />
<title> Script in head section </title>
<script type = "text/javascript">
function ClickMe() {
console.log("click")
}
</script>
</head>
I worked with this model during the EthDenver https://github.com/spro/char-rnn.pytorch . I did not manage to get the right shape for https://github.com/zkonduit/pyezkl/tree/main/examples/tutorial . (loading the model to convert to *.onnx)
I learned a bit about ML though. :P
You
11:48 AM
https://gist.github.com/bshambaugh/af01e7366ac7f43abd8295533703d990 (other scratch work)
....
You
11:51 AM
Here is my colab python sketches: https://colab.research.google.com/drive/1mi2Rcehz-YWOeXGBNjCe-COR5XhnfPTB
https://docs.arduino.cc/built-in-examples/digital/Button
https://diyprojectslab.com/mcp2515-spi-can-bus-module-with-arduino/#Required_Material
Sensor Data over CAN BUS - Arduino with CAN2515
https://www.youtube.com/watch?v=2gnXKMoFwkc
arduino mcp2515 CAN bus Demo with Push botton and LED
https://www.youtube.com/watch?v=pD22AUjkDAw
@bshambaugh
bshambaugh / gist:af01e7366ac7f43abd8295533703d990
Created March 2, 2023 17:13
likely shape for ONNX for RNN
def main():
torch_model = Circuit()
# Input to the model
shape = [3, 2, 2] /// change to [batch_size, seq_len, input_size]
x = 0.1*torch.rand(1,*shape, requires_grad=True)
y = 0.1*torch.rand(1,*shape, requires_grad=True)
torch_out = torch_model(x, y)
# Export the model
torch.onnx.export(torch_model, # model being run
(x,y), # model input (or a tuple for multiple inputs)