IDEA: I am making a device for anosmia patient to detect milk spoilage, fruit spoilage,…
- User
IDEA: I am making a device for anosmia patient to detect milk spoilage, fruit spoilage, vegetable spoilage, bread spoilage… So, i buy some components for that which are Raspberry pi 3 model B, Arduino Uno R3, Gas sensors: MQ135, MQ7, MQ9, MQ3, DHT-11. I use arduino for data collection and raspberry pi will use at a very last stage of the project like deployment purpose only When patient places the device on to the milk so the device should be capable to detect that the new input belongs to milk or fruit or veg or bread and also eihter it is fresh or spoil. Approach: I want to train on single NN model. The description of dataset is that The description of dataset is i have some input features and there are 2 output columns named as [food_type, state]. food_type has 4 classes (milk, fruit, veg, bread) and ‘state’ mean spoilage or fresh …so let suppose if any sample belongs to milk and it is spoil so the output columns should represent like this : [milk, 1]. or if sample belongs to vegetable and it is fresh then output column should represent like this: [veg, 0].
Calibration before Collecting Dataset: So in order to collect dataset… first i need to calibrate my sensors…for calibration i first focused on mq135 and mq7…so i find an arduino code in which a person already done calibration with his sensors … so actually there are 3 files, one is main file named as (MAIN.ino) and second file is named as (MQUnifiedsensor.cpp) and thord file is named as (MQUnifiedsensor.h).
So i need help to understand these file, i will share you the codes written in all these files in next prompt…
- Assistant
Sure, it sounds like you're working on an interesting project! Gas sensors like the MQ series can be quite complex to use effectively, but with the right calibration and data interpretation, they can be powerful tools for detecting various gases that might indicate spoilage. The Arduino Uno will act as an interface between the sensors and the Raspberry Pi, which will manage the higher-level data processing and decision-making.