element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Smarter Life
  • Challenges & Projects
  • Design Challenges
  • Smarter Life
  • More
  • Cancel
Smarter Life
Blog Smarter Life Challenge - The Henrietta Project - Bluetooth Operation
  • Blog
  • Forum
  • Documents
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: dougw
  • Date Created: 1 Jan 2014 10:24 AM Date Created
  • Views 599 views
  • Likes 0 likes
  • Comments 0 comments
  • bluetooth
  • psoc4
  • henrietta_project
  • smarter_life_challenge
  • light_sensor
  • temperature
  • touch_screen
  • thermostat
  • servo
  • smarter_life
  • gps
  • nokia5110
  • dht11
  • sensor
Related
Recommended

Smarter Life Challenge - The Henrietta Project - Bluetooth Operation

dougw
dougw
1 Jan 2014

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

http://www.element14.com/community/videos/10789/l/the-henrietta-project--bluetooth


For a video demonstrating voice control over Bluetooth check out this link:

http://www.element14.com/community/videos/10808/l/the-henrietta-project--voice-control


To see the full android app in operation check this link:

http://www.element14.com/community/community/knode/dev_platforms_kits/element14_dev_kits/psoc4_pioneer_kit/blog/2014/01/12/smarter-life-challenge--the-henrietta-project--android-app


image

Why does this project include Bluetooth?

The Henrietta Project uses Bluetooth for the following reasons:

  • Wireless monitoring and programming adds a significant convenience factor to the system. The system can be controlled from a comfortable chair, making use of scattered free time like during TV commercials.
  • Standard wireless capability allows the system to leverage the large expensive displays and ergonomic input systems of PCs, tablets and phones without large additional cost. This can add much better graphics to the system without additional hardware cost. It allows system capabilities to grow and could even add voice recognition.
  • Bluetooth is ubiquitous on mobile devices and less expensive than WiFi.
  • Bluetooth is less likely to be monitored by big brother or hacked from a foreign land than WiFi.
  • Bluetooth is unique for thermostats (WiFi thermostats are commercially available)

 

The Solution

The upper level communication protocol is super simple - most commands are implemented as a single letter, allowing any terminal program to provide remote monitoring and control. In most cases the upper case letter turns a parameter on and the lower case turns it off. This allows testing of Henrietta's firmware independent of programming and testing the remote app.

Commands fall into 2 categories - query commands that request sensor readings shown in the "Get" column and action commands shown in the "Set" column.

 

Parameter

Commands

Format

 

Get

Set

 

Temperature

T

-

 

Pressure

P

-

 

Humidity

H

-

 

Light

L

-

 

Microphone

M

-

 

Clock

C

c(n14)

6 digit time + 8 digit date

Fan On

-

F

 

Fan OFF

-

f

 

Heat On

-

W

 

Heat Off

-

w

 

AC On

-

A

 

AC Off

-

a

 

Red LED On

-

R

 

Red LED Off

-

r

 

Green LED On

-

G

 

Green LED Off

-

g

 

Blue LED On

-

B

 

Blue LED Off

-

b

 

Open Door

-

D

 

Close Door

-

d

 

Eyes Open

-

E

 

Eyes Closed

-

e

 

Eyes Off

-

O

 

Day

N

n(1-7)

 

STime

-

i,j,k,l(0000-2459)

 

STemp

-

s,t,u,v(10-30)

 

Keypad

-

-

X-Y coordinates in %

 

 

 

 

 

Implementation

The HC05 Bluetooth module on a carrier card is extremely simple to connect and use. I simply left it in its default state and connected 2 signal wires. It automatically handles all low level Bluetooth protocols and pairing. The PSoC4 only needs to implement a 9600 baud UART with transmit and receive signals. This 7$ wireless module made Bluetooth functionality the only aspect of the whole project that turned out to be easier than expected.

Actually configuring the PWM signal for the servo motor was also surprisingly simple on the PSoC4, but there were lots of mechanical headaches with the servo subsystem to compensate.

Initial Bluetooth testing with an android phone used the Sena BTerm android terminal application.

The enclosed video shows some of the more visible Bluetooth commands in action.

 

Conclusions

Implementing Bluetooth turned out to be such a simple and cheap way to leverage use of my smart phone, I will certainly be using it in many more projects.

 

Next Steps

I expect my next update to cover the custom furnace control interface in a bit more detail.

 

For more info on the Henrietta Project, which is entered in the Smarter Life Challenge, check these logs:

http://www.element14.com/community/videos/10631/l/smarter-life-challenge--the-henrietta-project-intro

http://www.element14.com/community/community/knode/dev_platforms_kits/element14_dev_kits/psoc4_pioneer_kit/blog/2013/12/15/smarter-life-challenge--the-henrietta-project

http://www.element14.com/community/community/knode/dev_platforms_kits/element14_dev_kits/psoc4_pioneer_kit/blog/2013/12/17/smarter-life-challenge--the-henrietta-project--touch-screen-subsystem

http://www.element14.com/community/community/knode/dev_platforms_kits/element14_dev_kits/psoc4_pioneer_kit/blog/2013/12/23/smarter-life-challenge--the-henrietta-project--personality-infusion

http://www.element14.com/community/community/knode/dev_platforms_kits/element14_dev_kits/psoc4_pioneer_kit/blog/2013/12/29/smarter-life-challenge--the-henrietta-project--wire-wrap-versus-jumpers

http://www.element14.com/community/community/knode/dev_platforms_kits/element14_dev_kits/psoc4_pioneer_kit/blog/2014/01/02/smarter-life-challenge--the-henrietta-project--furnace-interface

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube