EIGHT SOFT EIGHT SOFT
  • Home
  • News
  • About Us
  • Contacts
Micro Programming
  • November 5, 2020
  • admin
  • 1 Comment
  • Technology

Micro Programming

Node Micro Controller Programming

We are talking about Micro Programming to detect alcohol. now let’s connect an MQ-3 Alcohol Sensor module to the NMCU board, and write programs to detect if a device needs to be activated. Here’s the way to put one together to be used with a light-weight bulb and an alarm buzzer.no. A program like this works on devices that are used to find out if someone has consumed alcohol.

Connecting devices for micro programming

You will need a NODMCU board, a breadboard, a jumper wire and an MQ3 alcohol sensor module use in Micro Programming. now as well as two red and other, coloured LED bulbs and a buzzer, and three resistors of 220 ohms.

  • First, the four pins on the MQ3 sensor module must be connected horizontally on the dashboard. Now connect a jumper wire to its AO and connect it to the AO pin on the NODMCU board.
  • Then connect another jumper wire to the VCC pin and connect it to the 3V pin on the NMCU board.
  • After connecting a jumper wire to the GND pin and connect the other end to a row of single or serial holes marked with a negative mark near the outer edge of the braiding board. Then connect a jumper wire to another hole in the same series of holes and connect the other end to the GND pin on the NODMCU board.
Micro Programming circuit board
  • Then connect the two LED bulbs to the braiding board. In this case, the braiding board should be placed horizontally and the negative ends of the two bulbs should be connected to the same side. At that point interface one finish of the resistor to the negative terminals and associate the opposite finish of the resistor to a column of openings in the line set apart with a negative imprint close to the external edge of the board.
  • In Micro Programming, Once the bulbs are connected, the positive terminals should be connected as well. This should be done as if each bulb had a separate output from the NMCU board for the positive terminal. First, the positive terminal of the red bulb should be connected to the GPIO16 pin on the NOMCU board with the help of a jumper cable. Then the positive terminal of the other coloured bulb should be connected to a pin such as GPIO5.
  • also, Next, the buzzer must be connected to the dashboard. Interface one finish of the resistor to the negative terminal. now along these lines, the opposite finish of the resistor to a progression of sequential openings set apart with a negative blemish on the board.
  • Then connect a jumper wire to the positive terminal of the buzzer and connect the opposite end to a pin-like GPIO4.
  • Micro Programming circuit

Program preparation

After, configuring the Micro Programming circuit in this way, the NMCU board should be connected to the computer via the USB port. Then open the Arduino program on your computer, go through File –> New and open a new project window. Now the following code should be typed there. The parts shown in blue here should be written as single lines.

After writing the code, click on the upload button in the project window and upload the code to the NMCU board. The program will then be activated.

Now when a cloth soaked in an alcohol-based sanitizer solution or eau de cologne is brought near the module. then the output obtained through the AO pin is received as an input to the NODMCU board. According to the output received through this, the red bulb lights up and therefore the buzzer sounds. In the absence of such alcohol vapour, the other coloured bulb is lit.

Explaining programs

It works according to the rules used in Micro Programming languages. You need to have an understanding of this code to modify the code shown here or to rewrite the code as you wish.

  • In the first two lines, two variables named RedLed and GreenLed are set to 16 and 5, respectively. The variable is used to identify the PIN numbers associated with the LED bulb. Inline 3, a variable named Buzzer is set up and the value 4 is added to it. It is used to identify the PIN number associated with the buzzer. Inline 4 here we have set up a variable called Apin and entered the AO number of the pin that gets the analogue input. It is used to detect the input of the MQ3 sensor.
  • Line 6 starts the main code section called Void setup. This is the primary part of the program to be executed. The variable outputs are RedLed, GreenLed, and Buzzer. Also, the Apin variable is named as an input pin.
Micro Programming Resister
  • The Void Loop code starts with line 11 in this code. It is the part of the code that runs until power is supplied to the microcontroller. Line 13 below shows the input value received by the sensor to the variable.
  • Line 14 checks if the value in the value variable is greater than 785. (If this is a 785 value, the value of the sensor must be adjusted to suit the functionality.) Then, online 16, RedLed, HIGH, directs the HIGH signal to the LED bulb connected to the pin named RedLed. That red bulb lights up through it. The other bulb is switched off inline 17 and the buzzer is sounded inline 18.
  • The else part inline 20 is activated when the condition of the if inline 14 is invalid. Then the red LED bulb inline 22 is turned off. The green bulb inline 23 is turned off and the buzzer inline 24 is turned off.

Search in Google | Blue Screen Error

Tags:
Micro ProgrammingNode Micro Controller Programming
Prev PostMicrosoft Excel Free Download 2013/2016
Next PostFace Recognition Program
Related Posts
  • Genius Technology News
    Take a look at This Genius Technology News Plan April 8, 2021
  • Technology News The Google Technique
    Technology News: The Google Technique March 7, 2021
  • Technology New Its Easy If You Do It Smart
    Technology News? It’s Easy If You Do It Smart March 6, 2021
One Comment
  1. Pingback: Face Recognition Program | Computer comfort on the face

Leave a Comment Cancel Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • ny2HGCG
  • Take a look at This Genius Technology News Plan
  • Technology News: The Google Technique
  • Technology News? It’s Easy If You Do It Smart
  • Free News Technology Business Coaching Servies

Categories

  • Campaign
  • Development
  • Technology
  • Uncategorized

Our Services

  • Web Development
  • Software Development
  • Mobile app Development
  • Digital Campaigns
  • Unlock iCloud Activation
  • Social Media Campaigns

Support Pages

  • About Us
  • Terms and Conditions
  • Disclaimer
  • Privacy Policy
  • Cookies Policy
  • Contacts
Copyright © 2020 EightSoft Solution | All Rights Reserved.
WE'RE PROMOTING PRIVACY
Cookies are small files that are stored on your browser. We use cookies and similar technologies to ensure our website works properly, personalize your browsing experience, analyze how you use our website, and deliver relevant ads to you. For these reasons, we may share your site usage data with our social media, advertising, and analytics partners. You can choose whether or not you want to consent to our use of cookies through the options below. Read More
You can learn more about how we use cookies by visiting our privacy policy page.Privacy policy
California residents can also exercise their personal information rights through the Do Not Sell My Personal Information page.
ACCEPT REJECT Cookie settings
Accept Privacy Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT