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.
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.
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...
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...
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:...
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 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.
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...
Need help?
Do you have a question about the Grove and is the answer not in the manual?
Questions and answers