• Models
  • Contests
  • Slicer
  • Login
  • Start Here
    thingiverse-iconprintables-iconcults3d-iconmakerworld-iconmyminifactory-icon

    3D GO

    3D ModelsContestsCollectionsSaved ModelsOn a mobile device?

3D GO

Privacy Policy
Useless Box - Multi Switch 3D Printer File Image 1
Useless Box - Multi Switch 3D Printer File Image 2
Useless Box - Multi Switch 3D Printer File Image 3
Useless Box - Multi Switch 3D Printer File Image 4
Useless Box - Multi Switch 3D Printer File Image 5
Useless Box - Multi Switch 3D Printer File Image 6
Useless Box - Multi Switch 3D Printer File Image 7
Useless Box - Multi Switch 3D Printer File Image 8
Useless Box - Multi Switch 3D Printer File Thumbnail 1
Useless Box - Multi Switch 3D Printer File Thumbnail 2
Useless Box - Multi Switch 3D Printer File Thumbnail 3
Useless Box - Multi Switch 3D Printer File Thumbnail 4
Useless Box - Multi Switch 3D Printer File Thumbnail 5
Useless Box - Multi Switch 3D Printer File Thumbnail 6
Useless Box - Multi Switch 3D Printer File Thumbnail 7
Useless Box - Multi Switch 3D Printer File Thumbnail 8

Useless Box - Multi Switch

coffeman500 avatarcoffeman500

July 9, 2018

thingiverse-icon
DescriptionCommentsTags

Description

This is a Useless Box that flips multiple switches instead of just one. It uses a stepper motor & A4988 driver to move the arm, and two servos - one for the arm, and one for the lid. The box is controlled by an ATMEGA328P. In Action: https://i.imgur.com/oVlNI0r.mp4 Code: https://github.com/coffeman500/UselessBox/blob/master/useless_box_arduino.ino Schematic: https://easyeda.com/coffeman500/useless-box Parts:
  • Arduino Uno
  • L7805 & L7806
  • Arm Servo
  • Door (Lid) Servo
  • Stepper Motor Belt
  • A4988 Stepper Motor Controller
  • Stepper Motor
  • 5cm x 7cm Protoboard
  • Pulley Wheel
  • Female Power Plug
  • Power Adapter
  • Home Switch
  • Switches
  • Box Hinges
  • Assorted m3 & m4 nuts & bolts
Summary: The program uses switch interrupts to watch the 3 switches. When flipped the interrupt fires (Line 62-117) and adds any switched pins to the linked list (Line 37-44). The main loop then watches the linked list, and goes to turn off any nodes added as they appear, moving down the list as necessary (159-176). There's also a fallback method to just hit any switches that are HIGH in case the linked list fails to capture a trigger (179-192). When the program becomes idle (no switches are available to hit) it resets back to a default state by moving the platform all the way left until the lever switch (Home Switch) is hit, and resetting the arm & lid (Door) servo positions (245-274).

License:

Creative Commons - Attribution

Related Models

Air Spinner preview image

Air Spinner

walter profile image

walter

28,803

The Useless Sword - Flexi Sword preview image

The Useless Sword - Flexi Sword

torrent.fab profile image

torrent.fab

443

Truly Useless Machine, Extra Useless Edition preview image

Truly Useless Machine, Extra Useless Edition

Roman L profile image

Roman L

37

Drilling Bounding Ring preview image

Drilling Bounding Ring

mishkin2 profile image

mishkin2

10,700

1 cm & 1 inch Measuring Tape preview image

1 cm & 1 inch Measuring Tape

jor2468 profile image

jor2468

363

Numbers 0-9 preview image

Numbers 0-9

Villadsen profile image

Villadsen

1

Triaxial Tourbillon Clock Make/Mods preview image

Triaxial Tourbillon Clock Make/Mods

mcmaven profile image

mcmaven

10,205

Useless box (Arduino controlled) preview image

Useless box (Arduino controlled)

Sebastian profile image

Sebastian

115