Close

The flux compensator

A project log for blinking things

this is a rebranded project, sorry guys. take your skulls/likes back if you want :)

davedarkodavedarko 10/13/2016 at 04:355 Comments

Please. I know. It's flux capacitor. But that might happen to every german-syncronized-movie-watching person. Maybe it's because of the drawing that says "flux compression". I still want to know what happened there.

Parts are all 1206 and super easy to solder.


Version 1


Version 1 - Rev 1


Version 1 - Rev 2 - final

I've updated the design to also have a battery holder and a switch (yay), also soldering points for a clip. Checkout #FLUX capacitor trinket for future updates :) ALSO: there's a four led, more resistors version by @Bastiaan - #Mini flux capacitor prop PCB

Order from OSH Park


int outer = 0;
int center = 1;
int inner = 2;
int pwmValue = 22;
int timeLength = 250;
int delayValue = 10;
void setup() {
  // put your setup code here, to run once:
  pinMode(outer, OUTPUT);
  pinMode(center, OUTPUT);
  pinMode(inner,  OUTPUT);
}
void loop() {
  // put your main code here, to run repeatedly:
    softPWM (outer);
    softPWM (center);
    softPWM (inner);
    delay(timeLength);
}
void softPWM (int pin)
{ 
  for (int j=0; j<timeLength/delayValue; j++)
  {
    for (int i=0; i<pwmValue; i++)
    {
      digitalWrite(pin, HIGH);
      delayMicroseconds(delayValue);
    }
    for (int i=pwmValue; i<=255; i++)
    {
      digitalWrite(pin, LOW);
      delayMicroseconds(delayValue);
    }  
  }
}

Discussions

Adam Haile wrote 06/19/2017 at 14:36 point

You have a BOM handy? I have to build this :)

  Are you sure? yes | no

davedarko wrote 06/19/2017 at 15:26 point

attiny13 or attiny45/85
9 x 1206 white LEDs,
3 x 0805 150 Ohm resistors 
one of those (http://www.ebay.de/itm/192210025785)
and one of those (http://www.ebay.de/itm/291398146523)

I think that's all :D

  Are you sure? yes | no

Frank Buss wrote 06/16/2017 at 06:03 point

It was a mistranslation for the German version:

http://backtothefuture.wikia.com/wiki/Flux_capacitor

I guess the translators are not engineers :-)

  Are you sure? yes | no

davedarko wrote 06/16/2017 at 06:09 point

I guess I lived too long with automatic translations and google and dict.cc :D

  Are you sure? yes | no

Joel Nicklasson wrote 10/20/2016 at 16:09 point

Very nice

  Are you sure? yes | no