Giter Club home page Giter Club logo

mq3vendingmachine's Introduction

Project logo

MQ3 Vending Machine

Status


MQ3 Vending Machine

๐Ÿ“ Table of Contents

๐Ÿง About

This repo contains circuit, firmware and backend for MQ3 Vending Machine Project.

๐Ÿ Getting Started

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.

Prerequisites

What things you need to install the software and how to install them.

- Raspberry Pi Model 3B, 3B+, 4B or CM4

Installation and Configuration

A step by step series that covers how to get the Firmware running.

Raspberry Pi Firmware Pre-Reqs

  1. Download and install the latest Raspberry Pi OS Desktop image to your SD card
  2. Open the terminal and execute the following command sudo raspi-config
  3. Then follow the following pictures to enable I2C bus on you raspberry pi
  • R1

  • R2

  • R3

  • R4

  • R5

  • Then do the same for Serial(UART)

  • R2

Configuring Raspberry Pi and Running the UI

  1. 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
  1. To run the program just double click on starter.sh file
  2. or execute python3 /home/pi/Desktop/Firmware/Firmware.py

โ›๏ธ Testing

  1. The Firmware can be tested on Raspberry Pi 3B, 3B+ or 4B with the following modifications
  2. Connect the sensor as shown in the Circuit Diagram section below.

๐Ÿ”Œ Circuit Diagram

  • RPi 3,4 GPIOs Pinout

GPIOsRPi

Circuit

GPIOsRPiCkt

Components Used

  1. 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)
  2. 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)
  3. MCP3008
  4. 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)

โ›๏ธ Built Using

  • Python3 - Raspberry Pi FW
  • Flutter - Cross-Platform Smartphone App Development Framework

โœ๏ธ Authors

mq3vendingmachine's People

Contributors

nauman3s avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.