element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum First project ever and need help!
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 25 replies
  • Subscribers 392 subscribers
  • Views 1507 views
  • Users 0 members are here
  • help
  • first_project
  • ben_heck
  • question
Related

First project ever and need help!

Former Member
Former Member over 10 years ago

     To start i'm 15 and this is my first project that I have sat down and actually planned out. Also please note I have little to no programming skills. My plan is to build a vending machine that is powered by an arduino board. The arduino would power servo motors that would then dispense the item. My question is where do I even start. What kind of motors should I get? Can the arduino even run several motors? How can I make this connectable to an outlet? (not battery powered). What equipment do I need? I have so many questions I could write book. Any design tips and help I can get would be great. Also any design changes you think would make the idea more efficient do share.Thanks.

  • Sign in to reply
  • Cancel

Top Replies

  • gadget.iom
    gadget.iom over 10 years ago in reply to Former Member +1
    A good way to do this would be to use a DC motor that will rotate at a fixed speed. You can then control that using your arduino while timing a 360 operation and/or using a optical sensor to detect a complete…
  • gadget.iom
    gadget.iom over 10 years ago in reply to gadget.iom +1
    As this post looks like it is going to be mostly Arduino based you may want to move this post to The specified item was not found. . You can do this by clicking 'Move' in the menu on the right.
Parents
  • gadget.iom
    0 gadget.iom over 10 years ago

    Hi Chris

     

    That's a very ambitious first project. Your best approach it to break the whole thing down into a series of smaller tasks.

    You mention servo motors, a good arduino article about them can be found here; Arduino - Sweep

    What are you looking to dispense with this machine? How do you envisage servo's achieving the vending operation?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to gadget.iom

    Thanks for the reply my original idea was to use servos to rotate a large coil that would then drop the item, but thinking about it a servo wouldn't work a would need a whole motor to rotate the coil to be ready to dispense again and servo would just rewind back to its previous state. Except I have no experience with the code. Would it be fairly difficult to make a code that rotates the motor enough to make only one item dispense? and also have a delay so it can't be spammed?

     

     

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gadget.iom
    0 gadget.iom over 10 years ago in reply to Former Member

    And you can repeat this x number of times.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to gadget.iom

    Thanks so much! Now I have a lot to go off of. I was taking notes image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gadget.iom
    0 gadget.iom over 10 years ago in reply to Former Member

    Good to know. Keep us updated on your progress. image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gadget.iom
    0 gadget.iom over 10 years ago in reply to Former Member

    Another aspect to look at (though possibly a little more complete to wire up) is Stepper Motors. You can instruct them to rotate by a stated number of degrees. You can issue a command to rotate by 360º. Optical sensing would therefore only be necessary for error detection.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to gadget.iom

    Would 5 of these work? And what is a driver board? is it necessary?

     

    Amazon.com: RioRand Stepper Motor 5V DC 4-Phase 5-Wire with ULN2003 Driver Board: Computers & Accessories

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gadget.iom
    0 gadget.iom over 10 years ago in reply to Former Member

    Those stepper motors appear to be supplied with the necessary diver board. You will need 4 digital outputs per motor to drive these.

    My only concern is wether they have enough torque to turn the coil and drag the goodies along the track in your machine.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to gadget.iom

    I had a feeling the torque would be low this doesn't have a driver board but does have high torque

    1700-7300RPM 1.5-6.5V High Torque Cylinder Electric Mini DC Motor - Electric Fan Motors - Amazon.com

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gadget.iom
    0 gadget.iom over 10 years ago in reply to Former Member

    The speed would be an issue. If directly connected to the motor your coil would spin 1700 times a minute, resulting in a dispensing rate of 28 items per second. A vending machine gun. image

    You would need some kind of gearbox to reduce the speed to a sensible ratio.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gadget.iom
    0 gadget.iom over 10 years ago in reply to Former Member

    You could take some inspiration from Jan Cumps in his article: [Christmas Wreath of Things] Internet of Holiday Lights: part 5 - Stepper Motor works.

    This approach only uses two I/Os from the Arduino and gives you more flexibility over the voltage of your stepper motor.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to gadget.iom

    I will keep searching for a high toqrue motor with board then. Good to know.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Former Member
    0 Former Member over 10 years ago in reply to gadget.iom

    I will keep searching for a high toqrue motor with board then. Good to know.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • gadget.iom
    0 gadget.iom over 10 years ago in reply to Former Member

    See if you have any surplus electronics stores in your area. Most big cities seem to have them, or a store that includes a surplus section.

    Unfortunately the Isle of Man is lacking in such a place, but I was in Montreal last month and there was one there. Sooooo tempted to fill my suitcase.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube