top of page

Creating an external heating pad for Oops! Lights out! using Arduino

Updated: Aug 5, 2024

This week, I am starting to work on the technical aspects of the tactile gameplay for my Unity game, Oops! Lights Out!. I will be using an Arduino Uno and a heating pad . Here is the shopping list for the required items:


A photo of how to connect components

The code uploaded to the Arduino is as follows:


void setup() {

Serial.begin(9600);

pinMode(10, OUTPUT);

digitalWrite(10, LOW);

}


void loop() {

if (Serial.available() > 0) {

char command = Serial.read();

if (command == '1') {

digitalWrite(10, HIGH);

} else if (command == '0') {

digitalWrite(10, LOW);

}

}

}


With the connection and Arduino code completed, I wrote a communication protocol between Arduino and Unity for the programmer. Shortly afterward, he managed to implement my vision. Then, a problem arose: the temperature of the heating pad changes gradually over time, making it difficult to accurately perceive a temperature threshold by human touch. This conflicted with the binary judgment of detecting a wall of fire/no wall of fire ahead, complicating the optimization of the player's gameplay experience.

I once considered replacing the tactile signal of temperature with more obvious signals, such as electricity or vibration, but none of these fit the story or art of the game. With limited time, altering mature game content for this extra device seemed risky, and electrical signals could even pose a safety hazard. Therefore, I explored ways to make the heat changes faster and more noticeable.


Edit one week later: I purchased two heat sinks and attached them to the back of the heating pad. This allows the heating pad to dissipate heat quickly and clearly indicate to the player that the area in front of them is safe. However, due to the insufficient heating efficiency of the graphene heating pad, there is still an issue with unclear indication of a "firewall ahead." Perhaps a material with higher heating efficiency could solve this problem.


A photo showing how I attached the heat sinks to the back of the heating pad

A photo demonstrating how players should use the heating pad


5 views0 comments

Comentários


bottom of page