本次加拿大代写是一个C++嵌入式软件开发的assignment
The goal of this assignment is to develop and test a simulator for embedded software used in Cranial Electrical Stimulation (CES) devices similar to the Alpha-Stim and OasisPro products described below.
A CES device is a non-invasive neuro-stimulation medical device that delivers microcurrent via an electrode through the earlobes to stimulate the brain for the purpose of therapeutic intervention. The implementation and testing are to be in C++ using the Qt framework on the COMP3004-F21 VM which has the Qt Creator IDE installed.
For purposes of this assignment you can assume a hardware layout similar to that of the AlphaStim presented below.
What needs to be simulated?
- ON/OFF switch
- Continuous circuit check when electrodes are in contact with the skin indicated by a test circuit symbol that shows contact ON (connected) or OFF (disconnected). If skin contact is lost during treatment for less than 5 seconds treatment resumes, otherwise, treatment stops. Loss of skin contact is shown by the indicator changing from ON to OFF.
- Three frequency options of 0.5Hz, 77Hz and 100Hz.
- Three wave form options Alpha, Betta and Gamma.
- 20, 40 or 60 minute countdown cycles.
- Large timer display. Treatment starts when electrodes touch skin.
- 0 – 500 µA (microampere) current control (1-10): 50 µA when incrementing and 100 µA when decrementing.
- 30 minute auto – off when not in use.
- Battery charge indicator: device issues a warning at 5% charge and shuts down at 2% after issuing another warning.
- Recording: user can choose to record a therapy and add to history of treatment. Assume only a single user. Therapy information to be recorded: Waveform, frequency, start time, duration and power level (if changed during therapy choose last selected power level).
- Automatically and permanently disables itself should a single fault develop within the device causing the current to exceed 700 µA.