avr moodlight (v4) - ich war hier · avr-moodlight - frank bättermann sparetime inc. founded in...

16
AVR Moodlight (v4) Frank Bättermann March, 27th, 2009

Upload: others

Post on 03-Jan-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: AVR Moodlight (v4) - ich war hier · AVR-Moodlight - Frank Bättermann sparetime Inc. Founded in july 1984 Headquarters in room 82 Flexible work time No earnings No shareholders

AVR Moodlight (v4)

Frank Bättermann

March, 27th, 2009

Page 2: AVR Moodlight (v4) - ich war hier · AVR-Moodlight - Frank Bättermann sparetime Inc. Founded in july 1984 Headquarters in room 82 Flexible work time No earnings No shareholders

AVR-Moodlight - Frank Bättermann

Overview

● Purpose● Basics

● Color mixing

● Light emitting diodes (LEDs), dimming (PWM)

● Project● Design goals

● Hardware / Software

● Demonstration● Future

Page 3: AVR Moodlight (v4) - ich war hier · AVR-Moodlight - Frank Bättermann sparetime Inc. Founded in july 1984 Headquarters in room 82 Flexible work time No earnings No shareholders

AVR-Moodlight - Frank Bättermann

sparetime Inc.

● Founded in july 1984● Headquarters in room 82● Flexible work time● No earnings● No shareholders● Freedom of interests

● World's greatest company... seriously

Page 4: AVR Moodlight (v4) - ich war hier · AVR-Moodlight - Frank Bättermann sparetime Inc. Founded in july 1984 Headquarters in room 82 Flexible work time No earnings No shareholders

AVR-Moodlight - Frank Bättermann

A... mood... light?

● Decorative light● Living room

● Garden

● Bars, Discos

● Expensive● Not selfmade...

picture: opulentitems.com (1,800 $)

Page 5: AVR Moodlight (v4) - ich war hier · AVR-Moodlight - Frank Bättermann sparetime Inc. Founded in july 1984 Headquarters in room 82 Flexible work time No earnings No shareholders

AVR-Moodlight - Frank Bättermann

Color mixing

Subtractive Additive

Page 6: AVR Moodlight (v4) - ich war hier · AVR-Moodlight - Frank Bättermann sparetime Inc. Founded in july 1984 Headquarters in room 82 Flexible work time No earnings No shareholders

AVR-Moodlight - Frank Bättermann

Light emitting diode

● Semiconductor

● „Clean“ color● High effiency● Various sizes &

packages

● Still expensive● Cooling needed

Seoul P5

Page 7: AVR Moodlight (v4) - ich war hier · AVR-Moodlight - Frank Bättermann sparetime Inc. Founded in july 1984 Headquarters in room 82 Flexible work time No earnings No shareholders

AVR-Moodlight - Frank Bättermann

LED in action

Imagine moving pictures here...

Page 8: AVR Moodlight (v4) - ich war hier · AVR-Moodlight - Frank Bättermann sparetime Inc. Founded in july 1984 Headquarters in room 82 Flexible work time No earnings No shareholders

AVR-Moodlight - Frank Bättermann

Dimming: PWM

● Duty cycle determines brightness

● 244 Hertz flickering is invisible

Brighter: 50% duty cycle

Darker: 25% duty cycle

Page 9: AVR Moodlight (v4) - ich war hier · AVR-Moodlight - Frank Bättermann sparetime Inc. Founded in july 1984 Headquarters in room 82 Flexible work time No earnings No shareholders

AVR-Moodlight - Frank Bättermann

Realizing gradients

Page 10: AVR Moodlight (v4) - ich war hier · AVR-Moodlight - Frank Bättermann sparetime Inc. Founded in july 1984 Headquarters in room 82 Flexible work time No earnings No shareholders

AVR-Moodlight - Frank Bättermann

AVR Moodlight

● Design goals● Learn about AVR microcontrollers

● Standalone device

● As cheap and simple as possible

● Extendable (with electronic skills)

● History● v1: 2x16 characters LCD, 1 output, ATmega88

● v2: 4x20 LCD, crossover network, ATmega168

● v3: temperature sensor, EEPROM, 4 outputs, ATmega128

Page 11: AVR Moodlight (v4) - ich war hier · AVR-Moodlight - Frank Bättermann sparetime Inc. Founded in july 1984 Headquarters in room 82 Flexible work time No earnings No shareholders

AVR-Moodlight - Frank Bättermann

Software

● The very most work: ~1000 hours/18 months● Written in pure C

● Realtime operating system: FreeRTOS● Independend tasks and inter-task-communication

● 6 Modes● Fixed color; preset fades; random fades

● Temperature; Time of day; Analog Input (4 channel)

Page 12: AVR Moodlight (v4) - ich war hier · AVR-Moodlight - Frank Bättermann sparetime Inc. Founded in july 1984 Headquarters in room 82 Flexible work time No earnings No shareholders

AVR-Moodlight - Frank Bättermann

Display

Menu, system information, mode & color, time...

Page 13: AVR Moodlight (v4) - ich war hier · AVR-Moodlight - Frank Bättermann sparetime Inc. Founded in july 1984 Headquarters in room 82 Flexible work time No earnings No shareholders

AVR-Moodlight - Frank Bättermann

Hardware

ControllerExternal

power supply

LED module(small)

Controller

LED module LED module

RGB signal

Low supply current

High supply current

Page 14: AVR Moodlight (v4) - ich war hier · AVR-Moodlight - Frank Bättermann sparetime Inc. Founded in july 1984 Headquarters in room 82 Flexible work time No earnings No shareholders

AVR-Moodlight - Frank Bättermann

Short demonstration

If there is time left...

Page 15: AVR Moodlight (v4) - ich war hier · AVR-Moodlight - Frank Bättermann sparetime Inc. Founded in july 1984 Headquarters in room 82 Flexible work time No earnings No shareholders

AVR-Moodlight - Frank Bättermann

Future

● Use extension connector● Buzzer (alarm clock)

● Clap switch (on, off, next color...)

● IR remote

● Use analog input● Re-attach crossover network

● Measure houseplants humidity?

● Add bigger/smaller LED modules

Page 16: AVR Moodlight (v4) - ich war hier · AVR-Moodlight - Frank Bättermann sparetime Inc. Founded in july 1984 Headquarters in room 82 Flexible work time No earnings No shareholders

AVR-Moodlight - Frank Bättermann

Thank you!

Source code, schematics, PCB:

http://www.mikrocontroller.net/topic/123253

v3 (by-nc-sa)