When an exposure unit of a scanner became a nice RGB light © LGPL

The built-in electronic components from an old Canon scanner/printer result in real maker delights.

  • 14 views
  • 0 comments
  • 0 respects

Components and supplies

QK1-6841
a built in componenten from a multifunctional device
×1
Ard nano
Arduino Nano R3
use whatever you want
×1
11026 02
Jumper wires (generic)
8 pieces
×1
12002 04
Breadboard (generic)
×1

Necessary tools and machines

09507 01
Soldering iron (generic)

Apps and online services

About this project

QK1-6841 in action

One of my neighbors separated from his Canon multifunction printer and so I disassembled it: in addition to light barriers, DC motors and gear designs for the paper feed, an exposure unit "QK1-6841" also came to a 24 cm x 1 cm light. This is what this post is about:

My pitfalls when

  • soldering and
  • testing with the ribbon cable as well

as the really successful color result. I really didn't expect that. But look at yourself:

Soldering

As you can see, it was really difficult for me to attach my solder joints to the PINs of the adapter for the ribbon cable. When I worked with trembling hands in spite of the greatest effort, I think too much solder dripped onto the PINs. Finally, I did not use the adapter and checked the PINs on the left: I was more successful here and was able to attach my cables.

The assignment on the adapter as seen from the left is as follows:6V, red, green, blueand directly on the PINs:without, red, green, blue, 6V.

Remarkable: 6V are necessary, which I tapped from a power station for my first tests.

Testing with the ribbon cable

I thought that the ribbon cable "AWM 20798 80C 60V Hamburg-SH E235863" could be useful to me: after I exposed the insulating layer with 100 grit sandpaper, I destroyed the whole thing with too much heat and probably too much solder again. Too bad - it could have been easy.

To the manufacturers of ribbon cables: wouldn't it be clever to offer these cables with removable protective film on the conductor tracks? I've never seen anything like this - is there such a thing?

When I secured the soldering points with shrink tubing and provided the other 4 cable ends with Dupont plugs, the fun came with the implementation of a sketch for light control of 6V, R, G and B.

Realization with Arduino Nano

Note that the 3 RGB colors are addressed with the help of GND: this means a reverse logic: usually 0 switches off; the value 255 on - comparable to false and true. In our case it reacts "wrong":

/*
Ingo Lohs, 11.02.2020 - Lightning-Example - QK1-6841
*/
int ledPin_red = 9; // PWM-Port Arduino Nano
int ledPin_green = 10; // PWM-Port
int ledPin_blue = 11; // PWM-Port
void setup() {
// nothing happens in setup
}
void loop() { // color are REVERSE: GND (=0) put it on!!
// white:
analogWrite(ledPin_red, 0);
analogWrite(ledPin_green, 0);
analogWrite(ledPin_blue, 0);
delay(2000);
// green:
analogWrite(ledPin_red, 255);
analogWrite(ledPin_green, 0);
analogWrite(ledPin_blue, 255);
delay(2000);

My fear that the output voltage supplied by the Arduino was not enough to surprise us with the necessary 6V: a DC step-up component was not necessary.

Circuit exposure unit "QK1-6841" <> Arduino:

  • red <> D9
  • green <> D10
  • blue <> D11
  • 6V (in my case black colored cable) <> 5V without DC Step-Up extra component
Play of colors plus fading of white light

It had a WOW effect on me!

Code

Lightning-Example - QK1-6841C/C++
/*
 Ingo Lohs, 11.02.2020 - Lightning-Example - QK1-6841
*/

int ledPin_red =    9; // PWM-Port Arduino Nano
int ledPin_green = 10; // PWM-Port  
int ledPin_blue =  11; // PWM-Port   

void setup() {
  // nothing happens in setup
}

void loop() { // color are REVERSE: GND (=0) put it on!!
 //  white:
    analogWrite(ledPin_red, 0);
    analogWrite(ledPin_green, 0);
    analogWrite(ledPin_blue, 0);
    delay(2000);
 //  green:
    analogWrite(ledPin_red, 255);
    analogWrite(ledPin_green, 0);
    analogWrite(ledPin_blue, 255);
    delay(2000);
 //  light-green:
    analogWrite(ledPin_red, 127);
    analogWrite(ledPin_green, 0);
    analogWrite(ledPin_blue, 255);
    delay(2000);
 //  red:
    analogWrite(ledPin_red, 0);
    analogWrite(ledPin_green, 255);
    analogWrite(ledPin_blue, 255);
    delay(2000);
 // light-red:
    analogWrite(ledPin_red, 0);
    analogWrite(ledPin_green, 255);
    analogWrite(ledPin_blue, 0);
    delay(2000);
 //  blue:
    analogWrite(ledPin_red, 255);
    analogWrite(ledPin_green, 255);
    analogWrite(ledPin_blue, 0);
    delay(2000);
 //  light-blue:
    analogWrite(ledPin_red, 255);
    analogWrite(ledPin_green, 0);
    analogWrite(ledPin_blue, 0);
    delay(2000);
 //  dark-blue:
    analogWrite(ledPin_red, 255);
    analogWrite(ledPin_green, 127);
    analogWrite(ledPin_blue, 0);
    delay(2000);
 //  yellow:
    analogWrite(ledPin_red, 0);
    analogWrite(ledPin_green, 0);
    analogWrite(ledPin_blue, 255);
    delay(2000);
//   violett:
    analogWrite(ledPin_red, 0);
    analogWrite(ledPin_green, 255);
    analogWrite(ledPin_blue, 0);
    delay(2000);
//   white fading:
 for (int fadeValue = 0 ; fadeValue <= 255; fadeValue += 5) {
    analogWrite(ledPin_red, fadeValue);
    analogWrite(ledPin_green, fadeValue);
    analogWrite(ledPin_blue, fadeValue);
    delay(30);
 }
 for (int fadeValue = 255 ; fadeValue >= 0; fadeValue -= 5) {
    analogWrite(ledPin_red, fadeValue);
    analogWrite(ledPin_green, fadeValue);
    analogWrite(ledPin_blue, fadeValue);
    delay(30);
 }
     
}

Comments

Similar projects you might like

SmartPhone Controlled RGB MOOD Light

Project tutorial by Prajjwal Nag

  • 5,676 views
  • 1 comment
  • 9 respects

Night Light Assistant

Project showcase by Gabriele Fugazzi

  • 5,607 views
  • 9 comments
  • 23 respects

Smooth RGB LED Transitions with Johnny-Five

by Iain

  • 14,875 views
  • 3 comments
  • 36 respects

Light Sequence Creator

Project tutorial by Reid Paulhus

  • 12,206 views
  • 3 comments
  • 27 respects

Bluetooth Controlled Home Light

Project showcase by Shahadat Hossain Afridi and Khaled Md. Saifullah

  • 3,163 views
  • 2 comments
  • 11 respects

Arduino Audio Reactive Desk Light

Project tutorial by Haziq Azri

  • 21,213 views
  • 6 comments
  • 48 respects
Add projectSign up / Login