Glowing Heart

Glowing Heart

prusaprinters

<p>This was my first time combing Arduino with 3d printing. Eventually, I'll have a video for this project but not at the moment.</p><p>&nbsp;</p><p>Here's the very basic code that I've programmed. (subject to change)</p><p>const int analogPin = A0; &nbsp;&nbsp;<br>const int redLED = 11;<br>const int whiteLED = 12;<br>const int threshold = 400;<br>const int OFF = 100;</p><p>void setup() {<br>&nbsp;pinMode(redLED, OUTPUT);<br>&nbsp;Serial.begin(9600);<br>}</p><p>void loop() {<br>&nbsp;int analogValue = analogRead(analogPin);<br>&nbsp;if (analogValue &gt; 100 &amp;&amp; analogValue &lt; 300)<br>&nbsp;{<br>&nbsp; &nbsp;digitalWrite(redLED, HIGH);<br>&nbsp; &nbsp;digitalWrite(whiteLED, LOW);<br>&nbsp;}&nbsp;<br>&nbsp;else if (analogValue &gt; 300 &amp;&amp; analogValue &lt; 500)<br>&nbsp;{<br>&nbsp; &nbsp;digitalWrite(redLED, LOW);<br>&nbsp; &nbsp;digitalWrite(whiteLED, HIGH);<br>&nbsp;}&nbsp;<br>&nbsp;else if (analogValue &gt; 500 &amp;&amp; analogValue &lt; 800)<br>&nbsp;{<br>&nbsp;digitalWrite (redLED, HIGH);<br>&nbsp;digitalWrite (whiteLED, HIGH);<br>&nbsp;}<br>&nbsp;else&nbsp;<br>&nbsp;{<br>&nbsp;digitalWrite (redLED, LOW);<br>&nbsp;digitalWrite (whiteLED, LOW);<br>&nbsp;}</p>

Download Model from prusaprinters

With this file you will be able to print Glowing Heart with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Glowing Heart.