]>
www.fi.muni.cz Git - bike-lights.git/log
Jan "Yenya" Kasprzak [Thu, 29 Nov 2012 20:07:51 +0000 (21:07 +0100)]
pwm.c: typo fixes
Jan "Yenya" Kasprzak [Thu, 29 Nov 2012 13:36:45 +0000 (14:36 +0100)]
firmware: emulate higher resolution of PWM
Emulate the sub-1 LSB resolution of PWM by updating the PWM values
in the timer interrupt routine
Jan "Yenya" Kasprzak [Thu, 29 Nov 2012 13:05:08 +0000 (14:05 +0100)]
adc.c: keep ADC enabled
Jan "Yenya" Kasprzak [Thu, 22 Nov 2012 22:00:00 +0000 (23:00 +0100)]
pwmled: more logging
Jan "Yenya" Kasprzak [Thu, 22 Nov 2012 21:26:08 +0000 (22:26 +0100)]
pwmled: remove old unused function
Jan "Yenya" Kasprzak [Thu, 22 Nov 2012 00:11:31 +0000 (01:11 +0100)]
ambient: new zones
Jan "Yenya" Kasprzak [Wed, 21 Nov 2012 23:58:01 +0000 (00:58 +0100)]
buttons.c: param setup fixes
Jan "Yenya" Kasprzak [Wed, 21 Nov 2012 23:57:03 +0000 (00:57 +0100)]
patterns: zero pattern
similar to off, but does not last forever
Jan "Yenya" Kasprzak [Wed, 21 Nov 2012 23:34:48 +0000 (00:34 +0100)]
pwmled: regulation using sum of differences
Jan "Yenya" Kasprzak [Wed, 21 Nov 2012 23:28:29 +0000 (00:28 +0100)]
adc: log missed timer interrupts
Jan "Yenya" Kasprzak [Wed, 21 Nov 2012 22:15:36 +0000 (23:15 +0100)]
pattern.c: remove unused function
Jan "Yenya" Kasprzak [Wed, 21 Nov 2012 22:14:26 +0000 (23:14 +0100)]
patterns: use mode1_pattern for all PWM LEDs for now
Jan "Yenya" Kasprzak [Wed, 21 Nov 2012 22:12:31 +0000 (23:12 +0100)]
buttons.c: fix for setup timeout
we need to test whether the timeout is reached only when the setup
is in progress ;-)
Jan "Yenya" Kasprzak [Wed, 21 Nov 2012 22:08:22 +0000 (23:08 +0100)]
lights.h: PWM_MAX for better measurements
The PWM frequency should be different than the ADC frequency (125 kHz)
in order to measure in different parts of the PWM cycle (I should have
added a low-pass filter to the ADC inputs, but whatever :-)
Jan "Yenya" Kasprzak [Wed, 21 Nov 2012 22:07:17 +0000 (23:07 +0100)]
adc: measure the offset of the gain-20 stage
We measure the offset of the ADC1:ADC1 gain 20 stage and subtract it
from ADC0:ADC1 and ADC2:ADC1 differential readings.
Jan "Yenya" Kasprzak [Wed, 21 Nov 2012 22:06:04 +0000 (23:06 +0100)]
adc: only 4 measurements for single-ended pwm
Jan "Yenya" Kasprzak [Wed, 21 Nov 2012 20:12:26 +0000 (21:12 +0100)]
buttons: init state when suspended during user params setup
Jan "Yenya" Kasprzak [Wed, 21 Nov 2012 17:14:09 +0000 (18:14 +0100)]
main.c: disable also the analog comparator
Jan "Yenya" Kasprzak [Wed, 21 Nov 2012 17:10:40 +0000 (18:10 +0100)]
adc: average several measurements
Also do not define the MUX values in the table in order to be able
to set also GSEL and ADMUX5 if needed.
Disable the ADC between the conversions.
Jan "Yenya" Kasprzak [Wed, 21 Nov 2012 16:06:20 +0000 (17:06 +0100)]
firmware: button/status LEDs
(maybe the status led handling should be done in a separate module?)
Jan "Yenya" Kasprzak [Wed, 21 Nov 2012 15:30:08 +0000 (16:30 +0100)]
patterns: PATTERN_FOREVER
Jan "Yenya" Kasprzak [Wed, 21 Nov 2012 15:05:37 +0000 (16:05 +0100)]
firmware: buttons-press and pwrdown rework
Reworked short and long button presses. The long press is now also
reported only _after_ release, which allows us to simplify the power-down
case in buttons.c, and even in main.c.
Jan "Yenya" Kasprzak [Wed, 21 Nov 2012 14:32:21 +0000 (15:32 +0100)]
firmware/buttons.c: preliminary user params setup
Jan "Yenya" Kasprzak [Sat, 17 Nov 2012 22:34:41 +0000 (23:34 +0100)]
pwmled.c: use mA-based values instead of PWM value-based
Jan "Yenya" Kasprzak [Sat, 17 Nov 2012 21:58:15 +0000 (22:58 +0100)]
pins.txt: current ranges for 0.033 Ohm sensing resistor
Jan "Yenya" Kasprzak [Sat, 17 Nov 2012 21:21:35 +0000 (22:21 +0100)]
firmware/battery: init function, new resistor sizes
Jan "Yenya" Kasprzak [Sat, 17 Nov 2012 21:15:46 +0000 (22:15 +0100)]
firmware: move PWM_MAX to lights.h
Jan "Yenya" Kasprzak [Sat, 17 Nov 2012 13:00:33 +0000 (14:00 +0100)]
adc.c: MUX for LED 3 is on its final position
Jan "Yenya" Kasprzak [Wed, 14 Nov 2012 00:11:36 +0000 (01:11 +0100)]
pattern.c: make patterns accessible from other modules
Jan "Yenya" Kasprzak [Mon, 12 Nov 2012 22:51:55 +0000 (23:51 +0100)]
pattern.c: start numeric pattern with pause
Jan "Yenya" Kasprzak [Tue, 30 Oct 2012 15:41:15 +0000 (16:41 +0100)]
Makefile: schematics file printing
The image.scm file taken from geda sources, in order to be independent
on actual geda install directories.
Jan "Yenya" Kasprzak [Tue, 30 Oct 2012 15:41:01 +0000 (16:41 +0100)]
schematics: .gitignore web images
Jan "Yenya" Kasprzak [Mon, 12 Nov 2012 22:47:06 +0000 (23:47 +0100)]
battery voltage sensor
Jan "Yenya" Kasprzak [Sun, 11 Nov 2012 20:21:14 +0000 (21:21 +0100)]
num_pattern: longer delay
Jan "Yenya" Kasprzak [Sun, 11 Nov 2012 20:10:47 +0000 (21:10 +0100)]
Ambient light values for 300K/1M5 resistors
Jan "Yenya" Kasprzak [Sun, 11 Nov 2012 18:17:27 +0000 (19:17 +0100)]
firmware: move buttons and GPIO LEDs
Move buttons to PA3, PA4, and GPIO LEDs to PB0,2,4,6 (as in schematics).
Jan "Yenya" Kasprzak [Tue, 30 Oct 2012 15:32:17 +0000 (16:32 +0100)]
schematics/.gitignore
Jan "Yenya" Kasprzak [Tue, 30 Oct 2012 15:31:59 +0000 (16:31 +0100)]
Makefile: make gerber, make fab
Jan "Yenya" Kasprzak [Mon, 29 Oct 2012 15:12:44 +0000 (16:12 +0100)]
ITEAD studio order number
Jan "Yenya" Kasprzak [Mon, 29 Oct 2012 14:12:26 +0000 (15:12 +0100)]
pcb: design rule check fixes
- make signal-sized via anulus 10 mils
- make silk element lines 10 mils
Jan "Yenya" Kasprzak [Mon, 29 Oct 2012 10:30:05 +0000 (11:30 +0100)]
Makefile for creating the web pages
Jan "Yenya" Kasprzak [Mon, 29 Oct 2012 10:29:46 +0000 (11:29 +0100)]
schematics: display the name of the MCP14628 chips
Jan "Yenya" Kasprzak [Mon, 29 Oct 2012 09:01:03 +0000 (10:01 +0100)]
pcb: name of the layout
Jan "Yenya" Kasprzak [Sun, 28 Oct 2012 23:08:03 +0000 (00:08 +0100)]
pcb: more optimizations
Jan "Yenya" Kasprzak [Sun, 28 Oct 2012 22:23:28 +0000 (23:23 +0100)]
pcb: via clearance enhanced, pin sizes fixed
Jan "Yenya" Kasprzak [Sun, 28 Oct 2012 13:02:28 +0000 (14:02 +0100)]
PCB mounting holes
Jan "Yenya" Kasprzak [Fri, 26 Oct 2012 22:26:55 +0000 (00:26 +0200)]
connectors renamed, component orientation labeled
Jan "Yenya" Kasprzak [Fri, 26 Oct 2012 21:50:12 +0000 (23:50 +0200)]
PCB: first fully routed version
Jan "Yenya" Kasprzak [Fri, 26 Oct 2012 21:49:53 +0000 (23:49 +0200)]
USBASP pinout fixed
Jan "Yenya" Kasprzak [Fri, 26 Oct 2012 00:07:05 +0000 (02:07 +0200)]
schematics: more routing of PCB
Jan "Yenya" Kasprzak [Wed, 24 Oct 2012 23:00:29 +0000 (01:00 +0200)]
pcb: wip routed step-down 3
Jan "Yenya" Kasprzak [Wed, 24 Oct 2012 22:33:30 +0000 (00:33 +0200)]
schematics: fix for dual-drain MOSFET
Jan "Yenya" Kasprzak [Wed, 24 Oct 2012 21:53:00 +0000 (23:53 +0200)]
PCB: new placement prepared for fat routes
Jan "Yenya" Kasprzak [Wed, 24 Oct 2012 17:09:10 +0000 (19:09 +0200)]
Schematics: jumper for disconnecting voltage reguator
Jan "Yenya" Kasprzak [Tue, 23 Oct 2012 23:35:01 +0000 (01:35 +0200)]
connectors in schematics reworked
Jan "Yenya" Kasprzak [Tue, 23 Oct 2012 06:20:33 +0000 (08:20 +0200)]
First PCB version
Jan "Yenya" Kasprzak [Mon, 22 Oct 2012 19:12:03 +0000 (21:12 +0200)]
Footprint for SMB diode
Jan "Yenya" Kasprzak [Mon, 22 Oct 2012 15:27:39 +0000 (17:27 +0200)]
lights.sch: footprints and values added
Jan "Yenya" Kasprzak [Mon, 22 Oct 2012 15:27:24 +0000 (17:27 +0200)]
Fingerprint for fuse
Jan "Yenya" Kasprzak [Mon, 22 Oct 2012 15:26:48 +0000 (17:26 +0200)]
lights.prj: project file for gsch2pcb
Jan "Yenya" Kasprzak [Fri, 19 Oct 2012 21:53:03 +0000 (23:53 +0200)]
lights.sch: refdes added to all components
Jan "Yenya" Kasprzak [Fri, 5 Oct 2012 21:44:08 +0000 (23:44 +0200)]
schematics: second step-down merged
Jan "Yenya" Kasprzak [Thu, 4 Oct 2012 22:21:56 +0000 (00:21 +0200)]
schematics: one step-down converter integrated into main
Jan "Yenya" Kasprzak [Thu, 4 Oct 2012 21:36:07 +0000 (23:36 +0200)]
schematics: integrate power module
Without power switch and MOSFET, the power module is simpler, so let's
integrate it to the main schematics.
Author and license added to the description.
Deleted the connectors which need to be reworked.
Jan "Yenya" Kasprzak [Wed, 3 Oct 2012 19:33:46 +0000 (21:33 +0200)]
main.c: allow only long keypress to wake us
Jan "Yenya" Kasprzak [Sun, 30 Sep 2012 20:23:08 +0000 (22:23 +0200)]
power-off function
TODO: factor it out from main.c, probably.
Jan "Yenya" Kasprzak [Sun, 30 Sep 2012 20:22:10 +0000 (22:22 +0200)]
gpio: suspend function, status poweroff led
Jan "Yenya" Kasprzak [Sun, 30 Sep 2012 20:21:29 +0000 (22:21 +0200)]
gpio: port A/B fix
Jan "Yenya" Kasprzak [Sun, 30 Sep 2012 20:11:43 +0000 (22:11 +0200)]
patterns for testing
Jan "Yenya" Kasprzak [Sun, 30 Sep 2012 20:10:46 +0000 (22:10 +0200)]
higher limit for pwm max
Jan "Yenya" Kasprzak [Sun, 30 Sep 2012 19:57:14 +0000 (21:57 +0200)]
tmr: suspend function
Jan "Yenya" Kasprzak [Sun, 30 Sep 2012 19:57:05 +0000 (21:57 +0200)]
pwm: suspend function
Jan "Yenya" Kasprzak [Sun, 30 Sep 2012 19:56:41 +0000 (21:56 +0200)]
adc: suspend function
Jan "Yenya" Kasprzak [Fri, 14 Sep 2012 21:34:31 +0000 (23:34 +0200)]
gpio leds according to new pins.txt
Jan "Yenya" Kasprzak [Fri, 14 Sep 2012 21:01:20 +0000 (23:01 +0200)]
buttons according to pins.txt
Jan "Yenya" Kasprzak [Fri, 14 Sep 2012 20:51:12 +0000 (22:51 +0200)]
pwm: 16-bit pwm and adc values
Jan "Yenya" Kasprzak [Fri, 14 Sep 2012 20:33:02 +0000 (22:33 +0200)]
delete pwm_off(), use pwm_set instead
Jan "Yenya" Kasprzak [Fri, 14 Sep 2012 20:32:02 +0000 (22:32 +0200)]
adc setting according to new pins.txt
Jan "Yenya" Kasprzak [Fri, 14 Sep 2012 20:24:46 +0000 (22:24 +0200)]
Ambient values for 15k and 1M5 resistors
Jan "Yenya" Kasprzak [Fri, 14 Sep 2012 16:56:18 +0000 (18:56 +0200)]
new lights measurement
Jan "Yenya" Kasprzak [Fri, 14 Sep 2012 16:08:53 +0000 (18:08 +0200)]
WIP step-up integrated into main schematics
Jan "Yenya" Kasprzak [Fri, 14 Sep 2012 15:28:12 +0000 (17:28 +0200)]
Schematics modifications
Jan "Yenya" Kasprzak [Fri, 14 Sep 2012 15:26:27 +0000 (17:26 +0200)]
new pin-out with UV LED
Jan "Yenya" Kasprzak [Thu, 13 Sep 2012 21:08:13 +0000 (23:08 +0200)]
step-up convertor at PWM 3 working
Jan "Yenya" Kasprzak [Thu, 13 Sep 2012 21:07:22 +0000 (23:07 +0200)]
pins.txt: new notes for design
Jan "Yenya" Kasprzak [Thu, 13 Sep 2012 12:42:18 +0000 (14:42 +0200)]
Symbol files: add GPL v2 license
Jan "Yenya" Kasprzak [Mon, 10 Sep 2012 19:59:01 +0000 (21:59 +0200)]
gpio led - reflect ambient light
Jan "Yenya" Kasprzak [Mon, 10 Sep 2012 19:55:32 +0000 (21:55 +0200)]
.gitignore firmware by-products
Jan "Yenya" Kasprzak [Mon, 10 Sep 2012 19:54:36 +0000 (21:54 +0200)]
.gitignore: PS files in schematics/
Jan "Yenya" Kasprzak [Mon, 10 Sep 2012 19:53:50 +0000 (21:53 +0200)]
New pinout for three LEDs
Jan "Yenya" Kasprzak [Mon, 10 Sep 2012 19:52:00 +0000 (21:52 +0200)]
pwm: channel D is inverted
This is to avoid power spikes when all three channels switch on.
We make channel D to switch on on OCR1D match, while other two
channels (A and B) switch off on OCR1A and OCR1B match, respectively.
Jan "Yenya" Kasprzak [Thu, 6 Sep 2012 20:20:06 +0000 (22:20 +0200)]
More complete version of schematics
Jan "Yenya" Kasprzak [Tue, 4 Sep 2012 13:10:34 +0000 (15:10 +0200)]
mcp14628 symbol: typo in chip name
Jan "Yenya" Kasprzak [Sun, 2 Sep 2012 21:50:40 +0000 (23:50 +0200)]
pins.txt: different expected pin-out, design notes
Jan "Yenya" Kasprzak [Sun, 2 Sep 2012 11:25:27 +0000 (13:25 +0200)]
pin-out of the USBasp ribbon cable
Jan "Yenya" Kasprzak [Sat, 1 Sep 2012 00:11:52 +0000 (02:11 +0200)]
top-level schematics (work in progress)
Jan "Yenya" Kasprzak [Sat, 1 Sep 2012 00:11:25 +0000 (02:11 +0200)]
step-up module schematics
Jan "Yenya" Kasprzak [Sat, 1 Sep 2012 00:11:04 +0000 (02:11 +0200)]
step-down module schematics
Jan "Yenya" Kasprzak [Sat, 1 Sep 2012 00:10:45 +0000 (02:10 +0200)]
power module schematics
Jan "Yenya" Kasprzak [Sat, 1 Sep 2012 00:10:16 +0000 (02:10 +0200)]
system files in schematics/