Skip to content

Piero24/kcal-SCALE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maintenance

Contributor Covenant


Project Status: Working ✅
Percentage Completely: 100% 🔋

A scale that, in addition to displaying the weight, also calculates the number of kilocalories of the product it has on dish across an internal table, for then display them on a 4-line by 20-character display.

The Index for this project is available here
Explore the Index »

View DemoReport BugRequest Feature








📔 Itroduction 📔

The balance allows you to weigh the calories of an entire recipe by adding the weights of the calories of each individual ingredient.
The project was carried out with the following components:



You can find other recommended components, cheaper versions and for your region here »

ATTENTION: The size of the product table is such as to make it prohibitive to use with Arduino Uno. This project can only be replicated if you have a higher power board, such as the arduino mega 2560, which has 256k of memory instead of the 32k of the Arduino uno.

Currently the supported ingredients are as follows:





🛠 Built in 🛠

If you replicate this project with different components the required libraries may be different. For example, using a different numeric keypad with fewer keys may require not only different libraries but also a change to some parts of the code.

Below and in the appropriate section there are links to the libraries used. In the code, however, you will find the version used at the time of the upload, which may be different from the current one.

To carry out this project I used 3 libraries:


Obviously the language used is that of Arduino (C/C++)


🧰 Prerequisites 🧰

  1. All the harware components you can find it here
  2. Download the latest version of Arduino IDE
  3. Download the latest version of these package:




⚙️ How to Start ⚙️

There are no major difficulties in the realization of this project since the code for its operation is already written.
First of all we have to connect all the components to the arduino as indicated in the diagram below.

You can change the connections to some ports if you like. The important thing in this case is to make the necessary changes also within the code.








💻 Structure of the Project 💻

Now that everything is connected we simply have to import the code into Arduino.

  • Import the 3 previously downloaded folders into the libraries folder (keypad, lcd, scale)
  • Let's open the scale_kcal.ino file in the Arduino IDE
  • Connect the board to the pc/mac
  • In the tool section select the type of board you have, the processor and the pc port to which it is connected

  • Let's upload the file to the board


DONE !!!



Now we can disconnect the board from the pc and use the battery to power it.
This is a quick explanation of the main commands instead.

User manual:

  • numeric keys: selection of food category and food
  • non-numeric keys:
    • "*" = confirm deletion
    • "#" = cancel the delete request
    • "A" = clear, clears the last selection and asks for the food category again for the product on the plate
    • "B" = adds the ingredient on the plate to the recipe
    • "C" = elimination of the last added ingredient from the recipe
    • "D" = cleans the system and prepares it for a new recipe






🛫 Roadmap 🛬

  • Upload code
  • Add Ingredients
  • Add Ingredients 2
  • Add Ingredients 3

See the open issues for a full list of proposed features (and known issues).



📮 Responsible Disclosure 📮

We assume no responsibility for an improper use of this code and everything related to it.
We do not assume any responsibility for damage caused to people and/or objects in the use of the code.
By using this code even in a small part, the developers are declined from any responsibility.

It is possible to have more information by viewing the following links: Code of conductLicense



📜 Code of conduct 📜

As members, collaborators and leaders we are committed to performance participation in our community a harassment-free experience for all, regardless of age, size, visible or invisible disability, ethnicity, sexual characteristics, gender identity and expression, level of experience, education, socioeconomic status, nationality, appearance, race, caste, color, religion or identity and sexual orientation.
We are committed to acting and interacting in ways that help create an open community, welcoming, diverse, inclusive and healthy.

The complete version of the code of conduct can be viewed at the following link: Code of Conduct »



🐛 Bug and Feature 🐛

To report a bug or to request the implementation of new features, it is strongly recommended to use the ISSUES tool from Github »

Here you may already find the answer to the problem you have encountered, in case it has already happened to other people. Otherwise you can report the bugs found.

ATTENTION : To speed up the resolution of problems, it is recommended to answer all the questions present in the request phase in an exhaustive manner.

(Even in the phase of requests for the implementation of new functions, we ask you to better specify the reasons for the request and what final result you want to obtain).



🔧 Maintenance 🔧

There are currently no parts of the code under maintenance. You can quickly check the status of the project at the top of the page.

This section details which parts of the code are under maintenance and for what reason.

📟 Changelog 📟

Here you can find all the information regarding the fixes and implementations that took place in the various program reviews.
Explore the changelog docs





🔍 License 🔍

The licensing section is divided into:

The General License indicates the base license chosen for the code.
While Authors and Copyright indicates who are the authors and who owns the copyright of the code.


🖋 General License 🖋

GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007

Copyright (C) 2007 Free Software Foundation, Inc. . Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for software and other kinds of works.
License Documentation »

👨🏽‍💻: Pietrobon Andrea
🌐: pietrobonandrea.com
: @PietrobonAndrea
🗄: kcal-SCALE

My name is Pietrobon Andrea, a computer engineering student at the University of Padua (🇮🇹).

My passion turns towards AI and ML. I have learned and worked in different sectors that have allowed me to gain skills in different fields, such as IT and industrial design. To find out more, visit my website »

The license of this repo as indicated in the general license section is the GNU General Public License v3.0
For more details visit the licensing page »

The Copyright (C) of this project is held exclusively by my person.


📌 Third Party Licenses 📌

In the event that the software uses third-party components for its operation, the individual licenses are indicated in the following section.

Software list:
Software License owner License type Link Note
Keypad Mark Stanley, Alexander Brevig GNU GP v3.0 - Arduino Library
LCD I2C fmalpartida link github
Scale bodge MIT scale



A special thanks also goes to Giocarduino from whom I took the table of ingredients and from whom I took inspiration for the project.
Go and see his Youtube channel for further information and guides on the world of Arduino.

This is a list of the components suggested for the realization of the project.

List of components:
🇺🇸 US 🇺🇸 🇬🇧 UK 🇬🇧 🇫🇷 FR 🇫🇷 🇮🇹 IT 🇮🇹 🇩🇪 DE 🇩🇪 🇪🇸 ES 🇪🇸 Note
Arduino Mega 2560 - - Arduino Mega 2560 Arduino Mega 2560 - (Raccomanded)
Arduino Mega REV3 Arduino Mega REV3 Arduino Mega REV3 Arduino Mega REV3 - Arduino Mega REV3
ELEGOO Mega R3 SUNFOUNDER Mega ELEGOO Mega R3 ELEGOO Mega R3 ELEGOO Mega R3 (Black) ELEGOO Mega R3
Weight sensor Weight sensor Weight sensor Weight sensor Weight sensor Weight sensor (Raccomanded)
Weight sensor Weight sensor Weight sensor Weight sensor Weight sensor Weight sensor
Keypad Keypad Keypad Keypad Keypad Keypad
2004 20x4 LCD 2004 20x4 LCD 2004 20x4 LCD 2004 20x4 LCD 2004 20x4 LCD 2004 20x4 LCD
Cable Cable Cable Cable Cable Cable


*As an amazon affiliate, I may receive a commission from the links indicated



Copyrright (C) by Pietrobon Andrea
Released date: May-16-2022