Writing code for Arduino
It is necessary to develop software for a weight dispenser based on Arduino Uno.
Components:
- Arduino Uno R3
- HX711 + load cell
- LCD1602 I2C display
- MAX7219 LED matrix 8x32
- 5 control buttons
- 4-channel relay
- 2 signal lamps
- Coarse dosing vibrator
- Precise dosing vibrator
Operation logic:
- When the "Start" button is pressed:
- the white signal lamp turns on;
- coarse dosing starts (coarse dosing vibrator).
- When the weight reaches the set transition threshold:
- coarse dosing is turned off;
- precise dosing is turned on.
- After reaching the specified weight:
- dosing stops;
- the white lamp turns off;
- the green lamp lights up.
Menu functionality:
- calibration of the load cell;
- tare weight;
- setting the dosing weight;
- adjusting the percentage/threshold for transitioning to precise dosing;
- saving settings in EEPROM.
Buttons:
- Start
- Tare
- Menu
- Up arrow
- Down arrow
Additionally:
- the current weight should be displayed simultaneously on the LCD1602 and duplicated on the MAX7219;
- it is desirable to implement stable weight filtering without strong flickering of readings;
-
Hello.
We are ready to develop software for a weight dispenser based on Arduino Uno R3 with the specified components.
Our team has previously worked on similar tasks and has developed code for working with a load cell via the HX711 module. We have existing solutions that can be adapted to your specific assembly, wiring diagram, and dosing logic requirements.
Within the project, we can implement:
* coarse and precise dosing via relay;
… * control of white and green signal lamps;
* operation with HX711 and load cell;
* simultaneous display of current weight on LCD1602 I2C and MAX7219 8x32;
* control menu;
* calibration of the load cell;
* tare;
* setting target dosing weight;
* configuring the percentage or threshold for switching from coarse to precise dosing;
* saving parameters in EEPROM;
* filtering weight readings to reduce flicker;
* processing buttons Start, Tare, Menu, Up, Down;
* correct completion of dosing after reaching the specified weight.
We can also provide protection against button bounce, software stabilization of weight readings, indication of the current operating mode, and a convenient code structure for further modifications.
To get started, we will need your pinout: connection of the relay, buttons, HX711, LCD display, and MAX7219. After that, we will adapt the code specifically for your scheme and prepare a solution for your order.
We are ready to discuss the details and start the work.
-
236 Hello! The technical specification is written as clearly and technically accurately as possible. I have excellent experience in software development for microcontrollers based on Arduino (C/C++) and am ready to implement the firmware for your weight dispenser.
How I will implement your project:
Stable weight without flickering: For the HX711 ADC, I will implement a moving average algorithm or a median filter. The readings on the LCD1602 and MAX7219 matrix will be stable, without jumps or flickering digits.
Reliable dosing logic: I will build the code architecture based on a finite state machine (FSM) and asynchronous timers using millis(). No delay() — the system will respond instantly to button presses and weight changes, eliminating errors when switching solenoids via relays.
Functional menu and EEPROM: I will implement convenient navigation with 5 buttons for calibration, tare, and threshold settings. All modified parameters will be reliably stored in non-volatile memory using EEPROM.put().
-
177 Good day! I have experience working with Arduino, HX711, load cells, displays, and dosing automation. I can develop software for your weight dosing machine with full implementation of the operational logic, settings menu, and stable weight processing.
What I can implement:
• coarse and precise dosing via relay
• operation of signal lamps
• settings menu via buttons
• calibration and tare
• saving parameters in EEPROM
• displaying weight on LCD1602 and MAX7219
… • filtering HX711 readings without flickering
• protection against false triggers and unstable data
The code will be structured and convenient for further editing. I can also assist with connection and testing.
-
282 1 0 I am interested in your project) I have extensive experience working with this ADC and with load cells in general. I can provide an example of a turnkey commercial project that has been implemented and is already operating in the market in Ukraine and neighboring countries. I have my own solutions for clear and, most importantly, stable operation of this ADC.
-
166 1 0 Good evening, I have experience working with Arduino and its code, I am ready to complete this project in the shortest time possible. From my own projects, I can highlight a large-scale automated greenhouse. I will start writing right now.
-
222 Good day, I have experience in writing code for microcontrollers based on Arduino. I have previously worked with the components you are using in this project.
I have a rough idea of how the code structure should look, but of course, I would like to discuss the details with you in private messages.
-
2018 13 2 Good time,
I have a question: do the vibromagnets turn on with relays or do we need to form a signal?
This affects the price.
Currently, the conditional rate is 1000 UAH/day.
-
961 11 0 Good day!
I am ready to develop software for a weight dispenser based on Arduino Uno (HX711, LCD1602 I2C, MAX7219, relay, control buttons).
I will implement full functionality:
- two-stage dosing (coarse → precise);
- automatic switching between modes based on a set threshold;
- control of vibrators and signal lamps via relay;
- display of current weight on LCD1602 and duplication on MAX7219 8x32;
- stable weight filtering without flickering readings;
- control menu with 5 buttons (Start, Tare, Menu, ↑, ↓);
… - calibration of the HX711 load cell;
- tare weight;
- setting the target dosing weight;
- adjusting the percentage transition to precise dosing;
- saving all parameters in EEPROM;
- non-blocking operation logic (without delay), stable real-time operation.
The architecture will be built on a finite state machine (FSM) for reliable control of all dosing modes.
Clarifications before starting:
- Maximum load of the load cell (1kg / 5kg / 20kg / other)?
- Is a full calibration of the HX711 from scratch required?
- Button logic: are short presses sufficient or are long/hold presses needed?
- Are additional messages needed on MAX7219 (besides weight)?
- The threshold for transitioning to precise dosing — fixed (%) or variable in the menu?
- Is the relay logic active HIGH or LOW?
-
391 1 0 I will do it taking into account all your wishes. I often program microcontrollers for my own needs.
-
608 9 0 Hello!
I have experience in developing similar systems on Arduino, specifically working with HX711 (load cells), controlling relays, and building logic for automatic dosing/weight control. I have also implemented interfaces with LCD displays (including I2C) and LED matrices using MAX7219.
I have worked on projects with control menus (buttons, navigation, parameter settings), data storage in EEPROM, and implementing stable signal filtering to eliminate "jumpy" weight readings.
I can implement the logic you described: coarse/fine dosing modes, threshold switching, state indication (lamps, displays), as well as settings through the menu.
If needed, I can send examples of previous work or code snippets for you to evaluate my approach and level of implementation.
…
If necessary, I am ready to discuss details and deadlines.
-
I can take on the development of firmware for Arduino Uno for your weight dosing machine.
Estimate - 24,000 UAH, deadline - 10 working days. The price includes the dosing state logic, menu, calibration, tare, EEPROM, output to LCD1602 and MAX7219, filtering of HX711 readings, and basic protection against flickering readings.
> I see the implementation as a controlled state machine - start, coarse dosing, precise dosing, completion, tare, menu.
> I would separately outline the settings for weight, transition threshold, calibration coefficient, and stabilization of readings.
> After the first assembly, real measurements on your sensor are needed, as HX711 and the load cell are very dependent on mechanics, power supply, and vibrations.
Look, there’s a nuance - without testing on your doser, logic can be written, but the accuracy of stopping by weight is better proven on a physical stand. To start, I need the connection diagram, type of relay, voltage of lamps and vibrators, as well as the desired weight change step in the menu.
…
Questions:
> Should the set weight be one or do we need to store several recipes?
> After the green light, should the system wait for a new Start press or automatically reset after removing the tare?
Examples of similar systems where stable business logic and process automation are important:
> https://business.ingello.com/forma-bpm - process automation and state management
> https://business.ingello.com/platforma - complex internal systems with roles and operational logic
Our profile on system development - https://systems-fl.ingello.com/ua
Overall, it’s a reasonable task, but it needs to be done carefully - measure seven times, switch the relay once =)
-
196 we have a practically ready foundation for such a dispenser, it can be quickly adapted to your set of modules and brought to a working sketch ))
The timeline is approximately 6-8 working days, budget - 16,000 UAH, if the connection scheme is already defined.
I will implement the dosing logic through states - waiting, coarse dosing, precise dosing, completion, menu, calibration, and emergency limits.
I will separately include filtering for HX711, so that the readings do not flicker unnecessarily, and so that the relay does not click on every minor weight fluctuation.
What I will need from you - the pin connection scheme, the desired format of readings on LCD1602 and MAX7219, as well as the reference weight for calibration.
…
I would like to clarify 2 points:
- what is the weight range and the required dosing accuracy
- should the threshold for switching to precise dosing be set in percentage of the total or in grams
Examples of similar logic works:
- https://business.ingello.com/forma-bpm - process automation with stages, rules, and control states
- https://business.ingello.com/iks - complex accounting and operation management systems
- https://systems-fl.ingello.com/ua - a brief about us and our approach to automation
We can keep it simple - first, we create a stable working sketch, then if needed, we add serial monitoring or event logging. It seems this is the healthiest way for Arduino Uno =)
In touch, we can discuss the details right here on the marketplace.
-
Доброго дня. Тензодатчик на яку вагу і які значення ви хочете виміряти? Реле мають недоліки- заливання контактів, краще транзистори. Що вони комутують?( пускають, двигуни, контакти). Потрібно тільки код?
-
Доброго дня. Цікавий у Вас проект.
Але хотів би уточнити деякі моменти:
- Чи вкладаємось в кількість можливих виводів на Arduino? Можливо в подальшому будуть модифікації чи ускладення по апаратній частині і забракне можливостей Arduino Uno.
- Чи обовʼязково використовувати два вібромагніти? Можна піти шляхом здешевлення (при необхідності і доцільності). Для прикладу використати ШІМ/PWM. Так ми будемо регулювати потужність магніту і при наближенні до цільової ваги Arduino знижує інтенсивність вібрації. Чи є критичність швидкість фасування?
-
Current freelance projects in the category C & C++
MTA:SA 1.6 client assembly from source code
56 USD
Need an MTA:SA developer. I need help assembling a clean MTA:SA 1.6 mtasa-blue source on Windows. What needs to be done: 1. Set up the build environment: Visual Studio, Git, DirectX SDK, CEF, DLL, and other dependencies. 2. Build a clean mtasa-blue client/server. 3. Ensure… C & C++ ∙ 10 hours 42 minutes back ∙ 6 proposals |
Development of software for managing iPhone via USB cable from PC
223 USD
A program needs to be developed for Windows that allows connecting a jailbroken iPhone via USB cable and controlling it from a computer. Main functionality: Connecting the iPhone via USB. The program should quickly recognize the connected iPhone and operate through the cable… C & C++, Python ∙ 1 day 7 hours back ∙ 17 proposals |