Lighthouse - Isle of Lewis - Scale Model by CPomeroy 3d
3dmdb logo
Thingiverse
Lighthouse - Isle of Lewis - Scale Model by CPomeroy

Lighthouse - Isle of Lewis - Scale Model by CPomeroy

by Thingiverse
Last crawled date: 3 years ago
A tiny model of the lighthouse at the north of the Isle of Lewis, in the Outer Hebrides. I put a warm white straw hat LED in the final thing and made a bit of code to flash the light realistically. It was not an easy print, and I would suggest scaling it up - the features were at the bare minimum of what was possible for the printer and I had a few failures.
Contains an Attiny85 chip running the following code:
void setup()
{
pinMode(0, OUTPUT);
int brightness = 0;
int x = 0;
}
void loop() {
for(int x = 0 ; x <= 450; x++) {
int brightness = 1+(x/7.63);
analogWrite(0, brightness);
delay(1);
}
for(int x = 0 ; x <= 100; x++) {
int brightness = 60+(1.95*x);
analogWrite(0, brightness);
delay(1);
}
analogWrite(0, 255);
delay(100);
for(int x = 100 ; x >= 0; x--) {
int brightness = 60+(1.95*x);
analogWrite(0, brightness);
delay(1);
}
for(int x = 450 ; x >= 0; x--) {
int brightness = 1+(x/7.63);
analogWrite(0, brightness);
delay(1);
}
analogWrite(0, 1);
delay(3800);
}

Tags