Username:     
Password:     
             

Projects
Speedometer V1.0
 
Velocity measurement for a bicycle

Code size: Author:Matthias
Source files included:yes Version:V1.0
Use circleOS:no Creation date:2010-04-02 02:30:43
Hardware modification:no Modification date:2010-04-02 10:20:41
Based on the STM32 Primer:Primer2
   
Downloads:1179 Views:21225
   
Vote:
Average ratings:0/5 (0 rates)

Download:    Speedometer-V1.0.zip (989 KB)

Description:

A speedometer for a bicycle or the like.


He also shows the lateral acceleration.
and remembers the maximum possible value and leaves it.
(As at a volume indicator)


is still counted among the path in meters.

Man takes the reed contacts from a bicycle speedometer.
Connection
Line 1 to "CX_ADC_TIM, PB0, JP2 pin 13"
Line 2 to GND, pin 20 JP2 "

Software:

this variable is the marginal amount set      u16         Millimeter_per_pulse = 880;


The reed switch produces an interrupt.
the time between interrupts is measured with a 32-bit timer.

in Task.C
there is the filtered velocity and the Max value calculated by the lateral acceleration.

in Main.c
Representation of values
The color can also be set here, with "Font_Text_Color_u16" will set the text color.
The background color is produced in the folder _Background_image with the Excel document.

in EXTI0_IRQHandler.c
There will be handled interrupt.



Project comments


To add comments, please register you.