SALES INQUIRIES: 1 (888) 767-9864

Arduino Sugar Fill Machine :: Student Project

They say that a spoonful of sugar makes the medicine go down. But what’s even better than a spoonful of sugar?

A spoonful of sugar that fills up automatically! That’s what Henry made with his Arduino project that makes pouring and measuring sugar easy and automatic.

Because what’s better than a spoonful of sugar that pours itself!?

Read on to find out more about how this sweet project came to be!

Arduino, LCD Display, Buttons

 

Henry, tell us more about why the heck you built a ‘’Sugar Fill Machine?”

In the Philippines, all of the small retail stores manually pack their sugar in measurements of 250 grams, 500 grams, and 1,000 grams. This inspired me to create a product that semi-automated this current manual process.

How interesting! So how does your project even work?

I set up four buttons to push: a start/stop button, one button to disperse the 250 grams of sugar, one for the 500 grams, and one for the 1,000 grams.

You can choose how much sugar you would like to disperse by pressing the button for the weight you would like.

When you press the 250 gram, 500 gram, or 1,000 gram button, and LED light will light up. When you press the start button, the servo motor moves to open the hopper gate and the DC motor starts to run in order to move the sugar out from the hopper for weighing the sugar in the load cell.

Once the desired amount is poured out, the servo motor moves to close the hopper gate and the DC motor stops. To do another round of weighing, you can just choose a weight and press the start button. To end the process during the fill process, you can just press the stop button.

That’s amazing! So, what was your biggest struggle as you worked through this project?

I started with no background in electronics or Arduino coding. Every step was a challenge. However, the course modules offered by Programming Electronics Academy are very well organized.

I had this project in mind since the moment I started the course, and the modules helped me get through this project.

How inspiring! Well, did the project end up as you expected?

The code for the project did end up as I expected. The most apprehensive part of putting the program together was putting up the hopper since I was not initially sure how the sugar would flow.

Well, you did it! Looking back on this project, what can you say you have learned about programming and/or electronics through the creation process?

I learned about how to integrate push buttons, LEDs, servo motors, and DC motors. I also learned how to code using IF statements, which helped me integrate the load cells as well.

Learning about all of this allowed me to learn more about debounce circuits and apply that knowledge.

On the topic, was the training at programming electronics academy able to help you build your skill?

Absolutely! The course modules were well organized and are presented in a very comprehensive manner. The programming electronics academy helped me achieve my goal of completing this project, even though I had no background at all in electronics!

Can you show us some of your Arduino code?

 

What type of Arduino board, Arduino clone, or Arduino compatible board does your project use?

Arduino Uno

What components did you use in your project?

Resistor, LED, H-Bridge, Servo Motor, DC Motor, LCD Display, and a Button

How do you power your project?

I used a PC Power Supply

About Henry:

Henry is a certified public accountant from the Philippines. While Henry had experience programming smaller commands in Microsoft Excel, such as IF statements, he had no other prior background in electronics!

3 Comments

  1. Avatar Jim on April 25, 2019 at 9:56 pm

    Henry, GREAT project. I love how you used the interrupt function as part of your sketch. I have just this week been watching the modules on that and think that I can use it in my project.

    Did you think about using the switch/case control for sketch? If you chose not to use it, why?

    How much do you think that the “A Prototyping Process” module help you in your endeavors?

    All in all, great job! Salamat.

    Jim

  2. Avatar henry sugue on April 30, 2019 at 9:42 pm

    Hi Jim,

    Thank you for your feedback. In the first place, I was inclined to use the switch/case. The only idea I can think of to apply the switch/case in this project is to use a potentiometer to select the value on my pre-defined weight (250grms; 500 grms; 1000grms and 2000 grms.) but I find more convenient for the actual user to use a push button thus, I changed my thought to apply the If statements. The prototyping process helps a lot. It serves as my guide on how to organize things and my thought.

    Right now I have the printed circuit board just waiting delivery on the 3d printed hopper/canister to test run this project. Looking forward to submitting a video to see this project in action.

    Regards,

    Henry

Leave a Comment