At Kaazing, we have been experimenting with using a smartphone as a remote control for quite some time now. Those familiar with our demos may have seen our Zing-Pong demo (which is a “Pong”-style game using smartphones to control the paddles over WebSocket) or our Racer demo (which is a 3D Formula One car rendered in WebGL as a Chrome Experiment, and remotely controlled with a smartphone). These demos, along with the other demos we’ve created with Kaazing’s platform, use no plug-ins. You simply point a browser on your computer to the address of the object you want to control (for example, the gorgeous Formula One car rendered in WebGL) and a browser from your smartphone to the address of the remote control (an ID we generate for you). Once connected, you just…go!
A couple of our Visionary Zingers, Prashant Khanal and David Witherspoon, then experimented with communicating with a Raspberry Pi using WebSocket–or, more specifically, using Kaazing’s JMS-over-WebSocket Gateway to tell Raspberry Pi to turn on and off a lightbulb. When the lightbulb turned on in this experiment, another lightbulb turned on: could we in fact turn a remote, radio-controlled car into a remote, WebSocket-controlled car? By controlling the car over the Web, could we control the car from another room? From another continent?
The Racer Demo
Let’s first take a closer look at the Racer demo. The Racer demo uses the reflector pattern: where we connect devices through a WebSocket server, thus simulating peer-to-peer connectivity, a very easy-to-achieve task using pub/sub. When we developed the Racer demo, we walked through the steps to build it in The Simplest Way to Use Your Smartphone as a Game Controller: A WebSocket Race Car Demo. By examining how to use pub/sub concepts to control a virtual car, it’s not so farfetched to consider doing the same with a radio-controlled car.
Read more: The Zinger
QR:
4 comments:
Howdy I am so happy I found your blog page, I really found you by
accident, while I was searching on Askjeeve for something else, Regardless I am here
now and would just like to say thank you for a tremendous post and a all round interesting blog (I
also love the theme/design), I don't have time to look over it all at the minute but I have bookmarked it and also added your RSS feeds, so when I have time I will be back to read more, Please do keep up the fantastic work.
my website the tao of badass
I don't even know how I ended up here, but I thought this post was great. I don't know who you are but ԁefinіtеly yоu're going to a famous blogger if you aren't alгeady
;) Ϲheeгs!
Mу homepage: short term loans
I blog frequently and I seriously appreciate your information.
This great article has really peaked my interest. I'm going to take a note of your blog and keep checking for new details about once per week. I subscribed to your RSS feed as well.
Also visit my web blog buy genf20
Saved as a favorite, I love your blog!
Here is my blog: http://demowiki.smkb.ac.il/index.php?title=משתמש:TriciaPkh
Post a Comment