AdinAck / Fantasy-Bike

Projects and resources for my electric bike's operating system
2 stars 1 forks source link

Powering on and off #10

Open AdinAck opened 5 years ago

AdinAck commented 5 years ago

Power button is logic only, (latching switch btw) so we are using a 3 position key switch, with removable positions at 1 and 3, here is how it will work: position 1: OFF , disconnects arduino from power, thus nothing can function, not even BMS position 2: ON, arduino is fully powered position 3: STNDBY, arduino is still powered, however analog in (through voltage divider) tells it to turn off non essentials (headlights, screen, led strips, etc) but is still monitoring gyroscope (for security alarm), temperature, BMS, and should probably put the motor controller in anti-theft mode. In standby mode, all ports are closed, USB, XLR (charging port) I think thats all the ports, to protect against vandalism or unsupervised environmental damage. (if charging is detected, disable anti-theft mode and turn on screen at charging page, because standby mode will also be active for charging)

AdinAck commented 5 years ago

keyswitch must be 3PDT!!!!