Coder Social home page Coder Social logo

petruchito / sylvanian-fireplace Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 6.21 MB

Sylvanian fireplace LED mod.

License: MIT License

LiveScript 32.08% HTML 4.63% C 50.70% C++ 12.43% Perl 0.08% Gnuplot 0.08%
stm8s103f3 pwm led sylvanian stm8 timer

sylvanian-fireplace's Introduction

Sylvanian fireplace LED mod.

A controller to save battery in the Sylvanian Families fireplace

It originally uses small incandescent lamp and simple slide switch. This leads to battery is completely depleted it 1 day if you have forget to turn it off.

I have changed this small incandecent to 3 ultrabright warm white LEDs and added:

  • step-up converter (5V though, the one I had by hand, use 3.3V if you have a choice, for a better efficiency)
  • STM8 controller (small STM8S103F3P9 board from Aliexpress)
  • 3pcs 100ohm resistors
  • peice of bluetack to get rid of white light coming out between the fire and bottom of the fireplace

Here is the layout of components inside the fireplace.

The device runs at high brightness flickering and emulating burning fire for 30 minutes. After this top LED light is dimmed for 1.5 minutes until off. Then both bottom LEDs are dimmed for 15 minutes to constant weak glow, which will then be disabled completely and uC put into halt mode consuming less than 1mA.

There are binary sfp.s19 and option_bytes.hex files in the Release directory, you also can use sft_programmer.stp file to just flash the firmware.

If you wish to generate your own brightness curves - use the Gnuplot: gnuplot -c plot.gp which will create out_candle.dat, then run convert.pl perl script to convert this into pwm_waves.h header file.

There's also candle.gp gnuplot file which can be used to generate smooth splines through points from manual.dat. But it's either too slow to look like a fire or too many points should be added to the file manually.


A video how it looks like:

preview video

sylvanian-fireplace's People

Contributors

petruchito avatar

Watchers

 avatar  avatar

Forkers

dbdmks

sylvanian-fireplace's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.