Go Down

Topic: Read Arduino from JavaScript (Read 343 times) previous topic - next topic


Hi, Im just looking for a simple example of how I might poll an arduino, with an accelerometer, from within the game loop of a javascript program. Basically I'm wanting to swing a physical bat to swing a bat in-game.


Is there a network connection between the application that is hosting the javascript, and the Arduino? If so, design a protocol between the two that meets your bandwidth/latency requirements. For example, you might choose to run a long-running query over HTTP.
I only provide help via the forum - please do not contact me for private consultancy.

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131