Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Embedded System WebSockets Demo

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
834 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 26, 2011

This is an experiment using a HTML5 WebSocket to communicate real-time data from an embedded system to the browser. Here an ultrasonic distance measuring module and a mBed micro-controller to serve the real time data to the browser. The mBed is running an application that provides a HTTP server with WebSockets capability. When the page is loaded the demo program makes a WebSocket connection to the mBed. It sends the magnitude time response of the ultrasonic "pings". Each message is a JSON array with 100 magnitudes (each representing about 9mS), which are draw and scrolled to a HTML5 canvas by the JavaScript code in the browser.

Update: I've created an mBed notebook with the code: http://mbed.org/users/nandgate/notebook/websockets/

Category:

Science & Technology

Tags:

License:

Standard YouTube License

Link to this comment:

Share to:
see all

All Comments (0)

Sign In or Sign Up now to post a comment!
Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more