Shenzhen IO

Shenzhen I/O: Personal Sandwich Maker

Shenzhen I/O: Personal Sandwich Maker

Yeah, this time we are going to make a personal sandwich maker. What could possibly go wrong when making food? Nothing right! This one took me a while to crack, or rather it was fairly easy to make solution. But it took me quite a few tries to make a good one.

The sandwich maker print board have an xbus input where it gets a number from 1 to 3 which is three different modes

  1. Normal sandwich
  2. Hold the cheese
  3. Extra mustard

Continue reading →

Posted by Kristian in Shenzhen IO, 0 comments
Shenzhen I/O: Token-Based Payment Kiosk

Shenzhen I/O: Token-Based Payment Kiosk

You are into history or at least history reenactment? That is what this puzzle is about, but apparently we are to make a Token-based payment kiosk…. just like they had in the good old days. Let us not fight over historical details, but let us take a look at this fun problem.

Oh and just a side note, by this time in the game we finally got the gen instruction. So now we can use it without problem.

The overall machine takes in a price as well as three simple inputs signifying three coin types of 1, 5 and 12 in value. We are then going to keep accepting coins until the price is reached. After which we must ring a bell for 4 seconds as well as give back change in 5 and 1 with the least possible coins.  Continue reading →

Posted by Kristian in Shenzhen IO, 3 comments
Shenzhen I/O: Unknown Optimization Device

Shenzhen I/O: Unknown Optimization Device

Poseidon-779 a Decentralized Autonomous Corporation has decided that we need to help them go into Thorium mining. And while I wont steer off a tangent telling you about Thorium reactors, although they are pretty cool, we should just make this unknown optimization device also known as 2A27.

We get two simple inputs x and y and have to deliver a simple output with a given value. That means we at least have to use 2 micro controllers. So we should not be able to make a solution for less than 6¥. Continue reading →

Posted by Kristian in Shenzhen IO, 0 comments

Shenzhen I/O: Color-Changing Vape Pen

Welcome back to china and our electronic building company. This time we got a contract with Cool Dad to make a color-changing vape pen – or rather millions for all his fans, so let’s see how we can implement that.

The specs here says that we will get a packet over radio which is either -999 which means that we should just sleep or it is four values with the meaning red, green, blue, duration. Which means the intensity of the 3 colors and the duration to hold it.

It also says that if we get a new instruction while we are currently running, we should override it. However, it only happens in the test set if the duration is 999. Otherwise it seems to run out. Continue reading →

Posted by Kristian in Shenzhen IO, 0 comments
Shenzhen I/O – Laser Tag Equipment

Shenzhen I/O – Laser Tag Equipment

I did not know that our company made weapons. But I guess as long as it is laser tag equipment it should be okay. This is in my opinion the hardest problem so far. We are asked to make a computer to control the equipment for a game of laser tag. And there are quite a few rules we need to take into consideration. Continue reading →

Posted by Kristian in Shenzhen IO, 0 comments
Shenzhen I/O – Wireless Game Controller

Shenzhen I/O – Wireless Game Controller

Every hotel in Japan wants it only gaming console. And guess who is to make the wireless game controller for that! We are of course. The challenge here is to listen to the radio, and if there is a signal that we should send a reading back on the radio. We should read the two analogue joysticks (x and y) and send each value back as well as a value for the combination of a & b input 1 if a is active, 2 if b is active and 3 if both are active. Continue reading →

Posted by Kristian in Shenzhen IO, 0 comments
Shenzhen I/O – Virtual Reality Buzzer

Shenzhen I/O – Virtual Reality Buzzer

VR is the next big thing, everyone agrees to that. And so does the employees in Shenzhen Longteng Electronics Company Ltd.. But once you are emerged you don’t notice if someone sneaks up on you. Therefore David really wants us to make a small buzzer for him that he can strap to his VR goggles to notify him if there is someone approaching him – aptly named the virtual reality buzzer.

We get readings from a non-blocking xbus port on a radio. If that is one then we should start the buzzer generating pulses of 1 width. If it is zero we should stop the buzzer again. And so on. If the reading is -999 we should just continue what we are doing. This results in the following verification signals.

Shenzhen IO - Virtual Reality Buzzer - signals Continue reading →

Posted by Kristian in Shenzhen IO, 0 comments
Shenzhen I/O – Passive Infrared Sensor

Shenzhen I/O – Passive Infrared Sensor

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 IO - Passive Infrared Sensor - signals Continue reading →

Posted by Kristian in Shenzhen IO, 1 comment
Shenzhen I/O – Harmonic Maximization Engine

Shenzhen I/O – Harmonic Maximization Engine

By now we are veterans in making cheap electronic gadgets for the company. And now they want us to make a Harmonic Maximization Engine! That sounds cool.

When we look at the specifications we are supposed to copy the audio-in to audio out as long as the maximize is not high.

If the maximize input is high then we should apply the following algorithm

AUDIO_OUT = (AUDIO_IN – 50) x 4 + 50

As it is given to us in the manual. This gives us the following signals for verification

Shenzhen IO - harmonic maximization engine - signals Continue reading →

Posted by Kristian in Shenzhen IO, 0 comments
Shenzhen I/O – Drinking Game Scorekeeper

Shenzhen I/O – Drinking Game Scorekeeper

Joe have been out drinking again. This time with Baron Von Schnapps. I don’t say this was a serious game. However, it resulted in yet another deal for us. So good job Joe on landing electronics, bad job for your liver. However, they want to promote their drink with a small game. And we are to make a drinking Game Scorekeeper to help them with that.

He might not remember the exact rules, but we are given two inputs called point and foul. As well as a display with a non-blocking xbus input. And if they trigger point, we should increment the display with one. If we get a foul we should subtract 2. However, we should never show less than zero on the display. Continue reading →

Posted by Kristian in Shenzhen IO, 0 comments