Showing posts with label oled. Show all posts
Showing posts with label oled. Show all posts

Monday, August 01, 2016

Breath analyzer with OLED and MQ3 gas sensor


Hi, guy today we are going to make a breath analyzer which detects alcohol vapour. so, first you need to show how does the sensor work so, the sensor work with a chemical reaction with what it will tell you the readings. so, lets begin!!




Step 1: What You Need?

1 x USB Type-B Cable 
1 x OLED or LCD
1 x MQ-3 Gas Sensor 
Optional
Cable Cover
Arduino Compatible UNO Ultimate Starter Kit / Learning Kit
USB To Power Jack Cable



Don't have components? Don't worry. Just click the component's name. 



Step 2: Make A Shield For Arduino



1.The OLED ---VCC wire will go to 3.3v of the Arduino. GND will go to GND. SCL to A5. SDA to A4.

2.The MQ-3 gas sensor --- VCC to 5v. Gnd to Gnd. AD to A0.




Step 3: Upload The Code 

  
When you upload the code if it say warning up so then wait 15 mins if it give the reading it is working well. if check the code or your connections.

Arduino UNO R3 easy gas sensor LCD MQ-3 MQ-3 Gas sensor oled project

Tuesday, July 26, 2016

OLED I2C analogPin dynamic plotting


Cool project to begin with OLED 128x64 work, done with a twisted logic to fix the refresh flashing screen.





Step 1: What You Need?



1 x Arduino Breadboard 5V 3.3V Power Supply Module (for OLED)



Don't have components? Don't worry. Just click the component's name. 


Step 2: Build Your Circuit.



Step 3: Download The Library & Upload The Code.



You need to download the libraries needed in the code below and uncomment one #define thing at the <Adafruit_SSD1306.h>

We comment the 128x32 define line and uncomment the 128x64 define line because our screen has 128x64 pixels of definition

Your library should end like that



Short scheme of how are the pixels maped in our screen:

The origin of coordinates is for some silly reason located on the top left of the screen and our function display.drawFastVLine cant draw negative heights so we are going to play with the cursor point along with the databar height



Step 4: Test Your Circuit.


Arduino UNO R3 easy oled project

Sunday, July 17, 2016

Arduino and OLED based Cellular Automata


This project tutorial uses an I2C 128×64 OLED to display a tiny cellular automata powered by Arduino Nano.

Step 1: What You Need?


Don't have components? Don't worry. Just click the component's name. 


Step 2: Build Your Circuit.




So hook up the Arduino and OLED LCD to the breadboard and start wiring.

  Arduino —– OLED

  • 3.3v — VCC (pay attention to your OLED voltage requirements)
  • GND — GND
  • A4 —SDA
  • A5 — SCL

Then I attached both breadboards back to back and created a small TV.

Step 3: Upload Code To Board.


In order to facilitate (and make it possible) to play with the OLED display, we will be using 2 libraries from Adafruit. If you don’t know how to add libraries please visit https://www.arduino.cc/en/Guide/Libraries
Adafruit GFX library which will be used to handle all graphics and text displayed on the OLED https://github.com/adafruit/Adafruit-GFX-Library
Adafruit SSD1306 library which basically is the driver for our OLED. This library works only with OLED SSD1306 128×32 and 128×64 https://github.com/adafruit/Adafruit_SSD1306

On line 51 with code,
display.begin(SSD1306_SWITCHCAPVCC, 0x3C); //initialize with the I2C addr 0x3C (128x64)

the address, which is the 0x3C might be different. I searched for the most obvious and tried a few before getting it to work.

Step 4: Test Your Circuit.

Arduino Arduino Nano Arduino UNO R3 oled project

 

  • Copyright © Arduino Tutorial ™ is a registered trademark.
    Designed by Templateism. Hosted on Blogger Templates.