MQ3 Vending Machine
- About
- Getting Started
- Prerequisites
- Installation and Config
- Test
- Circuit
- Smartphone App
- Built Using
- Authors
This repo contains circuit, firmware and backend for MQ3 Vending Machine Project.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
What things you need to install the software and how to install them.
- Raspberry Pi Model 3B, 3B+, 4B or CM4
A step by step series that covers how to get the Firmware running.
- Download and install the latest Raspberry Pi OS Desktop image to your SD card
- Open the terminal and execute the following command
sudo raspi-config
- Then follow the following pictures to enable I2C bus on you raspberry pi
- Copy Firmware folder to the desktop of your Raspberry Pi, open the terminal of your Raspberry Pi and execute the following commands
sudo apt-get update
sudo apt-get upgrade
sudo apt install python3-pip
sudo pip3 install gas-detection
cd ~/Desktop/Firmware
sudo chmod a+rx starter.sh
- To run the program just double click on starter.sh file
- or execute
python3 /home/pi/Desktop/Firmware/Firmware.py
- The Firmware can be tested on Raspberry Pi 3B, 3B+ or 4B with the following modifications
- Connect the sensor as shown in the Circuit Diagram section below.
- RPi 3,4 GPIOs Pinout
- Any Raspberry Pi (https://www.amazon.com/CanaKit-Raspberry-Micro-Supply-Listed/dp/B01C6FFNY4/ref=sr_1_1?dchild=1&keywords=raspberry+pi+3&qid=1632029848&sr=8-1)
- MQ3 Sensor(https://www.amazon.com/ACROBOTIC-Alcohol-Breakout-Raspberry-Breathalyzer/dp/B07CSNGS87/ref=sr_1_5?dchild=1&keywords=mq3&qid=1632029867&sr=8-5)
- MCP3008
- Logic Level Converter(https://www.amazon.com/SparkFun-Logic-Level-Converter-Bi-Directional/dp/B01N30ZCW9/ref=sr_1_6?crid=2NOGIA43AG9OS&dchild=1&keywords=logic+level+converter&qid=1632029917&sprefix=logic+level%2Caps%2C463&sr=8-6)
- @Nauman3S - Development and Deployment