5 In 5 Project: Make Alien Newcomer’s Live Better(MANLB)-Day#3 NE Feline

Yufei Zhang
Sep 2, 2018 · 5 min read

Background story:

1996, Red Coast Base, human receive the first message from another life form for the first time. On the screen of the translation machine shows a simple line:

LET’S PARTY!

20 Years later, more and more aliens who have been analyzed to determine that they can live on Earth have come to the planet. Although they can adapt to the living conditions here, they still face many problems, especially those lives in the most complicated city of Earth: New York.
So that’s why we are here: to help those newcomers who came to us for help and bring them a better living condition.


PART01: INTRODUCTION

CASE NUMBER:11235803

Storyboard

PART03: Making Progress

he first thing to determine is how to simulate the process of being offended by humans. Here I used Arduino and Joystick. Simulating being offended by humans by touching the model. When the model is touched, the Joystick will enter the data into the program, and the program will calculate the degree of anger of the creature. When the degree of anger reaches a certain value, the creature will be provoked and attacked.

The first thing I have to do is to connect and set up the Joystick. Since I have never touched Arduino before, these are very novel to me.

Hardware connection and corresponding code
Joystick Test!

After the Joystick configuration is successful, the code is written. Our basic idea is to first determine the default output value in the initial state of the Joystick. Then determine if it is poked by calculating the difference between the current output value and the default value.

Joystick Input & Anger Value

We set an automatic drop for the creature’s anger value so that his anger will calm down over time. We use the abs function to take absolute values to handle the problem that the difference between the input value and the default value when turning to different directions may be positive or negative.

But when we tested it later, we found that the creature’s anger value would be zero if it was quickly irritated. This is because the anger value is too large to exceed the maximum number of bytes that the function allocates for the storage space.

Number Too Big!

Another issue is how to balance the speed of rising and naturally fall of the anger value. If the speed of falling is too fast, it is difficult to irritate it, which will not be in line with the actual situation. If it rises too fast, it will not only exceed the upper limit, but it will also take a long time to wait until the creature naturally calms the anger.

So I made some column adjustments and tests on the function of calculating the value, and finally found a combination of numbers that are consistent with the facts and easy to simulate.

hen the successful simulation is completed by human offenses and the calculation of the degree of anger, what we are going to start is to simulate the part of the attack after the anger. Since the actual attack is too complicated, we are here to simulate with a red LED light. Here we use the if function to determine whether or not to attack. The value that trigger attack is also obtained after repeated testing.

After the basic part is completed, it is the production of the part of the simulated creature. Since I have not found glue in every location in my home, I can only use tape. Making a solid interior home and how to lay out the wires is also a problem I have encountered. But in the end, I managed to do it successfully.

The failure of this simulation was due to a loose wire in the top half of the production and I did not find it. However, this small error caused me to spend a lot of time checking the code and related settings. Presumably, this is also a problem that I often encounter when I work in PCOM in the future. I hope I can learn the lesson.

This simulation was successful! However, because the paper used is relatively thick, it is not obvious in the presence of light. In fact, if the time is sufficient and the materials are sufficient, it is the best choice to make the head into a lantern shape. Then I turned off the other lights and performed the last test.

YEAHHHHHHHHHHHHHHHH

Major Studio 1 Posts

Posts for Major Studio 1

Yufei Zhang

Written by

MFADT 2018

Major Studio 1 Posts

Posts for Major Studio 1

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade