martin the warrior
- Aug 10, 2015
- 35
- Joined
- Aug 10, 2015
- Messages
- 35
To start off with this project is a ways away but I do want to do it. the reason i'm posting it so early is I need to know if what I wan to do is possible will the arduino uno and if not which one would do this for me.. the project is a sensor input to the micro controller the parameters are saved and looked up then displays a message when the parameters are met again. here is a detailed paper on what im trying to do. its long sorry I tired to upload the microsoft word file but every time I went to the folder nothing was in it not even my other stuff. transfer of the information was not very good tried to fix it by editing it but it all went back. but hopefully the jest of it makes sense what im trying to do.
Sensor inputs
(0) condition button - rider input to microcontroller to save the conditions.
(1) Pitch sensor – Analog input to microcontroller says the pitch of bike (uphill, downhill, flat.)
(2) Sitting sensor – digital input to microcontroller says if rider is sitting or standing.
(3) Speed sensor – Analog input to microcontroller says the speed of the bike.
(4) Gear selected sensor – digital input to microcontroller says the currently selected gear.
Sensor sensitivity
Condition button – Digital input on/off
Pitch sensor – 1%
Sitting sensor – digital input on/off
Speed sensor – 0.5 mph
Gear selected sensor – digital input on/off is counted to determine gear selected
Condition parameters
Every time pitch changes by 1% new condition LED will light, if the condition has not been saved before
Every time sitting sensor changes from on to off or vice versa new condition LED will ligh,t if condition has not been saved before.
Every time speed changes by 0.5 mph new condition LED will light, if condition has not been saved before.
Every time gear changes by 1 new condition LED will light, if condition has not been saved before
Saving conditions and saved conditions
Every time a new condition is seen by the microcontroller the new condition LED will light. The rider will then hit the condition button. This will save the condition for further reference by the microcontroller to tell you the best gear to be in.
If the condition light turns on and it is displaying a gear then you can chose to set a different parameter for the conditions. Example if you are going 10 mph sitting with a 1% grade and you change gear from 3,5 (the micro controller selection) to 3,4 you can save this as the new value. However this will only work if the gear is changed if any other variable changes the micro controller will handle this as an unseen condition. When conditions match a parameter the desired gear will display.
Condition graph examples
IF - then light new condition LED - then hit condition button
1= 7% - parameter is saved
2= on <- new parameters
3= 6 mph
4 = 1,6
IF - then light new condition LED - then hit condition button
1= 0% - parameter is saved
2= on <- new parameters
3= 20 mph
4 = 3,5
IF - then light new condition LED - then hit condition button
1= -5% - parameter is saved
2= off <- new parameters
3= 27 mph
4 = 3,7
These are examples of new conditions being saved.
When conditions are saved the micro controller will compare current values to these tables and display the desired gear selection.
When condition is saved graph
When - then
1= 7% - display 1,6
2= on <- saved parameters
3= 6 mph
When - then
1= 0% - display 3,5
2= on <- saved parameters
3= 20 mph
When -then
1= -5% - display 3,7
2= off <- saved parameters
3= 27 mph
This is an example when the parameters are saved in the micro controller. When the parameters match a known table it will display the wanted gear selection.
If you change the gear during a saved parameter read out the new condition light will turn on and you can chose to save the new gear selection for the parameter or leave it. If any other variable changes the micro controller will handle it as a whole new parameter.
Sensor inputs
(0) condition button - rider input to microcontroller to save the conditions.
(1) Pitch sensor – Analog input to microcontroller says the pitch of bike (uphill, downhill, flat.)
(2) Sitting sensor – digital input to microcontroller says if rider is sitting or standing.
(3) Speed sensor – Analog input to microcontroller says the speed of the bike.
(4) Gear selected sensor – digital input to microcontroller says the currently selected gear.
Sensor sensitivity
Condition button – Digital input on/off
Pitch sensor – 1%
Sitting sensor – digital input on/off
Speed sensor – 0.5 mph
Gear selected sensor – digital input on/off is counted to determine gear selected
Condition parameters
Every time pitch changes by 1% new condition LED will light, if the condition has not been saved before
Every time sitting sensor changes from on to off or vice versa new condition LED will ligh,t if condition has not been saved before.
Every time speed changes by 0.5 mph new condition LED will light, if condition has not been saved before.
Every time gear changes by 1 new condition LED will light, if condition has not been saved before
Saving conditions and saved conditions
Every time a new condition is seen by the microcontroller the new condition LED will light. The rider will then hit the condition button. This will save the condition for further reference by the microcontroller to tell you the best gear to be in.
If the condition light turns on and it is displaying a gear then you can chose to set a different parameter for the conditions. Example if you are going 10 mph sitting with a 1% grade and you change gear from 3,5 (the micro controller selection) to 3,4 you can save this as the new value. However this will only work if the gear is changed if any other variable changes the micro controller will handle this as an unseen condition. When conditions match a parameter the desired gear will display.
Condition graph examples
IF - then light new condition LED - then hit condition button
1= 7% - parameter is saved
2= on <- new parameters
3= 6 mph
4 = 1,6
IF - then light new condition LED - then hit condition button
1= 0% - parameter is saved
2= on <- new parameters
3= 20 mph
4 = 3,5
IF - then light new condition LED - then hit condition button
1= -5% - parameter is saved
2= off <- new parameters
3= 27 mph
4 = 3,7
These are examples of new conditions being saved.
When conditions are saved the micro controller will compare current values to these tables and display the desired gear selection.
When condition is saved graph
When - then
1= 7% - display 1,6
2= on <- saved parameters
3= 6 mph
When - then
1= 0% - display 3,5
2= on <- saved parameters
3= 20 mph
When -then
1= -5% - display 3,7
2= off <- saved parameters
3= 27 mph
This is an example when the parameters are saved in the micro controller. When the parameters match a known table it will display the wanted gear selection.
If you change the gear during a saved parameter read out the new condition light will turn on and you can chose to save the new gear selection for the parameter or leave it. If any other variable changes the micro controller will handle it as a whole new parameter.
Last edited: