element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • 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
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • 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
Sustain The World - Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Sustain The World - Design Challenge
  • More
  • Cancel
Sustain The World - Design Challenge
Blog Waste Food Management Blog #7  Finished control box
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: wtos03
  • Date Created: 13 Sep 2020 5:22 PM Date Created
  • Views 635 views
  • Likes 1 like
  • Comments 1 comment
Related
Recommended

Waste Food Management Blog #7  Finished control box

wtos03
wtos03
13 Sep 2020

This week I spent most of the time finishing the program and put all together in the box.  It’s a troubleshooting week, as many problems arise during assembly all components in the box.

At the start, I plan for Auto program to start and finished with one button.  However, I realized that when you start crusher motor. You do not know when to stop because you don’t know how much time you need. Then I modified Auto program to stop when press start/stop button again for move to next state. EM valve will start to release EM and then start the Stir motor to mix all together for a specific time and stop. 

 

Summary of Ports uses to control program.

                                                              Arduino Port

AUTO  PROGRAM  LED  STATUS               0

MOTOR  CRUSH  LED STATUS                  1

SERVO FOR EM LED STATUS                    8

MOTOR STIR LED STATUS                         9

WORKING LED STATUS                              6

 

SERVO PORT                                               5

START/STOP  SW                                         2

 

On the front panel, I had installed two more LEDs for future expansion. One for an indication of EM empty and one for waste bin full warning.  I am not sure that have time to Implement, so I will freeze the code now to begin machine construction.

I had bought the box for electric cabinet and start to put all components together.  For power supply, I will use 12 V adapter and  12 to 5 V/3.3V adapter board. This board causes me many problems.  It’s very hot when supplying the current and burns. I changed the new one and it’s still very hot. It seems that these boards under spec. I bought them very cheap from internet.  XMC4700 begin reset after the Servo move.  I waste a  lot of time to solve this and just found that the current is not enough. When I change for bigger supply, it solves the problem. But I need to change the supply board.  The supply board shown in the picture needs to be changed.

 

image

 

Next, install the DC Motor shield and 3D sensor shield on top of XMC4700 Relax kit.  I use one screw to fix 3D sensor with XMC4700. OUT1,2 use for Crush Motor’s HighSide and OUT3, 4 use for  Crush Motor’s LowSide.   OUT9,10 use for Stir Motor’s HighSide and  OUT11,12 use for Stir Motor’s  LowSide.

image

On Front Panel, I installed LEDs, Start/Stop Switch and Knob control. There are  7 LEDs, one switch and Knob control as in the picture.

image

And at the back you will see the magnet at the end of the knob.

image

 

I used push button for start/stop switch.  First I use interrupt for switch checking. But found a lot of problems according to switch debounce.  I decided to change back to use normal switch checking in arduino loop. Motor and Servo connectors had been wired outside.  Here is the finished control box.

 

image

 

As I said before,  I found the program reset every time Servo is working.   I think it’s the program bug and try to debug it.  After spent one night, I found that because the power

supply is not enough to drive board and Servo.  When I changed supply for more ampere, the problem solved.  Please take this into consideration when you add more devices.

Two Motors use 12 V DC  and there are no problems with current from adapter.

Below is the Video show how the controller works in Auto Mode and individual control for each device.

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

Next  I will start to assembly the machine and will update it in the next blog.

  • Sign in to reply
  • DAB
    DAB over 5 years ago

    Nice update.

     

    Good build.

     

    DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • 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 © 2026 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