SHENZHEN I/O

SHENZHEN I/O

Not enough ratings
Tesla Challenge 12: Smart Refrigerator
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
3.043 KB
8 Apr, 2017 @ 11:21am
2 May, 2017 @ 11:25am
2 Change Notes ( view )

Subscribe to download
Tesla Challenge 12: Smart Refrigerator

In 1 collection by 89o
SHENZHEN I/O Tesla Challenge Pack
24 items
Description
Subject: Smart fridge
From: Carl Tesky <carl@longteng-co-ltd.gd.cn>

You know about the recent development of the 'Internet of Things'? I thought it would be a good idea to get Longteng involved into that as well. For instance, we could create a fridge that automatically adjusts its temperature depending on how much stuff there is in it.

Subject: Re: Smart fridge
From: Joe (周海涛) <joe@longteng-co-ltd.gd.cn>

Are you kidding me? A FRIDGE?!?

---------

Small hint: You do not need to divide to figure out the arithmetic mean.

Big hint: Given that the scales will never read 100, dividing by 10 is as simple as doing
dgt 1


Optimization tip: Use two MC4000's to handle the three scale inputs, because you will need at least three simple I/O pins.
4 Comments
89o  [author] 2 May, 2017 @ 11:27am 
Also, if you're enjoying my Tesla Challenge Pack, then stay tuned for a TIS-100 Einstein Challenge Pack.
89o  [author] 2 May, 2017 @ 11:26am 
Done, updated.
89o  [author] 2 May, 2017 @ 11:22am 
Here's what I thought during the creation of the puzzle (and this is what my solution does):
For any input whose tens digit is higher than 5, add 1 to the temperature. For any input whose tens digit is lower than 5, subtract 1 from the temperature. Then add 3 if the door is open. If you do this for time unit 5, you end up with a temperature of 3 (+ 3 for the door) = 6.
And yes, you're right, this isn't mathematically equivalent to taking the tens digit of the average. I'll fix it soon.
As for the rapid input changing, the Lua implementation of the puzzle makes sure the shelf contents change ONLY when the door is open (which makes sense), hence the temperature changes.
criddle.rb 2 May, 2017 @ 6:15am 
Have enjoyed the puzzles in this set - thanks.

But on this one, I'm pretty sure that the verification tab doesn't match the description. For example, why is the output 6 for time unit 5? The shelf average is 58.7, so k = 0. And how can it drop to 1 (3 time units later) when the door is still open?

Unless I'm being daft, I don't think they match up...