Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mmitch/signallichtpwm
moodlight color-float software for Signal Board / Signal Licht hardware
https://github.com/mmitch/signallichtpwm
Last synced: 5 days ago
JSON representation
moodlight color-float software for Signal Board / Signal Licht hardware
- Host: GitHub
- URL: https://github.com/mmitch/signallichtpwm
- Owner: mmitch
- Created: 2012-07-14T12:11:20.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2017-07-20T20:35:49.000Z (over 7 years ago)
- Last Synced: 2023-03-11T07:33:01.789Z (almost 2 years ago)
- Language: C
- Size: 10.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
signalLichtPWM
moodlight color-float software for Signal Board / Signal Licht hardwareCopyright (C) 2012 by Christian Garbs
licensed under the GNU GPL v3 or later0xff quickstart
===============1) connect Signal Board + Signal Licht via USB
2) reset Signal Board
3) $ make pwm-licht-3.flash
4) enjoy0x00 contents
=============1 - motivation
2 - usage
3 - status
4 - links0x01 motivation
===============Members of the Chaos Computer Club Hannover Leitstelle 511 e.V. have
created a small modular ATmega developmend board. It consists of a
base board (the Signal Board) which contains the ATmega168 processor,
a USB port for power and programming, a reset button and some
connectors. Different shields for different funtions can be stacked
onto the base board.Currently, only Signal Licht is finished: It contains some LEDs and
can be used as a moodlight.Both Signal Board and Signal Licht can be purchased at the C3H, but
there is one problem: The official moodlight software is not finished
yet, so basically when you get your Signal Board and Signal Licht, it
does not do much.This is where signalLichtPWM comes in: It provides a moodlight
functionality.It also doubles as a way of showing how to use interrupts and to do
software PWM (only two colors on Signal Licht can be controlled
directly via ATmega hardware counters, the third color must be
controlled manually).0x02 usage
==========I expanded the Makefile to automatically compile and flash any C
source in the current directory.To compile and flash "pwm-licht-3.c", just do
$ make pwm-licht-3.flash
This requires that the Signal Board is in programming mode (after
having pressed reset) and connected to your PC via USB.Of course, you need the AVR cross compiling toolchain and correct
permissions to access the USB device, see the Signal Board project
homepage for info on this.On Debian/Ubuntu, at least 'avr-libc', 'avrdude' and 'gcc-avr' are
needed.0x03 status
===========The C code works and is finished. It is shown in different
development states to make it easier to learn and understand what's
done:pwm-licht-1.c dims blue + green LEDs to different levels
pwm-licht-2.c slowly changes blue + green brightness
pwm-licht-3.c complete moodlight with all three colorsI also tried to teach myself some AVR assembler and convert the C code
above to assembler:pwm-licht-1.S proven(?) working inside AVR Studio 4 debugger
pwm-licht-2.S conversion not finished yet
pwm-licht-3.S conversion not started yetMy main problem is that AVR Studio 4 and avr-as don't seem to expect
the same source code / assembler dialect. I simply don't get my
assembler code to compile directly under Linux, only in AVR Studio.
I have not yet tried to write a binary generated by AVR Studio to my
Signal Board, so everything has only been tested inside the debugger.If anybody can help on this assembler issue, please contact me. And
if anybody is interested in the AVR Studio projects, I can add them to
this repository (if I still find them, that was years ago…).0x04 links
==========* signalLichtPWM homepage:
https://github.com/mmitch/signalLichtPWM* Signal Board project homepage:
https://hannover.ccc.de/redmine/projects/signalboard/wiki* Signal Licht project homepage:
https://hannover.ccc.de/redmine/projects/signallicht/wiki* C3H homepage
https://hannover.ccc.de* a photo of my Signal Sound prototype, a different shield for making
music (mostly software problems remain, the hardware works):
https://www.cgarbs.de/blog/archives/1037-Hacking-Warpzone.html