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

Post on 03-Jan-2020

1 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

AVR Moodlight (v4)

Frank Bättermann

March, 27th, 2009

AVR-Moodlight - Frank Bättermann

Overview

● Purpose● Basics

● Color mixing

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

● Project● Design goals

● Hardware / Software

● Demonstration● Future

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

AVR-Moodlight - Frank Bättermann

A... mood... light?

● Decorative light● Living room

● Garden

● Bars, Discos

● Expensive● Not selfmade...

picture: opulentitems.com (1,800 $)

AVR-Moodlight - Frank Bättermann

Color mixing

Subtractive Additive

AVR-Moodlight - Frank Bättermann

Light emitting diode

● Semiconductor

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

packages

● Still expensive● Cooling needed

Seoul P5

AVR-Moodlight - Frank Bättermann

LED in action

Imagine moving pictures here...

AVR-Moodlight - Frank Bättermann

Dimming: PWM

● Duty cycle determines brightness

● 244 Hertz flickering is invisible

Brighter: 50% duty cycle

Darker: 25% duty cycle

AVR-Moodlight - Frank Bättermann

Realizing gradients

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

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)

AVR-Moodlight - Frank Bättermann

Display

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

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

AVR-Moodlight - Frank Bättermann

Short demonstration

If there is time left...

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

AVR-Moodlight - Frank Bättermann

Thank you!

Source code, schematics, PCB:

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

v3 (by-nc-sa)

top related