Automatic Key Stroker

Automatic Key Stroker

prusaprinters

<p>Just a simple key stroker. You dont know you need one until you do... :D</p> <p>It uses a mini servo, a small potentiometer (optional), and any arduino compatible board that can fit inside the box and can handle the servo. I used a cheap Wemos D1 Mini clone. You need 6x3mm bolts (same size as the bolts used in Prusa printers).</p> <p>Arduino code is included in the print instructions since this website does not allow me to upload the .ino file...</p> <h3>Print instructions</h3><p>Just use your normal settings. I included a 3mf file for reference.</p> <p>Arduino code:</p> <h3>include &lt;Servo.h&gt;</h3> <h3>include &lt;SimpleTimer.h&gt;</h3> <p>Servo myservo;<br/> int pos = 0;<br/> int lowpos = 0;<br/> int highpos = 90;<br/> int servopin = 2;<br/> int potpin = A0;<br/> int ledpin = D7;<br/> int val = 0;<br/> int oval = 0;<br/> int pot = 0;<br/> int servoSpeed = 4;</p> <p>SimpleTimer timer;</p> <p>void setup() {<br/> myservo.attach(servopin);<br/> myservo.write(lowpos);<br/> Serial.begin(9600);<br/> timer.setInterval(val);<br/> }</p> <p>void loop() {<br/> pot = analogRead(potpin);<br/> //Serial.println(pot);<br/> val = map(pot,1,1024,15000,0);<br/> val = val * 1000 / 1000;<br/> if (abs(oval-val) &gt; 1000) {<br/> Serial.println(val);<br/> oval=val;<br/> timer.setInterval(val);<br/> timer.reset();<br/> }</p> <p>if (timer.isReady()) {<br/> moveServo();<br/> }<br/> }</p> <p>void moveServo() {<br/> for (pos = highpos; pos &gt;= lowpos; pos -= servoSpeed) {<br/> myservo.write(pos);<br/> delay(15);<br/> Serial.println(pos);<br/> }<br/> for (pos = lowpos; pos &lt;= highpos; pos += servoSpeed) {<br/> myservo.write(pos);<br/> delay(15);<br/> Serial.println(pos);<br/> }</p> <p>timer.reset();<br/> }</p>

Download Model from prusaprinters

With this file you will be able to print Automatic Key Stroker 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 Automatic Key Stroker.