Attiny13 PWM Candle

While ago I found project that emulates candle flame using attiny13 MCU and two colored LED (red/yellow) or alternately two separate LED’s. Project author used method of randomly turning on and off LED’s and it looked relatively OK but it was a bit hard for eyes. I decided to make it from scratch using PWM (Pulse wide modulation) that randomly changes light intensity instead of turning on and off completely LED’s. It resulted in much more realistic candle flame simulation. It’s handy for making romantic atmosphere without fear of setting fire 😉

Schematic

LED’s are connected through 100Ω resistor to PB0 and PB1 attiny13 pins (pin 5 and 6). Attiny is powered from 5V source. Program is written in Bascom. One thing that should be done while programming attiny is to change lfuse from 6A to 7A so that MCU clock is changed from default 1.2MHz to 9.6MHz and that also changes PWM speed so there is no visible blinking of LED’s due to low PWM frequency.

And here is source and compiled hex file for download


pwmsveca.bas
pwmsveca.hex

Arduino NodeMCU and esp8266

I recently got esp8266 cheap wifi module. I had idea to use it with arduino and existing project that was using CmdMessenger library to comunicate over serial/usb port. After playing with esp8266 I found nice solution to how to replace serial cable. I installed NodeMCU on esp8266 and installed on it two scripts

and

when booting telnet server is opened on port 1001 and ip address is sent to arduino (“5,192.168.0.10;”) so that it can be printed on LCD. When connected from computer to esp8266 using python (terminal on 1001) i send for example  uart.write(0,”1,255;”) and “1,255;” is sent to arduino and when arduino send something back to PC i send it like “print”123″” and 123 is printed on terminal/sent to python.

Hotkeys

I have couple of programs that I use very often and I needed some utility that would let me start them using keyboard shortcut. I searched internet but could not find anything simple enough that would suite me, so I decided to make my own simple utility that would allow me this.

Hotkeys is very simple. Upon starting icon will be shown in taskbar and right click opens menu.

menu

selecting Edit Hotkeys opens new window where you can edit your shortcuts.

edit

Shown above is one shortcut for notepad. Ctrl is checked and “1” is entered as shortcut which means that pressing simultaneously Ctrl+1 will open notepad. Clicking on Apply shortcuts are saved (just closing window dismisses all changes). All shortcuts are saved into .ini file located in programs directory. Program is written in autoitscript and source is also available bellow for download. Any suggestions and comments are more than welcome 😉

HotKeys-install – Program Installation

HotKeys-en – zipped exe file

Hotkeys-src – source (autoitscript)