Arduino Load Cell with a Servomotor

Hi I'm fairly new to the Arduino stuff and I wanted help with a project I'm doing for college.
It's an automatic feeder and the issue I'm encountering is putting everything together.
See I have an arduino ESP32 connected to a Servo that works just fine, but I wanna add a Load Cell so that it measures the weight of a "bowl" and whenever the weight is lower than 500 grams it would activate the Servo.

I have a code thanks to Chatgpt but I'm unable to test it out because I can't seem to find a way put all the components together, so if anyone could help me with this I would appreciate it infinitely

Here is a picture of my current setup and the load cell unconnected next to it.
Also a diagram of my arduino ESP32 with the red circles showing the pins used by the Servo at the time


Welcome to the forum

Can your AI "friend" not help you ?

Then Chatgpt should be able to tell you how to wire the hardware to work with the code that it wrote.

Servos cannot be powered by an Arduino. They need external power supplies.

I suggest that you use some of the example code that comes with the HX711 library to learn how to use the HX711 and the load cell. Forget Chatgpt. It writes code,but cannot debug it own code.

Well pretty sure you now know how well Chatgpt is viewed around here. Especially for college level work and projects.

That aside you have a weight sensor and when a hopper goes below a preset weight you want to use a servo motor to add material to the hopper. Normally you start with a nice clean blank sheet of paper and a pencil having a large eraser. List your objectives including the process start and stop.

OK weight goes below 500 grams you want to fill the hopper. How much feed? Take it to 600 grams, maybe 700 grams? You have a a lower limit but what is the upper limit? That needs to be in your code. While I haven't a clue why you chose a servo motor verse a stepper motor driving an auger it's your project.

I also agree as to that chatgpt. Since you are using their code may as well let it wire it for you and if it works well maybe chatgpt then if it all works well maybe chatgpt will get an A+ for the project.

Ron

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.