Back to Parent

Outcome


Intention

I try to build a customized Track buses system which we receive a motor alert when the time is nearly until the next bus.

Bus Track Version 1:

In this version, firstly, you can set the minute you want to be reminded by the motor from 3 to 20 minutes (by adjusting the "bustimeleftset"): 

And then this time will be divided into three phases:

In the first 50% time, the motor will perform a slow speed (default :500) (you can adjust)

 In the 50% to 30% time, the motor will perform a medium speed (default :300) (you can adjust, but is limited to be smaller than the first one)

 In the 30% to 10% time, the motor will perform a fast speed (default :100) (you can adjust, but is limited to be smaller than the second one)

In addition, you can adjust the motor frequency in every phase by adjusting the value "motortimes" and how many times 

Tips: The time every phase remain after motor performs will be calculate by the function: minite*timelef*phaseX - motortimes*delayX*2

which can automatically make up the time to every phase should last.

Show Advanced Options
4 4.1.thumb
Show Advanced Options

  Bus Track Version 2:  

In this version, fewer thing you can adjust but can affect the whole process.

Compared to version 1, you can adjust the number of phases you need for the alert from 2 to 10 (default: 3)

And the speed of the motor in different phase will perform differently according to the phase number you set by multiply (phasenum/i)

Tips: The time every phase remain after motor performs will be calculate by the function: pow (1/2, i+1) *timelef*minite - (delay1*(phasenum/i)) which can automatically make up the time to every phase should last.

Show Advanced Options
4 3.3.thumb
Show Advanced Options
1.thumb
Show Advanced Options
Drop files here or click to select

You can upload files of up to 20MB using this form.