Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alainakafkes/helloworldacc
App that relies on CoreMotion Framework to display "hello" or "world" at certain X/Y acceleration values.
https://github.com/alainakafkes/helloworldacc
accelerometer coremotion first-ios-app swift
Last synced: 27 days ago
JSON representation
App that relies on CoreMotion Framework to display "hello" or "world" at certain X/Y acceleration values.
- Host: GitHub
- URL: https://github.com/alainakafkes/helloworldacc
- Owner: alainakafkes
- Created: 2016-01-21T07:14:05.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-26T19:10:41.000Z (about 9 years ago)
- Last Synced: 2024-11-16T00:08:30.783Z (2 months ago)
- Topics: accelerometer, coremotion, first-ios-app, swift
- Language: Swift
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Welcome to the helloworldacc repository! #
## About the Developer ##
Hi there! My name is Alaina Kafkes, and I created helloworldacc as a mini-hack for EECS 395 Mobile & Wireless Health at Northwestern University.
I've had a long time interest in developing medically relevant technologies, and I'm excited to show my first efforts here.## About the App ##
Helloworldacc (henceforth denoted by HWA) is a single-view application created on Xcode using the Swift programming language.
It relies heavily on the iOS Core Motion framework, which gives Apple developers the ability to access and process motion data
from the hardware (i.e. accelerometers, gyroscopes, etc.) built into Apple devices. I decided to use the accelerometer as my sensor
for this project.According to my application's logic, if the maximum X-direction acceleration experienced by the Apple Device exceeds
some minimum threshold value, the word "hello" is displayed. If the maximum X-direction acceleration experienced by the Apple Device
stays below said threshold, the word "world" is displayed. The user additionally has the capability to reset ("zero") the maximum
X-direction acceleration to zero if they so choose. I chose to work with maximum X-direction acceleration rather than real-time
X-direction acceleration because it is difficult to read the words "hello" and "world" if the Apple Device is shaken fast enough.HWA additionally allows the user to set the threshold value that distinguishes between "hello" and "world" – a user can type an integer
into a text box on the graphical interface and simply press "set!," thereby altering the threshold. A default threshold value is also
set.Firebase, a real-time JSON cloud database, is used for the database and web interface component of this project. HWA communicates with [my personal database on Firebase](https://fiery-inferno-9226.firebaseio.com/#) such that "hello" is displayed on the Firebase user interface when the maximum X-acceleration is above the threshold, and "world" is displayed when the maximum X-acceleration is below the threshold. I found this database easiest to use for the limited data storage needs of HWA, and because it allows easy and real-time visualization of changes occurring within the database.
Though I have some experience in programming for Apple devices, this project represents my first foray into Swift and my first time
using the Core Motion framework. I'm excited about the skils I have developed and I hope I get the opportunity to create applications
on iOS again in the near future.I tested and debugged this application on an iPhone 5, so its graphical user interface is optimized for that device.