Seeed Grove Manual

Seeed Grove Manual

4-digit display
Hide thumbs Also See for Grove:

Advertisement

Quick Links

Grove - 4-Digit Display
Release date:
Version:
Wiki:
http://www.seeedstudio.com/wiki/Grove_-_4-Digit_Display
Bazaar:
http://www.seeedstudio.com/depot/Grove-4Digit-Display-p-1198.html
9/20/2015
1.0
1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Grove and is the answer not in the manual?

Questions and answers

Summary of Contents for Seeed Grove

  • Page 1 Grove - 4-Digit Display Release date: 9/20/2015 Version: Wiki: http://www.seeedstudio.com/wiki/Grove_-_4-Digit_Display Bazaar: http://www.seeedstudio.com/depot/Grove-4Digit-Display-p-1198.html...
  • Page 2 Document Revision History Revision Date Author Description Sep 21, 2015 Victor.He Create file...
  • Page 3: Table Of Contents

    Contents Document Revision History · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · 2 1.
  • Page 4 Under the supervision of Seeed Technology Inc., this manual has been compiled and published which covered the latest product description and specification. The content of this manual is subject to change without notice.
  • Page 5: Introduction

    1. Introduction Grove - 4-Digit Display module is a 12-pin module. In this module, we utilise a TM1637 to scale down the number of controlling pins to 2. That is to say, it controls both the content and the luminance via only 2 digital pins of Arduino or Seeeduino.
  • Page 6: Features

    2. Features  4 digit red alpha-numeric display  Grove compatible interface (3.3V/5V)  8 adjustable luminance levels...
  • Page 7: Application Ideas

    3. Application ideas  Time display  Stopwatch  Sensors’ input display...
  • Page 8: Specifications

    4. Specifications Item Typical Unit Voltage Current Dimensions 42x24x14 Net Weight 7±1...
  • Page 9: Interface Functions

    5. Interface functions Grove interface - Can be connected to digital port on Grove - Base Shield. 4 - Digit display - Common anode digital tube. Pin definition: CLK DIO VCC GND...
  • Page 10: Usage

    6. Usage With TI LaunchPad Displaying the Numbers (4-Digital-Display) This example demonstrates how to display some digital numbers using a Grove-4-Digital Display. * TM1637.cpp * A library for the 4 digit display #include "TM1637.h" #define CLK 39 //pins definitions for TM1637 and can be changed to other...
  • Page 11: With Arduino

    Grove - Base Shield with a Grove cable. You can change to the digital port as you like. But don't forget to change the port number in the definition of the demo code at the same time. Plug onto Arduino/Seeeduino or plug Grove - Mega Shield onto Arduino Mega.
  • Page 12 Arduino Mega and Grove - 4-digit display: 、 Connect Arduino/Seeeduino to PC via a USB cable. Download the 4-Digit Display library and TimerOne library. Unzip and put them in the libraries file of Arduino IDE by the path: ..\arduino-1.0\libraries. Restart the Arduino IDE, open one demo code you like, for example ClockDisplay directly by the...
  • Page 13 Upload the demo code and the clock will be ticking in a few seconds. Please click here if you do not know how to upload. You can see this:...
  • Page 14: With Raspberry Pi

    You should have got a raspberry pi and a grovepi or grovepi+. You should have completed configuring the development environment, otherwise follow here. Connection. Plug the sensor to grovepi socket D5 by using a grove cable. Navigate to the demos' directory:...
  • Page 15 time.sleep(.5) # 4 Digit Display methods # grovepi.fourDigit_init(pin) # grovepi.fourDigit_number(pin,value,leading_zero) # grovepi.fourDigit_brightness(pin,brightness) # grovepi.fourDigit_digit(pin,segment,value) # grovepi.fourDigit_segment(pin,segment,leds) # grovepi.fourDigit_score(pin,left,right) # grovepi.fourDigit_monitor(pin,analog,duration) # grovepi.fourDigit_on(pin) # grovepi.fourDigit_off(pin) while True: try: print "Test 1) Initialise" grovepi.fourDigit_init(display) time.sleep(.5) print "Test 2) Set brightness" i in range(0,8): grovepi.fourDigit_brightness(display,i) time.sleep(.2)
  • Page 16 grovepi.fourDigit_number(display,56,leading_zero) time.sleep(.5) grovepi.fourDigit_number(display,567,leading_zero) time.sleep(.5) grovepi.fourDigit_number(display,5678,leading_zero) time.sleep(.5) print "Test 5) Set individual digit" grovepi.fourDigit_digit(display,0,2) grovepi.fourDigit_digit(display,1,6) grovepi.fourDigit_digit(display,2,9) grovepi.fourDigit_digit(display,3,15) time.sleep(.5) print "Test 6) Set individual segment" grovepi.fourDigit_segment(display,0,118) grovepi.fourDigit_segment(display,1,121) grovepi.fourDigit_segment(display,2,118) grovepi.fourDigit_segment(display,3,121) time.sleep(.5) grovepi.fourDigit_segment(display,0,57) grovepi.fourDigit_segment(display,1,63) grovepi.fourDigit_segment(display,2,63) grovepi.fourDigit_segment(display,3,56) time.sleep(.5) print "Test 7) Set score" grovepi.fourDigit_score(display,0,0) time.sleep(.2) grovepi.fourDigit_score(display,1,0) time.sleep(.2) grovepi.fourDigit_score(display,1,1)
  • Page 17 grovepi.fourDigit_score(display,12,59) time.sleep(.5) print "Test 9) Monitor analog pin" seconds grovepi.fourDigit_monitor(display,sensor,seconds) time.sleep(.5) print "Test 10) Switch all on" grovepi.fourDigit_on(display) time.sleep(.5) print "Test 11) Switch all off" grovepi.fourDigit_off(display) time.sleep(.5) except KeyboardInterrupt: grovepi.fourDigit_off(display) break except IOError: print "Error" 5. Run the demo. sudo python grove_4_digit_display.py This demo may not work if your grovepi dosen't have the newest firmware, update the firmware.
  • Page 18: Resources

    7. Resources Grove - 4-Digit Display V1.0 eagle files Schematic in PDF 4-Digit Display library TimerOne library Four-Digit Display Suli Library TM1637 datasheet...
  • Page 19: Related Projects

    As long as you start sharing your works with others, you are being part of the open source community and you are making your contributions. Now share your awesome projects with us on Recipe, and win a chance to become the Core User of Seeed. ...
  • Page 20 And in most cases when our Core Users have some good ideas of making things, we'll offer hardware pieces, PCBA services as well as technical support. Besides, further commercial cooperation with the Core Users is highly possible. Get more information about Core User, please email to: recipe@seeed.cc...
  • Page 21: Support

    9. Support If you have questions or other better design ideas, you can go to our forum wish to discuss.
  • Page 22 Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: Seeed Studio 104030003...

This manual is also suitable for:

104030003

Table of Contents