Hey, i am thinking hard about a project involving a mC board (eg. raspberry, arduino, etc.) for use in a motorbike. The application would be to connect some sensors over GPIO and a display, i haven't decided yet if text only or maybe pixel based because this is not my main concern. Some ASCII data logging will be happening at low data rates, preferably to USB or other removable storage for easy retrieval. So far no problem.
For the system to be properly integrated into the normal usage of the bike i want to hook it up to the ignition switch. There are of course many approaches to this. I came up with some ideas, would love to hear your thougts on these:
How would you make it safe to cut power at any time without the risk of corruption of data of the system/application?
Corruption of the ASCII files on removable storage could be tolerated / worked around.
Regards, Max
For the system to be properly integrated into the normal usage of the bike i want to hook it up to the ignition switch. There are of course many approaches to this. I came up with some ideas, would love to hear your thougts on these:
- Wire mC with DC/DC converter to 12V source controlled by ignition switch
- needs os/software to be fully tolerant of power on/off cycling without proper shutdown, to prevent corruption of data partition. Maybe ubuntu iot core or other os with read only mounting of system partitions and apps, or C coding without OS and without write access to the internal flash where code is stored
- No additional power use when bike ignition is off
- Wire mC with DC/DC conv to battery directly via a relay and control the relay with the mC and some external cirquitry, so that the 12 V supply switched by the ignition only serves as a control input for startup / shutdown of the system
- But how...?
How would you make it safe to cut power at any time without the risk of corruption of data of the system/application?
Corruption of the ASCII files on removable storage could be tolerated / worked around.
Regards, Max