Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, an initiative of Stroud Water Research Center designed to help people advance knowledge and stewardship of fresh water.
New to EnviroDIY? Start here

LCD Display Mayfly

Home Forums Mayfly Data Logger LCD Display Mayfly

Tagged: 

Viewing 3 reply threads
  • Author
    Posts
    • #1970
      Arnoud
      Participant

        From the very nice tutorial (http://www.toptechboy.com/arduino/lesson-19-arduino-lcd-display/) I was able to understand how to display a reading on a LCD 16×2 using LiquidCristal library. It uses 5V as input. If I understand well, I can not use with Mayfly, as the maximum output voltage is 3.3V? From other posts on this forum, I saw they were using I2C LCD of adafruit (https://www.adafruit.com/product/931). Can this one be used directly with Mayfly?

      • #1973
        Shannon Hicks
        Moderator

          Most 16×2 LCD displays require 5v, but there are some that’ll work at 3.3v if you shop around. You could also use a 5v display with the Mayfly because you can use the 5v boost circuit to power it, but remember that you’ll have to do some logic-level shifting on the data pins. You could accomplish that by putting one of these inline between the Mayfly and the 5v display: https://www.sparkfun.com/products/12009

          But I really prefer to use one of these OLED displays: https://www.amazon.com/Grove-128×64-Board-Arduino-Raspberry/dp/B01D5GLDJ2

          It uses the same SSD1306 library as the Adafruit display you posted, but it’s got twice as many pixels since it’s 128×64 instead of 128×32, and it’s cheaper. And the big advantage is that it doesn’t require the separate RST pin like what’s on the Adafruit version, so instead of 5 pins (PWR, GND, SDA, SCL, and RST), it only requires 4 pins, so it has a standard Grove connector on the display board. All you have to do is connect the display directly to the I2C port on the Mayfly using a Grove cable (not included with the display when you buy it from SwitchDoc Labs on Amazon), load a sketch, and the Mayfly prints right on the display. I can post a sample sketch if you’d like.

        • #2003
          Luis Andres Guillen
          Participant

            Hi Shannon,
            I am interested in a sample sketch of how to write the info on the display.

          • #2004
            Shannon Hicks
            Moderator

              First you have to download the Arduino library for the SSD1306 by following the link on the Amazon listing to the manufacturer’s site which will then let you get to their own product listing: http://store.switchdoc.com/grove-128×64-i2c-oled-board-for-arduino-and-raspberry-pi/
              On that page there’s a link to their library on Github:
              https://github.com/switchdoclabs/SDL_Arduino_SSD1306
              Install that library and run the example sketch that comes with it. Simply connect the OLED display to the I2C port of the Mayfly and the demo text and graphics will be displayed on the screen.

          Viewing 3 reply threads
          • You must be logged in to reply to this topic.