Hello,
I am an engineering student completing a project for a senior-level strength of materials class. The project uses a servo-360, load cell, and Arduino MEGA 2560 to dispense pet food/treats into a bowl. I would like to have the servo spin and dispense x amount of food until a certain weight (in grams) is reached in a bowl on a load cell. In other words, say there is a bowl with 250 grams of pet food on the load cell. When the bowl weight goes below a certain threshold, i.e. 100 grams, the servo will activate and dispense for x amount of time/revolutions.
I have 3D printed and assembled a mechanism that will allow me to do this, and all of the individual components are wired and working. The load cell is calibrated and reading properly, and the servo is working. They are currently working separately using different codes. I would like to combine the codes so that my desired functionality can be obtained. I can post the codes that I am using below. My servo is connected to pin D9 of the Arduino MEGA.
Is anyone able to assist me with the creation of this code? Any guidance/help would be greatly appreciated. Thanks, and happy holidays!
Cheers.
I am an engineering student completing a project for a senior-level strength of materials class. The project uses a servo-360, load cell, and Arduino MEGA 2560 to dispense pet food/treats into a bowl. I would like to have the servo spin and dispense x amount of food until a certain weight (in grams) is reached in a bowl on a load cell. In other words, say there is a bowl with 250 grams of pet food on the load cell. When the bowl weight goes below a certain threshold, i.e. 100 grams, the servo will activate and dispense for x amount of time/revolutions.
I have 3D printed and assembled a mechanism that will allow me to do this, and all of the individual components are wired and working. The load cell is calibrated and reading properly, and the servo is working. They are currently working separately using different codes. I would like to combine the codes so that my desired functionality can be obtained. I can post the codes that I am using below. My servo is connected to pin D9 of the Arduino MEGA.
Is anyone able to assist me with the creation of this code? Any guidance/help would be greatly appreciated. Thanks, and happy holidays!
Cheers.