My pick this week is one of the many submissions on the File Exchange that mentions Valentine's Day somewhere in the description. However, unlike any of the others, this one runs standalone on an Arduino so I can set it up somewhere in my house an surprise my wife with it.
So what does it do? The Arduino is connected to a motion sensor and a breadboard with red LEDs on it shaped like a heart. When the motion sensor trips, it blinks the LEDs.
Here's a snapshot of the Stateflow logic:
So if you're curious what happened when I set this up in my house, here's a video. The motion sensor is very sensitive.
Many thanks to Ye for providing me with the hardware.
要发表评论，请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。