dan.mindfill.com Δ

Arduino assembly

Restriction: Work with wire.

Didn’t plan it out this way, but I happened to spot a soldering class down at Sector 67 on this night, so my wire project was actually a circuit board kit.

It’s the ZIFduino modification of the open Arduino architecture for wacky electronics hacking.

See that burned solder and rosin? All those tiny capacitor wire ends, I did that! Woo!

Soldering was a lot easier than I thought once the proper tools were explained.

Here’s me hooking a piezo into it and hopefully not exploding my laptop’s USB port.

My first Wiring program to invert and normalize the analog piezo input somewhat:

int ledPin = 13;
int knockSensor = 0;               
byte val = 0;
int statePin = LOW;
int THRESHOLD = 40;
int DIFFERENCE = 200;
int last = 400;

void setup() {
pinMode(ledPin, OUTPUT); 

void loop() {
  int val = analogRead(knockSensor);
  if (abs(val - last) >= DIFFERENCE || val <= THRESHOLD) {
    statePin = !statePin;
    digitalWrite(ledPin, statePin);
  last = val;

categories: 365 arduino