Back to Parent

Outcome


Introduction

The awkwardness of silence and boredom are inevitable in most relationships. Our group intends to utilize the Internet of Things to promote an engaging environment through gamification. The devices of the users will be connected through the internet as each person will control the other person’s score. The game will be centered around an object that each person is expected to imitate in a given time interval. The object will be programmed to demonstrate the motions to the users. As each player imitates the object, the other player will decide on whether the movement was sufficient for the actor to earn a point. If either player believes that they can’t do one of the moves, they can wave and the object will interpret the motion as a “skip” through a distance sensor.


Interface
Show Advanced Options

Story of Interaction

 Our project promotes interaction through the usage of music. In this interaction, by the press of a button, the piezo starts playing the music. We intended on using the music as a mediator for the interaction because music is a universal language that connects people. After the piezo plays the music, the servo would initiate a rotational motion. The intention behind the servo is to imitate a dancing motion as it generates a smooth flow. At the end of the interaction, in terms of application, one person is plays the music as the other dances.

Show Advanced Options
Show Advanced Options

Process and Result

We primarily dealt with setting up the servo motor for movement and getting it working. The code of the servo motor was problematic. The first time we flashed the code, the servo motor turned 60 degrees and stopped. Then we changed the delay durations couple of times, increasing and decreasing, thinking that the delay might have been too short and the movement too fast to prevent the motor from turning 180 degrees probably. However, even with the same delays, the motor would sometimes work and sometimes would not. The movements were erratic and random. Finally, we realized that because there was no delay between the for loops, the motor couldn't find the moment to react to the code and do the second forloop to move backwards. After setting delays at the end of for loops and changed the delay durations for longer, our servo motor started moving back and forth with complete 180 degrees and normal pace. 

Then we also modified the SkillsDev code of piezo to respond to its own pushbutton with the melody that would also trigger the movement of the servomotor in the interaction. For this reason, we connected the objects (servo motor and piezo) through shared event code under GRP5_SZL by defining two new events (see below codes). As a result, when we push the button on piezo's circuit, the piezo plays the melody and the servo motor on the other circuit board moves (dances!) with the melody. 

Show Advanced Options
Show Advanced Options
Drop files here or click to select

You can upload files of up to 20MB using this form.