Nutrients Indicator System
Title: Arduino-Based Nutrients Indicator System
❖INTRODUCTION:
- In Today’s World, Maintaining ABalanced Diet Is Crucial For Good Health.
Vitamins Play A Vital Role In Our Well-Being, Yet Many People Suffer
From Deficiencies Without Even Realizing It. What If There Was An Easy
Way To Detect Vitamin Levels At Home Or In A Small Clinic Using
Affordable Technology?
- With This Innovation, We Aim To Bridge The Gap Between Technology
And Healthcare, Making Nutritional Analysis More Accessible To Everyone.
Let’s Explore How This System Works And Its Potential Impact On
Everyday Health Monitoring.
❖Components:
• Arduino Uno:
- Arduino is an open-source electronics platform based on easy-to-use hardware and software. It's intended for anyone making interactive projects.
• HC-05 Bluetooth Module:
- The HC-05 is a popular and inexpensive Bluetooth module that allows wireless communication between devices. It's commonly used with microcontrollers like Arduino to add Bluetooth functionality to projects.
• Breadboard:
- A breadboard is a solderless prototyping platform used for building temporary circuits for testing or experimentation. It's characterized by its rows of interconnected holes (called "tie points") that allow you to easily connect electronic components without soldering.
• LEDs:
• Jumper Wires:
- Jumper wires are essential tools for anyone working with electronics, especially when prototyping circuits on a breadboard.
• Mobile/Laptop for input:
****About PictoBlox****
- PictoBlox is a user-friendly, block-based coding platform designed to make learning to code fun and engaging, especially for beginners. It's similar to Scratch but with some powerful enhancements.
This Project implemented in the PictoBlox.
❖Working Principle:
How It Works – Simple & Interactive!:
Imagine you’re curious about which foods contain carbohydrates. Instead of
searching through long lists or reading nutrition labels, you simply type
“Carbohydrates” on your laptop or mobile device. And just like magic—LEDs
light up next to foods like tur dal, yogurt, and butter, showing you exactly
where to find them!
Step-by-Step Breakdown:
1. Setting Up the System:
o We have 10 LEDs, each linked to a different food item like tur
dal, yogurt, and butter.
o Everything is connected using a breadboard and an Arduino
microcontroller.
o A Bluetooth module lets the system talk to your laptop or phone
wirelessly.
2. Typing Your Nutrient Query:
o You enter the name of a vitamin or nutrient (e.g.,
“Carbohydrates” or “Vitamin A”) into the laptop.
3. The Smart Processing Begins:
o The Arduino reads your input and checks its stored data to find
which foods contain that nutrient.
4. The Magic Happens – LED Lights Up!
o The system sends a signal to light up the LEDs next to the foods
that contain the nutrient you asked for.
o If you typed “Carbohydrates”, the LEDs near tur dal, yogurt, and
butter will glow.
5. Instant Feedback:
o You immediately know which foods are rich in the nutrient you
searched for—no complex charts or research needed!
Why This is Awesome?
✔Super Easy to Use – Just type a nutrient name, and the system does the rest!
✔Wireless & Smart – Uses Bluetooth, so no messy wires or complicated
setup.
✔Educational & Fun – Great for learning about nutrition in an interactive way.
✔Customizable – More foods and nutrients can be added in the future.
❖Algorithm:
• Start
• Initialize Serial Communication
❖ Initialize the serial communication for debugging (using Serial.begin()).
❖ Initialize the Bluetooth communication (using Dabble.begin()).
• Set LED Pins as OUTPUT
❖ Set pins 4 to 13 as OUTPUT to control the LEDs.
• Turn OFF All LEDs Initially
❖ Ensure that all LEDs are turned OFF at the start (using digitalWrite(pin,
LOW)).
• Loop Continuously:
❖ Check if Bluetooth data is available:
➢ Use Dabble.processInput() to check if any data has been received over
Bluetooth.
➢ If data is available, proceed to step 6.
❖ If data is received:
➢ Read the received character.
➢ Print the received character for debugging.
▪ This helps in troubleshooting and ensuring the input is correct.
➢ Turn OFF all LEDs to reset the system.
▪ Reset all LEDs by turning them OFF before activating the correct one
based on the input.
➢ Check the received character:
▪ If ‘A’, turn ON Vitamin A LED (Pin 4).
▪ If ‘B’, turn ON Vitamin B LED (Pin 5).
▪ If ‘C’, turn ON Vitamin C LED (Pin 6).
▪ If ‘D’, turn ON Vitamin D LED (Pin 7).
▪ If ‘E’, turn ON Vitamin E LED (Pin 8).
▪ If ‘K’, turn ON Vitamin K LED (Pin 9)
.
▪ Otherwise, print "Invalid Input!" if an unknown command is
received.
• Repeat the loop to check for new inputs continuously.
• End (System keeps running indefinitely).
❖Program:
#include <Dabble.h>
#include <Servo.h>
void setup() {
Dabble.begin(9600);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
pinMode(10, OUTPUT);
pinMode(11, OUTPUT);
pinMode(12, OUTPUT);
pinMode(13, OUTPUT);
}
void loop() {
//put your main code here, to run repeatedly:
Dabble.processInput();
if(Terminal.compareString("carb")) {
digitalWrite(4, true);
digitalWrite(5, false);
digitalWrite(6, false);
digitalWrite(7, false);
digitalWrite(8, false);
digitalWrite(9, false);
digitalWrite(10, false);
digitalWrite(11, false);
digitalWrite(12, true);
digitalWrite(13, false);
}
if(Terminal.compareString("lip")) {
digitalWrite(4, false);
digitalWrite(5, true);
digitalWrite(6, true);
digitalWrite(7, false);
digitalWrite(8, false);
digitalWrite(9, false);
digitalWrite(10, false);
digitalWrite(11, false);
digitalWrite(12, false);
digitalWrite(13, false);
}
if(Terminal.compareString("pro")) {
digitalWrite(4, false);
digitalWrite(5, false);
digitalWrite(6, false);
digitalWrite(7, true);
digitalWrite(8, true);
digitalWrite(9, false);
digitalWrite(10, false);
digitalWrite(11, false);
digitalWrite(12, false);
digitalWrite(13, false);
}
if(Terminal.compareString("vi")) {
digitalWrite(4, false);
digitalWrite(5, false);
digitalWrite(6, false);
digitalWrite(7, false);
digitalWrite(8, false);
digitalWrite(9, true);
digitalWrite(10, false);
digitalWrite(11, false);
digitalWrite(12, false);
digitalWrite(13, false);
}
if(Terminal.compareString("min")) {
digitalWrite(4, false);
digitalWrite(5, false);
digitalWrite(6, false);
digitalWrite(7, false);
digitalWrite(8, false);
digitalWrite(9, false);
digitalWrite(10, true);
digitalWrite(11, true);
digitalWrite(12, false);
digitalWrite(13, true);
}
}
❖Future Application of the project:
Future Applications:
1. Smart Nutrition Guide – Can be upgraded to include more food items
and nutrients for better dietary awareness.
2. Healthcare & Wellness – Could integrate with health devices to monitor
vitamin levels and suggest dietary improvements.
3. Educational Tool – Useful in schools and colleges for interactive
nutrition learning.
4. Smart Grocery Shopping – Future versions could scan barcodes or
labels to provide instant nutritional insights.
5. Food Industry & Quality Control – Can help verify the nutrient content
of food products and ensure compliance with health standards.
6. IoT-Enabled Smart Kitchen – Could be connected to smart assistants
(Alexa, Google Assistant) for real-time nutrition tracking while cooking.
❖References:
1. Arduino Official Documentation – Arduino Reference
2. Softwareserial Library Documentation – Arduino Softwareserial
3. Youtube Tutorials On Arduino & Bluetooth – Various Diy Guides
And Demonstrations.
4. Google &Chatgpt – Used For Troubleshooting, Debugging, And
Refining Code.
5. Diy Electronics Communities – Forums LikeInstructables, Hackster.Io,
And Arduino Project Hub.
Comments
Post a Comment