Code assembled for Sugar1Cup (Graduation Project - Electronic Engineering)
demonstration video (korean)
presentation video (korean)
android app file (java)
save data for json in app & visualization to graphs (pie / bar)
save personal data (user input) to calculate kilocalories & recommended sugar
hardware code (arduino / c / cpp)
uploaded to ATTiny1614 Microcontroller (with jtag2updi by ElTangas + megaTinyCore by SpenceKonde )
saves sensor output (RGB data + IR data + GyroSensor data) in binary buffer and send it by bluetooth connection (HC-06)
matlab code (.m)
it is generated for plotting binary RGB data to 3-axis scatter graph
(used for data qualification & visualizing for presentation)
this file is the main file used for this project (PC Server)
it watches certain folder for whether new file is generated (sent by android app) or not
if new file detected, binkeras_load or binkeras function called
this file is called when new file's name is <beverage_name_here>.bin (ex: coke.bin)
train all the data inside the folder (except temp.bin)
if there's coke_1.bin and coke_2.bin, those data is both trained as label 'coke' (for multiple data in each beverage label)
and save keras model data + weight in the folder (for further usage!)
this file is called when new file's name is temp.bin
it classifies the beverage name by binary data in temp.bin (sensor output obtained by hardware, RGB + IR)
saved model data + weight is loaded
py files for test (prototype - not for actual usage)