Children in 2017 commonly only experience games on a phone.

What it does

A simple controller that utilizes the onboard sensors and to provide a richer experience for children.

How I built it

For this game ( we used the onboard accelerometer and humidity sensor.

Challenges I ran into

Calibrating the sensors were difficult and required patience

Accomplishments that I'm proud of

Used MBed for the first time.

What I learned

What's next for JoyArm

Extend it to different retro games, fully utilize sensors and provide platform for developers.

Code Snippet:

while (true) { for(int i=0; i<10;i++){ x = accel.x(); y = accel.y(); if (i ==0){ h = temp_sensor.readHumidity(); if(h>80.0) { click = 1; h/=.8; } else { click = 0; h = h/.8; } } sprintf(body, "%f:%f:%d\n", x, y, click); pc.printf("%s", body); } sprintf(val, "charge: %1.0f%%", h); lcd_print(val);

Built With

Share this project: