Electronic bell for handlebar