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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Legacy Personal Blogs Internet of Skull Version 1 overview
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: camuyano
  • Date Created: 3 Oct 2014 6:31 PM Date Created
  • Views 570 views
  • Likes 0 likes
  • Comments 0 comments
  • internet_of_everything
  • internet_of_things
  • iot
  • arduino
Related
Recommended

Internet of Skull Version 1 overview

camuyano
camuyano
3 Oct 2014

This would be my first post for my Internet of Things Skull. This project was mentioned on my last post. This time I want to post an overview on how it is made and what better than a over complex diagram.

image

 

What a mess to make a few LEDs blink, but it was must certain worth it.

Use Case Flow (with Android phone):

All starts either from an Android app or via a mouse click. Would start with the Android app cause it might be simpler.

1. From an android app the user clicks a "Left" or "Right" button.

2. The Android app do an HTTP Post with a JSON message that says BL for blink left, or BL for blink right.

3. The Post message is received in a Python Flask application hosted on heroku and the message is translated and forwarded to the iot.eclipse.org sever using the mqtt protocol. This message is forwarded by using a simple python script.

4. On the laptop a python script has been triggered before all this started. This skullserver.py is a MQTT client that subscribe to a message to the iot.eclipse.org server. When it receives a Blink Left or Blink Right message it forwards the message via usb Serial to an Arduino UNO.

5. The Arduino is waiting for messages from the serial port. The Arduino do the corresponding blinking task.

 

Use Case Flow (with the mouse):

1. A python code (onMouseBlink.py) is running with a low level mouse hook waiting for a mouse click. When detecting a left or right mouse click it issues a HTTP Post to the Python Flask application hosted on heroku.

2. Same flow as on the User Case Flow (with Android)

 

 

Source Code:

onMouseBlink.py

skullserver.py

Android App (Skull Master)

Arduino code

 

The code for python Flask application hosted on Heroku has not been uploaded to github (it will be soon). But it is a simple Flask Service waiting for a post. It receives a Json message and then issue an MQTT publish message to the host.

 

This is all for now, I am not int Halloween celebration but love the electronics. Future plan is create a similar project using a no festivity related ornament like a small toy car that I can use all year around. Also I am planning on making it wifi to be able to move it around the office.

  • 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