📜 ⬆️ ⬇️

Warm tube "clicker"



Foreword


Traveling across the expanses of the Internet, I came across one uninteresting category of toys - "clickers." I was especially pleased with the Office Clicker . Stupidity is of course utter, but there is something in it. You can write some script that will play instead of me, but this is too trite. I decided to make a hardware clicker, but not just a hardware clicker, but a warm-tube clicker! Interesting? I ask under the cat!


')

Warm "lamp" circuitry


The scheme came to my mind a very non-trivial, it was based on the automobile high-beam bulb (which I will proudly call a “lamp”):


Parts ratings:

The principle of the scheme is as follows:
  1. "Lamp" cooled (cools);
  2. Voltage U1 <U2;
  3. The comparator supplies the enable signal to the transistor T1;
  4. Transistor T1 open;
  5. The relay contacts are closed;
  6. A current begins to flow through the “lamp” => it heats up;
  7. The resistance of the "lamp" increases;
  8. The voltage U1 grows and approaches U2;
  9. When U1> U2, the comparator stops signaling at T1;
  10. Transistor T1 is closed;
  11. Relay contacts open;
  12. U1> U2, but gradually U1 decreases;
  13. GOTO 1.

The frequency of the generated signal depends on:

By changing the voltage U2, we change the heating time of the “lamp”, respectively - the more U2 the lower the frequency will be.

Resistor R4 and Zener diode D1 (for voltage 3.3V) are used to generate a control signal for the next node - the Arduino Duo board.





Interface


As you already understood, I chose the Arduino Duo board as the interface board between the “tube” relay and the computer.

The principle of operation is very simple:


Here is the program for Arduino, which I wrote about this:
#define VACUUM_LINE 13 void setup() { pinMode(VACUUM_LINE, INPUT_PULLUP); Mouse.begin(); } void loop() { if (digitalRead(VACUUM_LINE) == HIGH) { Mouse.press(); delay(10); } if (digitalRead(VACUUM_LINE) == LOW) { Mouse.release(); delay(10); } } 


We are testing


Instead of a thousand words, I suggest watching one video:


Thanks for attention! I hope my article has helped to improve your mood!

Source: https://habr.com/ru/post/394859/


All Articles