Advanced Useless Machine

101,153

466

81

Hi everyone today I'd like to present my unusual useless machine. I hope everyone heard about useless machine, but I built advanced version with seven toggle switches.

The idea of doing this box came up the husband of my cousin. As approached their wedding, I decided to do this them as a gift.

Elements I used:

  • Microcontroller Atmega8
  • capacitors (electrolytic and ceramic)
  • resistors to reset pin
  • quartz 16MHz
  • connectors
  • many wires
  • DC motor driver L298
  • 7 toggle switches
  • limit switch
  • power connector
  • two wires supply switch
  • power supply - I have witch four wires - GND, "-", 5V/2A, 12V/2A
  • two servos - I dismantled from old toy
  • stepper motor
  • from old printer
  • rail on which the carriage moves - also from old printer
  • arm - I made of the nail
  • boards, screws, hinges, timbers - everything needed to build the box

Step 1: Box Construction

Build my box started by gathering all the items I needed. It included elements from old printer, motors, servos, etc. Many items I took from recycling. At first I had to found old printers. I asked my friends and they gave me three printers. outside stepper motor and rail I dismantled capacitors and many wires. Testing my elements lasted a very long time. I wrote testing programs for servos, stepper motor, switches. When I was sure that all working I started to build wooden box. Everything else I bought at a DIY store.

For this I used:

  • Planed board(?) with dimensions 2000mm x 80mm x 15mm (78" x 3.14" x 0.5")
  • Planed board(?) with dimensions 2000mm x 120mm x 15mm (78" x 4.7" x 0.5")
  • Timbers with dimensions 2000mm x 30mm x 15mm (78" x 1.2" x 0.5")

Also I needed two hinges and many screws Torx T25.

My rail is 400mm(15.7") long so size of my box is:

  • Width 430mm (17")
  • Height 120mm (4.7")
  • Length 160mm (6.3")

Before installing all the elements in box I had to adapt the stepper motor to the transtainer. Originally there was DC motor with perforated tape and encoder. Unfortunately I had problems reading value of the encoder, so I exchanged DC motor on stepper motor from another printer.

The next step was the location in the box all the elements. At the beginning Of the two wooden beams I have placed transtainer.

I screwed on the sides another two timbers and to one fitted a servo, which open the flap, while the second contactor. Then I drilled holes for switches. Construction of the box was finished.

Step 2: Electronics

From the power supply 12V I connected by the L298 driver to stepper motor. At first I wanted to use L293 driver but it too much warming because my stepper motor receiver 2A.

5V I used to supply logic part and servos. I started tests on a breadboard. When everything worked I moved everything on the prototype board.

Program on Atmega I wrote in Arduino IDE. At the begin I wanted to do it in C in Eclipse, but I didn't have experience. (program code) In a large summary, box starts its operation in position "0", while holding the contactor. when is more switches on , flap does not close. If it turn of all the switches flap closes and a few empty loops scanning, arm returns to position "0".

Step 3: Program

Program on Atmega I wrote in Arduino IDE. At the begin I wanted to do it in C in Eclipse, but I didn't have
experience.

CODE

Program code is not so complicated. If you know a little bit C language or Arduino IDE you can understand everything.

In a large summary, box starts its operation in position "0", while holding the contactor. when is more switches on , flap does not close. If it turn of all the switches flap closes and a few empty loops scanning, arm returns to position "0".

Step 4: Conclusion

I built this useless machine for almost 3 months. Sometimes I had a big problems, which took me many days to solve, but I'm so proud of my box. It got me so much pleasure and knowledge during building it.

I know that article is not so long but I'm from Poland and I'm not writing in my language. If you have some questions, please ask me in the comments section, I will try to answer :)

Share

Recommendations

  • Make it Glow Contest 2018

    Make it Glow Contest 2018
  • First Time Author

    First Time Author
  • Baking Challenge

    Baking Challenge

81 Discussions

0
None
wilson3682

22 days ago

Hi mysior103, first of all thanks for the tutorial and for sharing the code. I have a question regarding the k1 switch. Where is this switch placed in the box? I don't see it in the pictures. Thanks again.

4 replies
0
None
mysior103wilson3682

Reply 21 days ago

Hi, switch K1 is at the begin of the arm. It checks if arm is on the start position.

0
None
wilson3682mysior103

Reply 19 days ago

Thanks mysior103. I finally got mine to work. Thanks again for everything. I will post a video as soon as I finish. I used a cd-rom drive's stepper motor.

20181123_195620.jpg20181123_214239.jpg
0
None
mysior103wilson3682

Reply 21 days ago

Hi, switch K2 checks if arm is on start position. On the attached picture I pointed where it is placed.

temp.PNG
0
None
wilson3682mysior103

Reply 21 days ago

Thanks mysior103 for your prompt response. Now I can see k1, but where in the code is k2? and what kind of switch is it? Thanks again!

0
None
sabechamp

3 years ago

Is this what will take the place of steering wheels after self driving cars hit the road?

1 reply
0
None
ElectroFranksabechamp

Reply 10 months ago

No.
That would be self-driving ambulances. Followed by self-driving hearses.

0
None
권우김

11 months ago

How can I get above source code file?

0
None
ianjgough7

12 months ago

Hey,
Looks and works great but please re-post the code so i can have a peak.
Thanks,
Ian

0
None
larystoy

1 year ago

English version of source code please, Google translate didn't help me with it, such as what is "frame", "flap", and other words? Thanks if you can help with this. larystoy

2 replies
0
None
BrunoReis123

1 year ago

Hello, someone has the code pls ?

0
None
edwardthed

1 year ago

Very nice machine. The link for the code is not working anymore. Do you still have the code thanks

0
None
laxap

1 year ago

Insanely cool!

0
None
SuperTech-IT

1 year ago

For power saving (if wanted)
Replace power switch with a push-button. Push button bypasses a relay contact to give power to the microcontroller. Fist thing the microcontroller does is power on the relay, which now becomes the "power on" switch. After delay, arduino powers off the relay, disconnecting it from power completely (ZERO power draw). I did this in my "vampire killer" project - there is a schematic there for this complete power off / push button to start" circuit.

0
None
SuperTech-IT

1 year ago

Nice twist on a classic creation!

0
None
ThanhD6

2 years ago

Link code is die, please give me new link code. Thank you

1 reply