Senior Project Week 1
- Ashwin West
- Mar 7, 2017
- 1 min read
This week's objective was to link Android Studio to the Arduino coding platform. Android Studio is the developer platform I am using to create the code to control the different aspects of the AED's functionality, such as shock rate, shock voltage, patient data processing, etc. The Arduino platform controls the microprocessor that directly connects to the other components of the AED circuit, such as the driver and coil mechanisms. Although I am unsure as to the actual design of the circuit, the link between Android code and the Arduino microprocessor is the first step for creating a smartphone-controlled AED.
The code created to bridge these two systems uses a vendor system, broadcasting the Android's data asynchronously to minimize lag. The onCreate() method displays a vendor ID to the Arduino via the broadcast function, and if the Arduino's connection is stable, it will respond with a user prompt verifying connection and running the program. This method allows the AED to consistently administer shocks without having the user repetitively pressing the button or waiting some time for the AED to receive the go-to. Time is of the essence during cardiac arrest, and the more time there is to respond to the emergency, the better the chance of survival.
Comments