This article is updated every week, with new ongoing developments in the project.
If you like to open up old electronic appliances to see what’s inside, and salvage a few useful components, this article is for you. In this article, we are going to learn about the basic idea involved in converting an inkjet printer into a plotter.
Project overview- There’s next to no difference between the mechanism of movement in inkjet printer and a RC Car. So you don’t need any prior experience in Arduino.
Here’s what the project looks and works like, so far-
As every printer does not contain the exact same setup of components inside, we’ll be talking about the general idea of what is to be done.
Things you will need-
1. An old inkjet printer (Obviously)
2. Arduino Uno
3. L293d Motor shield
4. Joystick Module
5. A push button and a 330 ohm resistor
6. 12V 2-Amp DC Power supply
7. A 9g Servo motor
8. Ingenuity
9. Tenacity
I already had the last two, however you might want to order them from amazon if you don’t have them?
1. To start with, as you open the printer you will come across lots of parts that won’t be needed for this project. What you need to look for is two modules-
- A carriage holding the cartridges, responsible for horizontal motion of the plotter.
- The mechanism that advances the paper, (pulls it forward).
Rest isn’t needed for the project.
The modules mentioned above (Top right)
Both of them simply consist of a motor and some mechanical structures facilitating the movement of the carriage.
Make sure you pull out all the ink pads present in the printer before dismantling deep!
2. The mechanism that pulls the paper in from the feeder allows the paper to only move in one direction (that’s pretty much why you never see the paper moving reverse in the printer). So we will have to remove the entire paper feeding mechanism and insert the paper manually from the rear.
3. Don’t be afraid to cut out the unnecessary plastic, acting as an obstruction in your project, especially that part that will be holding the servo.
The cartridge holder can be easily pulled out, I realised this after a lot of attempts to cut it off.
4. Setup the the circuit, and upload the code as below-
THE CIRCUIT DIAGRAM-
Download and zoom for a better view |
THE ARDUINO CODE-
#include <AFMotor.h> #include <Servo.h> #define SERVO1_PWM 9 int joyPin1 = A0; // slider variable connecetd to analog pin 0 int joyPin2 = A1; // slider variable connecetd to analog pin 1 int value1 = 0; // variable to read the value from the analog pin 0 int value2 = 0; // variable to read the value from the analog pin 1 AF_DCMotor M1(1); AF_DCMotor M2(2); Servo servo_1; void setup() { servo_1.attach(SERVO1_PWM); M2.setSpeed(120); M2.run(RELEASE); M1.setSpeed(120); M1.run(RELEASE); Serial.begin(9600); } void loop() { // reads the value of the variable resistor value1 = analogRead(joyPin1); // this small pause is needed between reading // analog pins, otherwise we get the same value twice delay(100); // reads the value of the variable resistor value2 = analogRead(joyPin2); if(digitalRead(A2)==HIGH) servo_1.write(50); else servo_1.write(110); Serial.println(digitalRead(A2)); if (value1>600) M1.run(FORWARD); else if (value1<100) M1.run(BACKWARD); else M1.run(RELEASE); if (value2>900) M2.run(FORWARD); else if (value2<500) M2.run(BACKWARD); else M2.run(RELEASE); }
The above code is the basic code to control the movement of the carriage and the paper using the joystick.
Experiment all that you want to!
You can also write codes for drawing a perfect shapes like square or circles, at the press of a button. I will be uploading the codes for the same on this article soon.
To read further updates on the project subscribe to this blog to get notified at every new addition.
Maciek
October 17, 2017 at 6:26 pmHi Siddharth,
just wanna say hello and thank you for the inspiration.
I have two cheap printers which are to expensive to 'refill' as long as you can buy new one in a price of new ink cardridges and till now I have no idea how to use them.
I love the idea of salvaging old equipment, so I am looking forward to see Your next projects.
Siddharth Kothari
October 18, 2017 at 5:05 amGreetings Maciek!
Thanks for the kind words.
The cost of cartridges, was pretty much what inspired me, as well, to work on this project. I'm still at it, trying to add more functionality.
Stay Creative ☺