Download Week`s Task

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
I-8 SOUTH
ECE Senior Design Weekly Report 3
Deleon Thompson Project Manager
1-8 South
Tian Gan
Web Design
Courtnay Roland
Supply
Joel Rendon
Editor
Hazim Aljuhani
Presentation
Daniel White
Technical Writer
5/6/2017
Page |1
Engineer’s Name: Tian Gan
Week’s Task:

requirement for our project

Android applications research
Results:
1. Requirement for our project.
A. User’s requirement
i.
Detective when people use hand soap dispenser.
ii.
Tell people when they need to use hand soap dispenser.
B. Motional requirement
i.
Appeals people use the product.
ii.
It can motivate people to use hand soap dispenser.
For this requirement we need to think about phone applications.
C. Technique requirement
i.
Low power devices.
ii.
Small size devices.
iii.
May use solar power.
iv.
One-way data transfer from device to phone.
v.
Data transfers between phone and Internet.
1. Get start with Android.
A. Creating an Android Project
 An Android project contains all the files that comprise the source
code for your Android app. The Android SDK tools make it easy to
start a new Android project with a set of default project directories
and files.
This lesson shows how to create a new project either using Eclipse
(with the ADT plugin) or using the SDK tools from a command line.
Resource:
http://developer.android.com/intl/zhcn/training/basics/firstapp/creating-project.html
B. B. Running Your App
 How you run your app depends on two things: whether you have a
real Android-powered device and whether you're using Eclipse.
1-8 South
5/6/2017
Page |2
Resource:
http://developer.android.com/intl/zhcn/training/basics/firstapp/running-app.html
C. Building a Simple User Interface
 The graphical user interface for an Android app is built using a
hierarchy of View and ViewGroup objects. View objects are usually
UI widgets such as buttons or text fields and ViewGroup objects
are invisible view containers that define how the child views are
laid out, such as in a grid or a vertical list.
 Android provides an XML vocabulary that corresponds to the
subclasses of View and ViewGroup so you can define your UI in
XML using a hierarchy of UI elements.
Resource:
http://developer.android.com/intl/zh-cn/training/basics/firstapp/buil
ding-ui.html
D. Starting Another Activity
i.
Respond to the Send Button
ii.
Build an Intent
iii.
Start the Second Activity
iv.
Create the Second Activity
v.
Receive the Intent
vi.
Display the Message
2.
Rapid Application Development (RAD) tools
A. Basic4android.
 Basic4android is a simple yet powerful development environment
that targets Android devices. Basic4android language is similar to
Visual
Basic
language
with
additional
support
for
1-8 South
5/6/2017
Page |3
objects.Basic4android compiled applications are native Android
applications; there are no extra runtimes or dependencies. Unlike
other IDE’s, Basic4android is 100% focused on Android
development.

Basic4android includes a powerful GUI designer with built-in
support for multiple screens and orientations. No XML writing is
required. You can develop and debug with the Android emulator or
with a real device (USB-connected or over the local network).

Basic4android has a rich set of libraries that make it easy to
develop advanced applications. This includes: SQL databases,
GPS, Serial ports (Bluetooth), Camera, XML parsing, Web services
(HTTP), Services (background tasks), JSON, Animations, Network
(TCP and UDP), Text To Speech (TTS), Voice Recognition,
WebView, AdMob (ads), Charts, OpenGL, Graphics and more.
B. Gimbal context ware
 The Gimbal™ context aware platform enables application providers
to deliver more timely, personalized and relevant content to mobile
audiences. The frameworks you will find in the SDK let you
enhance your applications with user contextual information
including geofence monitoring, Content delivery triggered by
geofence events and/or time proximity.
1.
Geofences
The Gimbal™ Geofence feature is your gateway to directly
reaching your customers while on the go. Help them find you by
blazing digital trails toward real world destinations. Say hello when
they’re in the neighborhood with targeted location awareness, and
with the targeted messages they long to hear.
2.
Proximity
The Gimbal™ Proximity feature is based on low power
bluetooth beacons that provide finer grain proximity context to
enhance your users experience within geofences.
This is very useful to our project.
Resource:
http://gimbal.com/doc/context/context_android.html
1-8 South
5/6/2017
Page |4
Engineer’s Name: Hazim Aljuhani
Week’s Task:

Researching the possible platforms for the phone application as well as
the functionality needed in the application
Results:
When trying to develop a phone application for a particular case, there is always
a question of what platform to use. Whether to develop your application in
android or ios is something to think about before starting to code. Before getting
into which platform suits our project’s purpose, want to address the crossplatform sources.
Cross-platform Sources:
There are several platforms that have the ability to solve the issue of android vs
ios by letting the programmers develop one coded program that can work on
both platforms. Consider Titanium SDK for example. What Titanium aims to
accomplish is to solve most of the problems related to writing separate codes for
each device, by hiding all the gory implementation details behind a simple and
well-defined javascript API. On top of that, it will (more or less) compile your
javascript to a different language (objective-c for iOS, Java for Android and soon
Blackberry) so you can deploy your application to multiple targets with no
changes to your code. Everything sounds good with titanium; however, it has
major problems that we need to address. The more complex your applications
become, the more often you encounter some weird glitches. Your app starts to
crash, seemingly at random because of memory starvation. When your
application reaches a certain level of complexity, those issues will become
evident – in the form of sudden, unavoidable crashes. This leaves you stuck with
a frail, buggy application that is ready to blow up at every click… and there’s
nothing you can do about it except for a complete rewrite in objective-c or java.
Also, for the purpose of using BLE, Titanium SDK is not a good fit.
Android Vs. iOS:
For our project use case, I think android-base application would be the optimal
solution for the following reason:

Android phones are widely used throughout the world.

Android-based application uses Java programming language which is very
popular and useful.

Android 4.3 (API 18) introduced built-in platform support for BLE. This
allows Android apps to communicate with BLE devices that have low
1-8 South
5/6/2017
Page |5
power requirements, such as proximity sensors, heart rate monitors,
fitness devices, and so on.

We can test the application by uploading it into stores for free. While iOS
apps costs money to be uploaded into apple store.

iOS uses Objective-C programing language which is not popular in the
programing world.

To develop an ios application, you need a MAC computer which I don’t
have.

After developing an android application and get it working, we can make
changes to get it working in Objective-C in order to implement it in ios
systems.
1-8 South
5/6/2017
Page |6
Engineer’s Name: Deleon A. Thompson
Week’s Task:

Research Bluetooth Devices that fit our goals
Results:
MANUFACTURE
TEXAS INSTRUMENTS
TEXAS INSTRUMENTS
TEXAS INSTRUMENTS
PART
CC2540T
CC2541
CC2541-Q1
VOLTAGE RANGE
2V-3.6V; 3V (ACTIVE TX
& RX)
2V-3.6V; (ACTIVE TX &
RX)
2V-3.6V
BLUETOOTH
v4.0; 2.4-GHz LOW
ENERGY SYSTEMS
v4.0; 2.4GHz LOW
ENERGY RF SYSTEMON-CHIP
v4.0; 2.4GHz LOW
ENERGY WIRELESS
MCU FOR AUTOMOTIVE
MICROCONTROLLER
YES
YES
YES
I/O
21 GPIO PINS (2x20 mA;
19x4 mA); 3 GPIO
TIMERS (1 16-BIT, 2 8BIT)
23 GPIO PINS (2x20 mA;
21x4 mA); 3 GPIO
TIMERS (1 16-BIT, 2 8BIT); 2 LED DRIVING
CAPABILTIES
24 GPIO PINS (2x20 mA;
21x4 mA); 3 GPIO TIMERS
(1 16-BIT, 2 8-BIT); 2 LED
DRIVING CAPABILTIES
SENSORS
BATTERY MONITOR;
TEMPERATURE
BATTERY MONITOR;
TEMPERATURE
BATTERY MONITOR;
TEMPERATURE
APPLICATIONS
PROXIMITY
SENSING;SMART
PHONE CONNECTIVITY
HUMAN INTERFACE
DEVICES; MOBLE
PHONE ACCESSORIES
PROXIMITY
SENSING;SMART PHONE
CONNECTIVITY;
BEACONS
1-8 South
5/6/2017
Page |7
MANUFACTURE
BLUEGIGA
TECHNOLOGIES
BLUEGIGA
TECHNOLOGIES
STMicroelectronics
PART
BLE112-A-v1
BLE113-A-v1
SPBT2632C1A.AT2
VOLTAGE RANGE
3V
3V
3V-3.6V; 2.5 TYPICAL
BLUETOOTH
v4.0; LOW ENERGY
SINGLE MODE MODULE
FOR POWER SENSORS
AND ACCESSORIES
v4.0; LOW ENERGY
SINGLE MODE MODULE
FOR POWER SENSORS
AND ACCESSORIES
v3.0;
MICROCONTROLLER
YES
YES
YES
I/O
28 GPIO PINS; 7
PERIPHERAL PINS
15 GPIO PINS; 7
PERIPHERAL PINS
16 GPIO PINS; 4 UART
PINS
HOUSEHOLDS
SENSORS; PROXIMITY
SENSOR; INDOOR GPS
BROCASTING DEVICES
HEALTH & FITNESS
SENSORS; PROXIMITY
SENSOR; SMART HOME;
IPHONE& IPAD
SENSOR MONITORING;
DATA ACQUISITION;
MOBILE HEALTH
SENSORS
APPLICATIONS
**All the Data Sheets are loaded to the Google Drive
1-8 South
5/6/2017
Page |8
Engineer’s Name: Courtnay Roland
Week’s Task:

Research Hands Free Soap Dispensers
Results:

The Automatic soap dispenser used at SDSU is the Georgia Pacific 52053
The only location I could find it at was the bathrooms in the west commons
building, all other building have manual dispensers. it can be bought
online for $50 dollars on amazon.com if bought from granger it is $130. It
operates on 4 D-cell batteries most likely in series and parallel to get the
voltage up to 3vdc and give more amp hours. It has 2 preset dispensing
amounts .4 ml and .7 ml and has a 1200ml refill. That gives about 1700 or
3000 dispenses per cartridge.

Gojo TFX makes a hands free dispenser also that uses 3 C-cell batteries
and a 1200 ml refill. It is $30 online and $51 on Granger. There are other
cheaper hands free soap dispensers out on the market. Most are battery
powered at around 3vdc there are others that are powered by 120vac
which we decided not to use.
1-8 South
5/6/2017
Page |9
Engineer’s Name: Joel Rendon
Week’s Task:

Research BLE’s
Results:
This week, my main focus was to look up possible BLE’s that could
be integrated into our beacon design. There is an option of trying to
purchase a BLE and connect it with a microcontroller but it is better
for the BLE to be Soc. There are a few BLE’s out there but I broke
down the search to two possible BLE’s that can be used to this
project.
BLE
Microcontroller
Voltage
Pins
CC2540-TI
8051 Microcontroller
Core
2 V–3.6 V
21 GPIO
nRF51822 Nordic
32-bit ARM Corted M0
1.8V to 3.6V
31 GPIO
After doing research, I believe that the best choice is definitely picking
the CC2540. The advantage with the Nordic BLE is the use of the
Cortex M0 microcontroller, which we have used in the past. However,
as an engineer, sometimes we have to get out of the comfort zone
and look at what is best for this project. What makes the CC2540
BLE a better competitor is that it provides a better ease to
communicate with sensors. The following links contains the data
sheet for both of these BLE’s:
CC2540:
http://www.ti.com/lit/ds/symlink/cc2540.pdf
nRF51822:
In google drive week three folder.
1-8 South
5/6/2017
P a g e | 10
Engineer’s Name: Daniel White
Week’s Task:

Soap dispenser designs and specifications

Initial block diagrams
Results:
1.
Soap dispenser
a. Both versions of the automatic soap dispenser maybe found in
hospitals and public areas
b. Counter top versions
i.
ii.
iii.
iv.
1-8 South
Typically runs off of AC outlet with a power supply to convert AC to
DC
 Some also run off of batteries or both
Permeant
Sloan produces a commonly used AC and DC version
 No direct sales (must go through a distributor.)
 Typically runs $290 (Walmart) for low end version
(ESD200/250)
Cheapest version from a manufacture can be found to be around
$90.00
5/6/2017
P a g e | 11
2. Wall mount versions
a. Operate off of AC or DC (Battery) sources
b. Non-permeant fixtures, mounted with either adhesives or mounting
screws
c. ULINE
1. Source: Uline.com
2. Commonly used
3. 6 “AA”
 Claims 30 000 washes
4. Uline Foam Soap
 Claims 1 500 applications per refill
5. $27.00 single, $24.00 (2+ units)
6. Produces many common Janitorial Products
 Also produces GOJO version
d. GOJO
1. Source: Uline.com
2. Commonly used
3. 6 “AA”
 Claims 30 000 washes
4. Uline Foam Soap
 Claims 2 000 applications per refill
 Refills are typically twice as expensive as Uline version
5. $30.00 single, $27.00 (2+ units)
1-8 South
5/6/2017
P a g e | 12
e. Sloan
1. 4 “C” battery source
2. Typically around $40.00
3.
Diagrams
a. Room Layout
1-8 South
5/6/2017
P a g e | 13