SHENZHEN I/O

I think we are at problem number 7 in Shezhen I/O where we are asked to help a security company design a passive infrared sensor that will trigger an alarm between a given time interval, if there is too much activity. We are given a problem where were have the a simple sensor input and a simple alarm output. We also have a simple input giving us time. Further more we have 2 xbus inputs giving us the on and off times. The problem description is simple enough, if the timer is between the on and off time (loop) and the sensor reading is 20 or higher we should trigger the alarm. Just like the signals here tells us

Shenzhen I/o Gen Command

Structure of the passive infrared sensor

  • Shenzhen I/O is a video game where the player takes the role of an engineer at an international electronics company, Shenzhen Longteng Electronics Co., Ltd. The game simulates a corporate desktop computer, from which they are tasked with working alongside fictional “coworkers” to design and program circuits for various clients.
  • For the best SHENZHEN I/O experience, we highly recommend printing this manual and assembling a binder that you can refer to as you play. To assemble the binder, simply follow these instructions:. Get a 0.5-inch 3-ring binder (such as this one) and a set of 5-part tabbed dividers (such as this one).

SHENZHEN I/O is a full version Windows game, that is part of the category PC games with subcategory Emulators. More about SHENZHEN I/O. It's available for users with the operating system Windows Vista and previous versions, and you can download it only in English. The current version of the game is 2016 and it has been updated on 1/04/2017. Shenzhen I/O is the latest title from Zachtronics, creator of many fantastic logic puzzle games such as Spacechem, Infinifactory and TIS-100. Shenzhen I/O takes the coding mechanic of TIS-100. SHENZHEN I/O Solutions Personal save files for the imaginary micro-controller programming game SHENZHEN I/O. Surprisingly, my solution repo for another imaginary programming game TIS-100 had a small readership, so may as well revisit that idea for another title I have been playing with.

Shenzhen I O Solutions

I already used the trick of a DX300 last time to convert between an xbus signal and a simple output that only flips on and off. So if we use that again we have 2 simple pins and 3 xbus pins. Which means that a MC6000 can cover all of it, if there is enough room for the lines of codes needed. But let us start coding based on the following structure of the design. Free download story books.

Coding the thing

Since the timing if cyclical I haven’t found a way to just check if the time if between the two, since it varies in the different test cases. On the other hand the clock never skips a beat. So we can just flip a switch whenever the time equals the on or off time. I have used the acc register for it, and used the following code

That means we know that if the acc is 100 then the sensor is active. Actually checking whether the alarm should be triggered is fairly trivial and uses the code.

We start by checking if we are activated. If that is the case we check if the signal is larger then 19, since we need to trigger if the signal is 20 or higher. If that is the case. We will move 10 to x2 as the connection gives us a 100 on the output side for that, and then sleep. If we shouldn’t trigger we will move 0 to x2.

In total that gives us 9 lines of code plus a few comments. Easily fittable withing the available 14 lines of code that we can put into the MC6000 unit.

I/OI/O

Shenzhen I/o Pdf

All in all that means the solution will look like

This gives us a solution in

Cost: 6
Energy: 358
Lines of code: 9

I know that some managed to find a solution in fewer lines of code, but I cannot figure out how to do that.

Related posts