Can anyone make a perfect code for this ..
It has no fixed time … it should be control the motor rpm with the reduce rate of load cell.. with pid control ..
And all setup speed should be control by analog signal
I am using Arduino due
3 load cell
3 pwm motor with 3 relay on off
One belt motor with relay on off
There are a lot of unknowns, what is the material, what are the delivery tolerances, how fast does this operate, what is the environment. How do you control the flow of materials etc. Are you building the unit or having somebody else do it.
I'm not a code writer so I cannot help you. However I have a question regarding your request.
You don't have a complete description of the electronics to perform some tasks. For instance the load cell. Who would be responsible for the interface and troubleshooting? In my experience something like this will not work perfectly the first time. Even if the code is perfect. There is likely to be a need for a change in the code because of noise from the load cell (perhaps some averaging or input qualification).
I'm trying to help here..... What you ask is not possible.
It appears to me you need two efforts in development.
Someone to engineer the system, documenting the amount of material dispense per second or revolution etc. Determine how to read the load cell and filter out the variations in the weight signal result from the motors etc.
Someone to take the above information, reduce it to code, give it back the the 1) engineer for test. This loop will continue until satisfactory performance is obtained
Engineering is a profession where details matter. Processors can do some wonderful things but they cannot think. One must provide instructions for every small little task, in excruciating detail. If it is left out or incorrect, that operation will not get performed properly and the project will fail.
Get sensor value between 1 s and masure the weight loss per second..
the weight loss value is go to the set value..(like how a servo motor work) by incrise and dicrise the motor pwm value
Calculate the reduction in weight based on the previous reading.
Increase or decrease based on the difference in the delta weight/second and some goal constant.
Change the PWM based on the error in step 3.
OK so if I sit down to start writing code:
what sensor, what interface, how to setup the sensor (if required), how to tell if the sensor is giving a valid reading or is it just noise on the sensor.
This is the real world signals are not as stable as the datasheet would suggest. There will be a lot of noise (i.e. variations in load cell reading over time).
I stop writing code because I don't have enough information.
Now i am using
For test
Arduino uno
Sensor Hx711
3 Load cell with 2,3;4,5;7,6; pins
3 servo with pin 9,10,11
After successfull test
Board arduino due / arduino portenta h7
i will change the servo connection to the vfd-b for screw motor rpm
I try a code with one loadcell and one servo…
But the noise of weight reduce rate disturbing
When weight is reduing but the value is not stable it suddenly goes to 0 and then come gradually the real value
আমি এই পাঠ্যটি আমার মাতৃভাষা জার্মান ভাষায় লিখেছিলাম এবং গুগল-অনুবাদ করে এটি বাংলায় অনুবাদ করেছিলাম। আপনার প্রশ্নগুলি খুব সংক্ষিপ্ত। আপনি অনেক কম বিশদ এবং খুব অল্প তথ্য লিখেন। এজন্য আপনাকে সাহায্য করা যাবে না।
আপনার সমস্ত কিছু বিশদে বাংলায় বর্ণনা করতে হবে এবং তারপরে গুগল ট্রান্সলেট এটিকে ইংরেজী অনুবাদ করতে হবে।
আপনি যদি সমস্ত কিছু বিস্তারিতভাবে বর্ণনা করেন এবং ঠিকঠাক করেন তবে আপনাকে আরও ভালভাবে সহায়তা করা যেতে পারে।
Āpani yadi samasta kichu bistāritabhābē barṇanā karēna ēbaṁ ṭhikaṭhāka karēna tabē āpanākē āra'ō bhālabhābē sahāẏatā karā yētē pārē.
Śubhēcchāntē
sṭiphāna luḍabhiga
Hello Abdullha,
I wrote this text in German, my mother tongue, and had it translated into Bengali by Google-Translate. Your questions are very brief. You write far too few details and far too little information. That's why you can't be helped.
You should describe everything in detail in Bengali and then have googletranslate translate it into English.
If you describe everything in detail and exactly then you can be helped much better.