Month: August 2013

Be an unreasonable person

“The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man.”
— George Bernard Shaw

How to control any infrared device using Arduino

If you want to control your TV, Ar-conditioner or any other device that uses a infrared remote control using an Arduino, then you need to know this project:

The source code is available at github:

NOTE: This tip could be used for people looking for Timer/TPM programming for Freescale Kinetis:

Controlling a LED strip using a Lilypad board

I’m using this example to control my LED strip:

Just download the source code from here:

Compile it using the tips from this site:

$ avr-gcc -g -Wall -Os -fno-inline-small-functions -fno-split-wide-types -mshort-calls -mmcu=atmega328p -DF_CPU=16000000L threepixeldemo.c -o led -std=c99

Generate the Intel HEX file:

$ avr-objcopy -j .text -j .data -O ihex led led.hex

Flash it on your board:

# avrdude -p m328p -c usbasp -e -U flash:w:led.hex

Connect the VCC and GND to your board and to LED strip. Then connect the IN wire from LED strip to Lilypad pin label 8.

UPDATE: This guy implemented a PWM to control this WS2811 LED strip:

UPDATE2: Nice tutorial to getting started with AVR and GCC: