# Guy and Seth on Simulink

## Sous-vide Cooking with Simulink Part 2

Here is the continuation of my sous-vide cooking story I began to tell in the last post.

Hardware Implementation

As described last week, I finally received everything I ordered:

I dusted off my soldering iron and soldered a cable to the LM35. Then I dipped the extremity into silicone to make it waterproof. With everything connected to the Arduino, my circuit looks like this:

Yeah... I know, a Tupperware is not the best container for a micro-controller. But I thought it would help avoiding to drop water on the Arduino.

Software Implementation

With everything connected to the Arduino, all that remained was to program a controller. I installed the Simulink Support Package for Arduino.

Update: This model was created using MATLAB R2011b. Since R2012a Simulink provides built-in support for prototyping, testing, and running models on low-cost target hardware, including Arduino®, LEGO® MINDSTORMS® NXT, and BeagleBoard.

Within just a few minutes, I created the following model and uploaded it on the Arduino:

While this is running on the target, I can monitor the process on my PC using another model:

Cooking Time

I mixed a nice rub and vacuum-sealed a bunch of pork ribs.

I left them to cook for 24 hours at 140 degrees Fahrenheit.

I was so excited when it was time to take them out that I forgot to take pictures. I put them in the oven at broil for 2 minutes, just to give a little crunch on the top.

Believe me... that was totally worth the effort. Next time I'll try the 72 hours brisket!

### 4 Responses to “Sous-vide Cooking with Simulink Part 2”

1. Karthik replied on :

What a Guy! Although I am a vegetarian and thus don’t know much about pork ribs let alone cooking it, I think Simulink rocks and so does this Guy! :-)

2. Wintersprite replied on :

To be honest, the last thing I need to do on a weekend is spend more time sitting in front of a computer. “Sitting is the new Smoking,” so they say. However, I find reports on ways to use Simulink for practical home purposes very interesting, and I could imagine making the effort if the right idea (I don’t know what that is) were presented.

3. samil replied on :

Just as I started to get interested in hobby electronics, and particularly the Arduino, it was a pleasant surprise to see this post. Could you please post more projects that use Simulink and Arduino?

4. Helen Rennie replied on :

Hi Guy,

I am an ex-Mathworker, who now runs a cooking school in Natick :) Congrats on your pork ribs! Wait till you try the eggs. I was actually thinking that it would be awesome to model how different muscles behave at different temperatures. The way chefs figure out how long and how hot to cook something with sous-vide is just trial and error. Of course, I have no idea if that’s something that’s possible to model.

Best of luck to you with all your cooking experiments.

Cheers,
-Helen

 Name (required) E-mail (required, will not be published) Website (optional) Spam protection (required): What is 2 + 10 ?

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>


If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).

Guy Rouleau and Seth Popinchalk are Application Engineers for MathWorks. They write here about Simulink and other MathWorks tools used in Model-Based Design.

These postings are the author's and don't necessarily represent the opinions of MathWorks.