Editor Version ×
Standard

1.Easy to use and quick to get started

2.The process supports design scales of 300 devices or 1000 pads

3.Supports simple circuit simulation

4.For students, teachers, creators

Profession

1.Brand new interactions and interfaces

2.Smooth support for design sizes of over 5,000 devices or 10,000 pads

3.More rigorous design constraints, more standardized processes

4.For enterprises, more professional users

Ongoing

STD wire cutter

License: CERN Open Hardware License

Mode: Editors' pick

  • 3.2k
  • 2
  • 5
Update time: 2021-04-09 08:41:48
Creation time: 2018-02-05 07:01:23
Description
Wire cutter Here is the arduino code //------------------------------- librarys ---------------------------------- #include #include //------------------------------- lcd ---------------------------------- LiquidCrystal lcd(12, 11, 2, 3, 4, 5); //------------------------------- stepper ---------------------------------- #define stepPin 7 #define dirPin 8 //------------------------------- servo ---------------------------------- Servo snippers; #define servo 10 #define openAngle 180 #define closedAngle 0 //------------------------------- input ---------------------------------- #define leftButton 14 #define rightButton 9 #define upButton 15 #define downButton 6 //------------------------------- user settings ---------------------------------- unsigned int wireLength = 0; unsigned int wireQuantity = 0; //------------------------------- system settings ---------------------------------- int state = 0; int incrementSpeed = 1; int previousWireLength = 0; int previousWireQuantity = 0; float mmPerStep = 0.18096; void setup() { Serial.begin(9600); lcd.begin(16, 2); //LCD columns and rows pinMode(upButton, INPUT_PULLUP); pinMode(downButton, INPUT_PULLUP); pinMode(leftButton, INPUT_PULLUP); pinMode(rightButton, INPUT_PULLUP); pinMode(stepPin,OUTPUT); pinMode(dirPin,OUTPUT); snippers.attach(servo); snippers.write(openAngle); delay(1000); } void loop() { if (!digitalRead(rightButton)){ if(state == 5){ state = 0; } else{ state += 1; } delay(200); lcd.clear(); } if (!digitalRead(leftButton) && state > 0 && state "); delay(100); } void chooseWireLength(){ wireLength = changeValue(wireLength); //clear LCD if required if(previousWireLength != wireLength){ lcd.clear(); previousWireLength = wireLength; } //Display information on LCD lcd.setCursor(0, 0); lcd.print("LENGTH:" + (String)wireLength + "mm"); displayNavigation(); } void chooseWireQuantity(){ wireQuantity = changeValue(wireQuantity); //clear LCD if required if(previousWireQuantity != wireQuantity){ lcd.clear(); previousWireQuantity = wireQuantity; } //Display information on LCD lcd.setCursor(0, 0); lcd.print("QUANTITY:" + (String)wireQuantity); displayNavigation(); } void confirm(){ lcd.setCursor(0, 0); lcd.print((String)wireLength + "mm x " + (String)wireQuantity + "pcs"); lcd.setCursor(0, 1); lcd.print(""); delay(100); } void currentlyCutting(){ lcd.setCursor(0, 0); lcd.print((String)0 + "/" + (String)wireQuantity); lcd.setCursor(0, 1); lcd.print("???s"); int stepsToTake = (int)wireLength/mmPerStep; for(int i = 0; i "); delay(100); } int changeValue(int currentValue){ if (!digitalRead(upButton)) { delay(100); currentValue += incrementSpeed; } if (!digitalRead(downButton)) { if(currentValue - incrementSpeed >= 0){ delay(100); currentValue -= incrementSpeed; } else{ currentValue = 0; } } if (!digitalRead(downButton) && !digitalRead(upButton)){ incrementSpeed = 1; } return currentValue; } void displayNavigation(){ lcd.setCursor(0, 1); lcd.print(""); delay(100); }
Design Drawing
schematic diagram
1 /
PCB
1 /
The preview image was not generated, please save it again in the editor.
ID Name Designator Footprint Quantity
1 LCD DISPLAY 16x2 U1 LCD DISPLAY 16X2 1
2 A4988 Stepper Motor Driver Carrier U2 A4988 STEPPER MOTOR DRIVER CARRIER 1
3 ARDUINO NANO U3 ARDUINO_NANO 1
4 POT RV1 10K POT COPY 1
5 SWITCH-6x6x5_TH SW1UP,SW2RIGHT,SW3DOWN,SW4LAFT SWITCH-6X6X5_TH 4
6 CON_TERMINAL_BLOCK_02-5MM J1,J2,J3 TERMINAL_BLOCK_2P_5 3
7 1x3 Pin Header U4 1X3 PIN HEADER 2.54MM 1
8 220OHM-1_10W-1%(0603) R1 AXIAL-0.3 1

Unfold

Project Attachments
Empty
Project Members
Target complaint
Related Projects
Change a batch
Loading...
Add to album ×

Loading...

reminder ×

Do you need to add this project to the album?

服务时间

周一至周五 9:00~18:00
  • 0755 - 2382 4495
  • 153 6159 2675

服务时间

周一至周五 9:00~18:00
  • 立创EDA微信号

    easyeda

  • QQ交流群

    664186054

  • 立创EDA公众号

    lceda-cn