Skip to content

A prototype to visualise data from the World Bank, this time using an Arduino and WebSockets .

Notifications You must be signed in to change notification settings

weidenfreak/InteractiveAfricaMapD3Arduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interactive Africa Map D3 Arduino

This is a prototype which was built for a university assignment. The task was to build a prototype that makes use of data from the World Bank and concepts of embodied interaction.

I'm using an Arduino, a Sinatra Ruby app with WebSockets to connect to the Arduino, and D3.js to visualise the map. Instead of using normal inputs like mouse and keyboard, the slider in this application reacts to movements from an Arduino potentiometer.

See Youtube for a very simple video demonstration. And a live version (without Arduino support). (Optimised for Google Chrome only)

Initially based on eventmachine-websockets-demo and Web Interfacing with Arduino.

Setup

  • Set up a single potentiometer input on your breadboard. Like so: Potentiometer setup
  • Connect your Arduino via USB (no Ethernet Shield needed)
  • Load potentiometer code on your Arduino.
  • You might have to change the address of the serial port in app.rb. Have a look at your port in the Arduino environment to see which one you're using (Tools -> Port).
  • Start the Sinatra app:
> ruby app.rb

About

A prototype to visualise data from the World Bank, this time using an Arduino and WebSockets .

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published