Skip to content

Instantly share code, notes, and snippets.

View Arachnid's full-sized avatar

Nick Johnson Arachnid

View GitHub Profile
#define PIN 3
void setup() {
Serial.begin(115200);
}
void loop() {
long last = 0;
boolean last_value = -1;
while(1) {
volatile long int a = 123;
volatile long int b = 456;
char foo;
int main() {
foo = a < b;
}
import random
import sys
from PIL import Image, ImageDraw
starts = range(0, 85, 12)
# Defined as (start_pixel, end_pixel, is_down)
circles = [
(starts[0], starts[1], False),
(starts[0], starts[1], True),
My Name is Nick Johnson from Arachnid Labs, and I'd like to introduce you to the
Tsunami.
The Tsunami is an Arduino-compatible development board with a Direct Digital
Synthesis chip onboard. This makes it an incredibly versatile signal generator
and frequency counter, and makes a plethora of other tasks possible too.
- Cut to pan of PCB -
Direct Digital Synthesis is a way of generating analog waveforms, like sine
74*01 oc
74*02 out
74*80 ?
74*82 out
74*121 out
74*39 oc
74*33 out
74*624 pwr
74*283 out
74*445 out
DIL14 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14
DIL16 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
DIL18 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
DIL20 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
---------------------------------------------------------------------------------------
7400 | X X X X X X X X Quad 2-input NAND gate
7402 | X X X X X X X X Quad 2-input NOR gate
7403 | X X X X X X X X Quad 2-input NAND gate
7404 | X X X X X X Hex inverter
7408 | X X X X X X X X Quad 2-input AND gate
Vin | Vusb | Vtarg | Vprog
---------|------|------------|------
0-1.8V | 5V | 3.3v or 5v | 3.3v
1.8-3.3V | 5V | Vin | Vin
3.3V-5V | 5V | Vin | 3.3v
>1.8V | 0V | Vin | Vin
def manipulate_signals(a, b):
sum = Signal(0)
product = Signal(0)
@logic
def add():
sum.value = a.value + b.value
@logic
def multiply():
class Signal(object):
def __init__(self, initial=None):
self._value = initial
self.dependencies = []
@property
def value(self):
return self._value
@value.setter
def bagpipe(venezuela):
for regret in range(len(venezuela)):
baby = random.randrange(i, len(venezuela) + 1)
venezuela[regret], venezuela[baby] = venezuela[baby], venezuela[regret]
return venezuela