Table of Contents

Advertisement

OPEN-SMART
Name: Rich UNO R3 user manual
Version: v1.0
Date: 2017.06.12
©OPEN-SMART

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Rich UNO R3 and is the answer not in the manual?

Questions and answers

Summary of Contents for OPEN-SMART Rich UNO R3

  • Page 1 OPEN-SMART Name: Rich UNO R3 user manual Version: v1.0 Date: 2017.06.12 ©OPEN-SMART...
  • Page 2: Table Of Contents

    OPEN-SMART Email: 1 Description ........................- 5 - 2 Specification........................- 7 - 3 Interface ..........................- 8 - 4 Before wonderful projects ....................- 10 - 4.1 Get Arduino IDE ....................- 10 - 4.2 Install library ......................- 12 - 4.3 Get voice sources ....................
  • Page 3 OPEN-SMART Email: 13.2 Upload code for lesson 9 ..................- 47 - 13.3 Learn the functions ..................... - 51 - 14 Lesson 10: Clock display ....................- 53 - 14.1 Overview ......................- 53 - 14.2 Upload code for lesson 10 .................. - 53 - 14.3 Learn the functions .....................
  • Page 4 OPEN-SMART Email: 24.2 Upload code for lesson 20 .................. - 87 - 24.3 Learn the functions ..................... - 89 - 25 Lesson 21: Speak clock ....................- 91 - 25.1 Overview ......................- 91 - 25.2 Upload code for lesson 21 .................. - 91 - 25.3 Learn the functions .....................
  • Page 5: Description

    OPEN-SMART Email: 1 Description OPEN-SMART UNO R3 Board top view: OPEN-SMART UNO R3 Type-A Kit top view: - 5 -...
  • Page 6 OPEN-SMART Email: Overview Compatible with Arduino UNO R3, OPEN-SMART Rich UNO R3 is an ATMEGA328P development board with rich peripherals. Peripherals include 4 digit display, DS1307 clock, LM75 temperature sensor, infrared receiver, serial MP3 player, rotation angle sensor, 4-channel touch sensor.
  • Page 7: Specification

    OPEN-SMART Email: 2 Specification Item Typical Unit Power Supply(VCC) 5.25 DC Jack Power Current(@VCC=5V) Speaker Power Logic interface 5V TTL Micro SD card(<=2G); Supported Card Type Mirco SDHC card(<=32G) File system format Fat16 / Fat32 Dimensions 165x75x27 Net Weight...
  • Page 8: Interface

    OPEN-SMART Email: 3 Interface 1. USB Power & Download port: supply 5V power or connect to PC so that you can upload the sketch code to the board. 2. DC Jack Power Supply: you can use the battery case with DC Jack 5.5*2.5 head to supply power for the board, should be 7~12VDC.
  • Page 9 OPEN-SMART Email: sent by the IR transmitter module and demodulate it into logic level, and it can complete the infrared remote control with the codec program. 8. Reset Button: 9. 4-Channel Touch Sensor: capacitive touch switch, only when you touch the corresponding position with your fingers, the module corresponding pin (D3 / D4 / D5 / D6) will output high level, otherwise it outputs low.
  • Page 10: Before Wonderful Projects

    OPEN-SMART Email: 4 Before wonderful projects 4.1 Get Arduino IDE 1) If you do not get the Arduino IDE, please down it here. Please make sure you will put the IDE in the English path. 2) We recommend you to download Arduino 1.6.5, because our projects use this version.
  • Page 11 OPEN-SMART Email: 3) If you want to download the Arduino 1.8.3, you can click Windows ZIP file for non admin install then click JUST DOWNLOAD - 11 -...
  • Page 12: Install Library

    Why you need install library? Almost all the Rich UNO R3 board and Arduino peripheral module need corresponding library so that you can use them more easily and you do not have to write too much code to complete the project.
  • Page 13: Get Voice Sources

    OPEN-SMART Email: 4.3 Get voice sources We get the voices sources from here. You can input the word and setting something and it will output the voice you want. It is very good, easy and free. 1) We have get some voice we need in the 22 projects, and you can download from our google drive here.
  • Page 14: Install Driver For Ch340G

    OPEN-SMART Email: 4.4 Install driver for CH340G 1) If you are using win7 operating system, download the CH340G driver from here. If your system is MAC OS, download here. If yours is linux, download here. NOTE:Before plugging the USB cable to the PC, you should install the driver first.
  • Page 15 OPEN-SMART Email: (4) Close the window and plug the module to your PC with the USB cable and it will automatically install USB interface driver. (5) Then you can find its serial port number, mine is COM3, you should find yours and then you should select it in the Arduino IDE.
  • Page 16: Select Board And Serial Port

    Click arduino.exe in the directory of D:\arduino-1.6.5-r2 to start the Arduino IDE. Click Tools to select Arduino/Genuino Uno for our Rich UNO R3 2) Select serial port Get to know what serial port you find at the end of 4.4 Install driver for CH340G, and then Click Tools to select the port and mine is COM3, so I click COM3.
  • Page 17: Lesson 1: Touch And Sound

    OPEN-SMART Email: 5 Lesson 1: Touch and sound 5.1 Overview We select capacitive touch sensor instead of traditional buttons to reduce the pain of pressing the button and increase the service life. The buzzer has only two status such sound and silence.
  • Page 18 OPEN-SMART Email: 2) Check the Board and Serial Port 3) Click Upload button to upload the code to Rich UNO R3 board When you see that “Done uploading”, congratulations, you have upload the code to the board successfully. 4) Check whether the board is running as you want In this lesson, you only need to test the touch sensor and the buzzer.
  • Page 19: Explain Nouns

    OPEN-SMART Email: Touch TCH1 area with your finger, the buzzer continues to sound. Touch TCH2 area, the buzzer stops sounding. 5.3 Explain nouns Each lesson may explain some nouns in this section. Arduino IDE: Integrated development environment for Arduino series board, it contains all the files in arduino-1.6.5-r2 directory.
  • Page 20 OPEN-SMART Email: For example: Buzzer buzzer(9);//define a Buzzer object, and the buzzer connect to D9 of Rich UNO R3 board 4) Two necessary functions Each example code should inclue the two necessary functions: void setup(){ } void loop(){} Usually we write initialization code in setup function, and then write the code what you want the board to do in loop function which runs cyclically.
  • Page 21: Lesson 2: Display Number

    OPEN-SMART Email: 6 Lesson 2: Display number 6.1 Overview 4-digit 7-segment display with clock point can clearly display number in the sun so it is often use for watches / Clock / Induction Cooker. In this lesson, you can learn how to display numbers, which can be displayed in bits, or you can display integers directly.
  • Page 22 OPEN-SMART Email: 2) Check the Board and Serial Port 3) Click Upload button to upload the code to Rich UNO R3 board When you see that “Done uploading”, congratulations, you have upload the code to the board successfully. 4) Check whether the board is running as you want In this lesson, you can see it displays integer of 3456 / -100 / 25 cyclically.
  • Page 23: Learn The Functions

    OPEN-SMART Email: 6.3 Learn the functions 1) You can find that at the beginning of all lessons code is #include <Wire.h> #include <SoftwareSerial.h> Because the RichUNO library files use Wire.h and SoftwareSerial.h which is not in the RichUNO directory, if the example code wants to use RichUNO library, it should add those two line.
  • Page 24 OPEN-SMART Email: * disp.set(uint8_t brightness); // set the brightness, 0 ~ 7, the greater the value, the higher the //brightness, the next display takes effect * disp.point(0); // Turn off the display colon and the next display takes effect * disp.point(1);...
  • Page 25: Lesson 3: Touch And Display

    OPEN-SMART Email: 7 Lesson 3: Touch and display 7.1 Overview The board has 4 touch area, and you can distinguish which area you touch refer to the code. You can learn about the touch pad control method, digital increase, reduce, clear operation of the digital display.
  • Page 26 OPEN-SMART Email: 2) Check the Board and Serial Port 3) Click Upload button to upload the code to Rich UNO R3 board When you see that “Done uploading”, congratulations, you have upload the code to the board successfully. 4) Check whether the board is running as you want In this lesson, when you touch TCH1, the number increase.
  • Page 27: Learn The Functions

    OPEN-SMART Email: 7.3 Learn the functions 1) You can find that at the beginning of all lessons code is #include <Wire.h> #include <SoftwareSerial.h> Because the RichUNO library files use Wire.h and SoftwareSerial.h which is not in the RichUNO directory, if the example code wants to use RichUNO library, it should add those two line.
  • Page 28 OPEN-SMART Email: * disp.init(); // initialization You should write it in the setup function initialize it and it has set the default brightness to be 3(0~7, number larger, brightness higher). * disp.display(int Decimal); // display range: -999 ~ 9999 If your number is not in the range, it will ignore your operation.
  • Page 29: Lesson 4: Touch And Debounce

    OPEN-SMART Email: 8 Lesson 4: Touch and debounce 8.1 Overview Maybe you have found that when you touch TCH1 the number increases too fast in lesson 3 and the number is not that you want to display. So we can add debounce code to avoid this problem.
  • Page 30 OPEN-SMART Email: 2) Check the Board and Serial Port 3) Click Upload button to upload the code to Rich UNO R3 board When you see that “Done uploading”, congratulations, you have upload the code to the board successfully. 4) Check whether the board is running as you want In this lesson, you can touch TCH1, and the number is incremented step by step.
  • Page 31: Learn The Functions

    For example: TouchSensor touch(3,4,5,6);//define a touch sensor object, and display connect to D3 / D4 / D5 / D6 of Rich UNO R3 board 4) Two necessary functions Each example code should inclue the two necessary functions:...
  • Page 32 OPEN-SMART Email: default: touchNum = _pin;break; return touchNum; * disp.init(); // initialization You should write it in the setup function initialize it and it has set the default brightness to be 3(0~7, number larger, brightness higher). * disp.display(int Decimal); // display range: -999 ~ 9999 If your number is not in the range, it will ignore your operation.
  • Page 33: Lesson 5: Temperature And Display

    OPEN-SMART Email: 9 Lesson 5: Temperature and display 9.1 Overview Usually we need to know the temperature of many places, such as baby room, warehouse, greenhouse, incubator, fish tank. LM75A temperature sensor we used is a high-speed I2C interface temperature sensor and it can converted the temperature into a digital signal directly in the temperature range of -55 ℃...
  • Page 34 OPEN-SMART Email: 2) Check the Board and Serial Port 3) Click Upload button to upload the code to Rich UNO R3 board When you see that “Done uploading”, congratulations, you have upload the code to the board successfully. 4) Check whether the board is running as you want In this lesson, you can see it displays the temperature on the 4-digit tube, and the temperature unit is in degrees Celsius.
  • Page 35: Learn The Functions

    OPEN-SMART Email: 9.3 Learn the functions 1) You can find that at the beginning of all lessons code is #include <Wire.h> #include <SoftwareSerial.h> Because the RichUNO library files use Wire.h and SoftwareSerial.h which is not in the RichUNO directory, if the example code wants to use RichUNO library, it should add those two line.
  • Page 36: Lesson 6: Number Flashing

    OPEN-SMART Email: 10 Lesson 6: Number flashing 10.1 Overview 4-digit 7-segment display with clock point can clearly display number in the sun so it is often use for watches / Clock / Induction Cooker. In this lesson, learn how to use the internal timer method to make the displayed number flash.
  • Page 37 OPEN-SMART Email: 2) Check the Board and Serial Port 3) Click Upload button to upload the code to Rich UNO R3 board When you see that “Done uploading”, congratulations, you have upload the code to the board successfully. 4) Check whether the board is running as you want In this lesson, you can see it displays 2017 first, and when you touch TCH4, it is flashing, so you can change the number.
  • Page 38: Learn The Functions

    OPEN-SMART Email: 10.3 Learn the functions 1) You can find that at the beginning of all lessons code is #include <Wire.h> #include <SoftwareSerial.h> Because the RichUNO library files use Wire.h and SoftwareSerial.h which is not in the RichUNO directory, if the example code wants to use RichUNO library, it should add those two line.
  • Page 39 OPEN-SMART Email: int _pin; _pin = touch.get(); switch(_pin) case TOUCH_OUT1: touchNum = 1;break; case TOUCH_OUT2: touchNum = 2;break; case TOUCH_OUT3: touchNum = 3;break; case TOUCH_OUT4: touchNum = 4;break; default: touchNum = _pin;break; return touchNum; * disp.init(); // initialization You should write it in the setup function initialize it.
  • Page 40: Lesson 7: Knob Angle Display

    OPEN-SMART Email: 11 Lesson 7: Knob angle display 11.1 Overview The knob angle can tell you the angle between 0 with 280 degrees. It is usually used to control volume of speaker, voltage of power and speed of motors.
  • Page 41 OPEN-SMART Email: 2) Check the Board and Serial Port 3) Click Upload button to upload the code to Rich UNO R3 board When you see that “Done uploading”, congratulations, you have upload the code to the board successfully. 4) Check whether the board is running as you want In this lesson, you can see it displays the angle when you rotate the knob.
  • Page 42: Learn The Functions

    TM1637 disp(10,11);//define a TM1637 object, and display connect to D10 / D11 of Rich UNO R3 board Knob knob(A0);//define a Knob object, the signal of knob connect to A0 of Rich UNO R3 4) Two necessary functions Each example code should inclue the two necessary functions:...
  • Page 43: Lesson 8: Knob Control Brightness

    OPEN-SMART Email: 12 Lesson 8: Knob control brightness 12.1 Overview The knob angle can tell you the angle between 0 with 280 degrees. It is usually used to control brightness of display, volume of speaker, voltage of power and speed of motors.
  • Page 44 OPEN-SMART Email: 2) Check the Board and Serial Port 3) Click Upload button to upload the code to Rich UNO R3 board When you see that “Done uploading”, congratulations, you have upload the code to the board successfully. 4) Check whether the board is running as you want...
  • Page 45: Learn The Functions

    TM1637 disp(10,11);//define a TM1637 object, and display connect to D10 / D11 of Rich UNO R3 board Knob knob(A0);//define a Knob object, the signal of knob connect to A0 of Rich UNO R3 4) Two necessary functions Each example code should inclue the two necessary functions:...
  • Page 46 OPEN-SMART Email: * disp.point(0); // Turn off the display colon and the next display takes effect * disp.point(1); // Turn on the display colon and the next display takes effect - 46 -...
  • Page 47: Lesson 9: Clock Input

    OPEN-SMART Email: 13 Lesson 9: Clock input 13.1 Overview Note: Make sure you have plugged the CR1220 battery onto the battery holder. In the Rich UNO R3 Kit A, the battery comes with the kit. If you do not have one, please go to buy or get one.
  • Page 48 OPEN-SMART Email: 2) Check the Board and Serial Port 3) Click Upload button to upload the code to Rich UNO R3 board When you see that “Done uploading”, congratulations, you have upload the code to the board successfully. - 48 -...
  • Page 49 OPEN-SMART Email: 4) Check whether the board is running as you want Firstly, click the serial monitor button in the upper right corner, then you can see the serial monitor window. Secondly, you can see the board displays 2017. Now you should know that...
  • Page 50 OPEN-SMART Email: Then touch TCH4 again to set month, you can touch TCH1 to increase the number and TCH2 to decrease and if you have set it ok, please touch TCH3 to confirm and the serial monitor will tell you what you have just set.
  • Page 51 For example: TM1637 disp(10,11);//define a TM1637 object, and display connect to D10 / D11 of Rich UNO R3 DS1307 clock;//define a object of DS1307 class, it connects to I2C port of Rich UNO R3...
  • Page 52 OPEN-SMART Email: * Timer1.stop(); // Timer 1 stops timing * Timer1.start(); // Timer 1 start * touch.get(); // return is the touch area corresponding Arduino pin number, if not then return -1 If you touch TCH1, it will return 3. TCH2 is 4, TCH3 is 5, and TCH4 is 6.
  • Page 53: Upload Code For Lesson 9

    OPEN-SMART Email: 14 Lesson 10: Clock display 14.1 Overview All of us are very concerned about the time to wake you up, time You can use 4-digit tube to display the clock and of course you can use our 2.2 inch TFT shield...
  • Page 54 OPEN-SMART Email: 2) Check the Board and Serial Port 3) Click Upload button to upload the code to Rich UNO R3 board When you see that “Done uploading”, congratulations, you have upload the code to the board successfully. 4) Check whether the board is running as you want In this lesson, you can see it displays the time and the clock point is flashing every second.
  • Page 55 OPEN-SMART Email: 14.3 Learn the functions 1) You can find that at the beginning of all lessons code is #include <Wire.h> #include <SoftwareSerial.h> Because the RichUNO library files use Wire.h and SoftwareSerial.h which is not in the RichUNO directory, if the example code wants to use RichUNO library, it should add those two line.
  • Page 56: Upload Code For Lesson 10

    OPEN-SMART Email: 15 Lesson 11: Test infrared remote keys 15.1 Overview Almost all the remote control fans, air conditioners, televisions use infrared remote control. Infrared reception angle is small, not susceptible to interference. In this lesson, you can learn how to get keys code of the buttons on the IR remote and display on the serial monitor of Arduino IDE.
  • Page 57 OPEN-SMART Email: 2) Check the Board and Serial Port 3) Click Upload button to upload the code to Rich UNO R3 board When you see that “Done uploading”, congratulations, you have upload the code to the board successfully. - 57 -...
  • Page 58 OPEN-SMART Email: 4) Check whether the board is running as you want Firstly, click the serial monitor button in the upper right corner, then you can see the serial monitor window. In this lesson, you can refer to the IR remote key code.jpg from here. You can see that when press the button on the IR remote, the serial monitor will output the user code of the remote and key code of the button.
  • Page 59 For example: IRrecv IR(2);//define an IR receiver object to get the key code, the receiver pin connect to D2 of Rich UNO R3 4) Two necessary functions Each example code should inclue the two necessary functions:...
  • Page 60: Upload Code For Lesson 11

    OPEN-SMART Email: 16 Lesson 12: Infrared remote control and display 16.1 Overview Almost all the remote control fans, air conditioners, televisions use infrared remote control. Infrared reception angle is small, not susceptible to interference. In this lesson, how to recoginze the key on the IR remote control and display the number on the display.
  • Page 61 OPEN-SMART Email: 2) Check the Board and Serial Port 3) Click Upload button to upload the code to Rich UNO R3 board When you see that “Done uploading”, congratulations, you have upload the code to the board successfully. 4) Check whether the board is running as you want In this lesson, only number 0~9 and “+”...
  • Page 62: Learn The Functions

    TM1637 disp(10,11);//define a TM1637 object, and display connect to D10 / D11 of Rich UNO R3 board Buzzer buzzer(9);//define Buzzer object, it connects to D9 of Rich UNO R3 4) Two necessary functions Each example code should inclue the two necessary functions:...
  • Page 63: Lesson 13: Play A Song

    OPEN-SMART Email: 17 Lesson 13: Play a song 17.1 Overview NOTE!!! First of all you should download the voice resources from our google drive: https://drive.google.com/drive/folders/0B6uNNXJ2z4CxaXFpakMxR0p1Unc?usp=sharing Then unzip it and find the 01 and 02 folder and put them into your TF card (should not larger than 32GB).
  • Page 64 OPEN-SMART Email: 2) Check the Board and Serial Port 3) Click Upload button to upload the code to Rich UNO R3 board When you see that “Done uploading”, congratulations, you have upload the code to the board successfully. 4) Check whether the board is running as you want In this lesson, you can see it play the first song in the TF card.
  • Page 65: Learn The Functions

    We have defined the class in the RichUNO library, and at any time you should define a object before you use it, and some object has parameter. For example: MP3 mp3(7, 8);//define the MP3 object and connect to D7/D8 of Rich UNO R3 4) Two necessary functions Each example code should inclue the two necessary functions:...
  • Page 66: Lesson 14: Play Song With Its File Name

    OPEN-SMART Email: 18 Lesson 14: Play song with its file name 18.1 Overview NOTE!!! First of all you should download the voice resources from our google drive: https://drive.google.com/drive/folders/0B6uNNXJ2z4CxaXFpakMxR0p1Unc?usp=sharing Then unzip it and find the 01 and 02 folder and put them into your TF card (should not larger than 32GB).
  • Page 67 OPEN-SMART Email: 2) Check the Board and Serial Port 3) Click Upload button to upload the code to Rich UNO R3 board When you see that “Done uploading”, congratulations, you have upload the code to the board successfully. 4) Check whether the board is running as you want In this lesson, you can hear that it plays the song with the folder name an d file name you set.
  • Page 68: Learn The Functions

    We have defined the class in the RichUNO library, and at any time you should define a object before you use it, and some object has parameter. For example: MP3 mp3(7, 8);//define the MP3 object and connect to D7/D8 of Rich UNO R3 4) Two necessary functions Each example code should inclue the two necessary functions:...
  • Page 69: Lesson 15: Knob Control Volume

    OPEN-SMART Email: 19 Lesson 15: Knob control volume 19.1 Overview NOTE!!! First of all you should download the voice resources from our google drive: https://drive.google.com/drive/folders/0B6uNNXJ2z4CxaXFpakMxR0p1Unc?usp=sharing Then unzip it and find the 01 and 02 folder and put them into your TF card (should not larger than 32GB).
  • Page 70 OPEN-SMART Email: 2) Check the Board and Serial Port 3) Click Upload button to upload the code to Rich UNO R3 board When you see that “Done uploading”, congratulations, you have upload the code to the board successfully. 4) Check whether the board is running as you want In this lesson, you can hear that it plays the song with the folder name an d file name you set.
  • Page 71: Learn The Functions

    For example: Knob knob(A0); MP3 mp3(7, 8);//define the MP3 object and connect to D7/D8 of Rich UNO R3 4) Two necessary functions Each example code should inclue the two necessary functions:...
  • Page 72: Lesson 16: Touch Control Mp3

    OPEN-SMART Email: 20 Lesson 16: Touch control MP3 20.1 Overview NOTE!!! First of all you should download the voice resources from our google drive: https://drive.google.com/drive/folders/0B6uNNXJ2z4CxaXFpakMxR0p1Unc?usp=sharing Then unzip it and find the 01 and 02 folder and put them into your TF card (should not larger than 32GB).
  • Page 73 OPEN-SMART Email: 2) Check the Board and Serial Port 3) Click Upload button to upload the code to Rich UNO R3 board When you see that “Done uploading”, congratulations, you have upload the code to the board successfully. 4) Check whether the board is running as you want In this lesson, you can see it plays a song “Yesterday once more”.
  • Page 74: Learn The Functions

    We have defined the display class in the RichUNO library, and at any time you should define a object before you use it, and some object has parameter. For example: MP3 mp3(7, 8);//define the MP3 object and connect to D7/D8 of Rich UNO R3 4) Two necessary functions Each example code should inclue the two necessary functions:...
  • Page 75 OPEN-SMART Email: * mp3.play();//if the song is set pause, this function can make to back to play. * mp3.pause();//if the song is playing, this function can set it to pause. * mp3.nextSong();//only can play next song in the same folder For example: if the playing song is in folder 01, nextSong() function only can play the next song in 01 folder, and if there is only one song in it, this operation will play the same song again.
  • Page 76: Lesson 17: Ir Control Mp3

    OPEN-SMART Email: 21 Lesson 17: IR control MP3 21.1 Overview NOTE!!! First of all you should download the voice resources from our google drive: https://drive.google.com/drive/folders/0B6uNNXJ2z4CxaXFpakMxR0p1Unc?usp=sharing Then unzip it and find the 01 and 02 folder and put them into your TF card (should not larger than 32GB).
  • Page 77 OPEN-SMART Email: 2) Check the Board and Serial Port 3) Click Upload button to upload the code to Rich UNO R3 board When you see that “Done uploading”, congratulations, you have upload the code to the board successfully. 4) Check whether the board is running as you want In this lesson, you can press 1 to play the first song in the TF card and press 2 to play second song.
  • Page 78: Learn The Functions

    We have defined the display class in the RichUNO library, and at any time you should define a object before you use it, and some object has parameter. For example: MP3 mp3(7, 8);//define the MP3 object and connect to D7/D8 of Rich UNO R3 4) Two necessary functions Each example code should inclue the two necessary functions:...
  • Page 79 OPEN-SMART Email: * IR.enableIRIn(); // Start the receiver * IR.decode();//if no result, it return 0, otherwise it return 1; . * IR.resume(); // so that it can receive the next value * IR.isReleased();//if the button is not released yet, it return 1; otherwise it return 0;...
  • Page 80: Lesson 18: Speak Voice

    OPEN-SMART Email: 22 Lesson 18: Speak voice 22.1 Overview NOTE!!! First of all you should download the voice resources from our google drive: https://drive.google.com/drive/folders/0B6uNNXJ2z4CxaXFpakMxR0p1Unc?usp=sharing Then unzip it and find the 01 and 02 folder and put them into your TF card (should not larger than 32GB).
  • Page 81 OPEN-SMART Email: 2) Check the Board and Serial Port 3) Click Upload button to upload the code to Rich UNO R3 board When you see that “Done uploading”, congratulations, you have upload the code to the board successfully. 4) Check whether the board is running as you want In this lesson, firstly you can touch TCH3 to speak the first voice and it displays 1.
  • Page 82: Learn The Functions

    We have defined the display class in the RichUNO library, and at any time you should define a object before you use it, and some object has parameter. For example: MP3 mp3(7, 8);//define the MP3 object and connect to D7/D8 of Rich UNO R3 4) Two necessary functions Each example code should inclue the two necessary functions:...
  • Page 83 OPEN-SMART Email: * mp3.setVolume(int8_t vol);//vol is 0~0x1e, 30 adjustable level * mp3.playWithFileName(int8_t directory, int8_t file);//play a song according to the folder name and prefix of its file name //directory (folder name) must be 01 02 03...09 10...99 //prefix of file name must be 001...009 010...099 * disp.init();...
  • Page 84: Lesson 19: Speak Pi

    OPEN-SMART Email: 23 Lesson 19: Speak pi 23.1 Overview NOTE!!! First of all you should download the voice resources from our google drive: https://drive.google.com/drive/folders/0B6uNNXJ2z4CxaXFpakMxR0p1Unc?usp=sharing Then unzip it and find the 01 and 02 folder and put them into your TF card (should not larger than 32GB).
  • Page 85 OPEN-SMART Email: 2) Check the Board and Serial Port 3) Click Upload button to upload the code to Rich UNO R3 board When you see that “Done uploading”, congratulations, you have upload the code to the board successfully. 4) Check whether the board is running as you want In this lesson, you can hear that it speaks 9 digit of pi.
  • Page 86: Learn The Functions

    We have defined the display class in the RichUNO library, and at any time you should define a object before you use it, and some object has parameter. For example: MP3 mp3(7, 8);//define the MP3 object and connect to D7/D8 of Rich UNO R3 4) Two necessary functions Each example code should inclue the two necessary functions:...
  • Page 87: Lesson 20: Speak Temperature

    OPEN-SMART Email: 24 Lesson 20: Speak temperature 24.1 Overview NOTE!!! First of all you should download the voice resources from our google drive: https://drive.google.com/drive/folders/0B6uNNXJ2z4CxaXFpakMxR0p1Unc?usp=sharing Then unzip it and find the 01 and 02 folder and put them into your TF card (should not larger than 32GB).
  • Page 88 When you see that “Done uploading”, congratulations, you have upload the code to the board successfully. 4) Check whether the board is running as you want In this lesson, you can touch TCH1 so that OPEN-SMART will tell you the temperature. - 88 -...
  • Page 89 We have defined the display class in the RichUNO library, and at any time you should define a object before you use it, and some object has parameter. For example: MP3 mp3(7, 8);//define the MP3 object and connect to D7/D8 of Rich UNO R3 4) Two necessary functions Each example code should inclue the two necessary functions:...
  • Page 90 OPEN-SMART Email: * temper.getTemperature(); / / get the temperature value, the return of the float is the decimal, unit is in degrees Celsius. For example: float celsius; celsius = temper.getTemperatue();//get temperature * disp.init(); // initialization You should write it in the setup function initialize it and it has set the default brightness to be 3(0~7, number larger, brightness higher).
  • Page 91: Upload Code For Lesson 20

    OPEN-SMART Email: 25 Lesson 21: Speak clock 25.1 Overview NOTE!!! First of all you should download the voice resources from our google drive: https://drive.google.com/drive/folders/0B6uNNXJ2z4CxaXFpakMxR0p1Unc?usp=sharing Then unzip it and find the 01 and 02 folder and put them into your TF card (should not larger than 32GB).
  • Page 92 OPEN-SMART Email: 2) Check the Board and Serial Port 3) Click Upload button to upload the code to Rich UNO R3 board When you see that “Done uploading”, congratulations, you have upload the code to the board successfully. 4) Check whether the board is running as you want In this lesson, you can see it displays the time and the clock point is flashing every second.
  • Page 93 OPEN-SMART Email: 25.3 Learn the functions 1) You can find that at the beginning of all lessons code is #include <Wire.h> #include <SoftwareSerial.h> Because the RichUNO library files use Wire.h and SoftwareSerial.h which is not in the RichUNO directory, if the example code wants to use RichUNO library, it should add those two line.
  • Page 94 OPEN-SMART Email: #define STATUS_FORWARD 3 #define STATUS_REWIND 4 NOTE: If it is playing, it will return 1, you should wait until it return 0, then you can play next voice. * clock.begin(); // The clock is on and the function must be called first * clock.getTime(void);...
  • Page 95: Upload Code For Lesson 21

    OPEN-SMART Email: 26 Lesson 22: Speak time and temperature 26.1 Overview NOTE!!! First of all you should download the voice resources from our google drive: https://drive.google.com/drive/folders/0B6uNNXJ2z4CxaXFpakMxR0p1Unc?usp=sharing Then unzip it and find the 01 and 02 folder and put them into your TF card (should not larger than 32GB).
  • Page 96 OPEN-SMART Email: 2) Check the Board and Serial Port 3) Click Upload button to upload the code to Rich UNO R3 board When you see that “Done uploading”, congratulations, you have upload the code to the board successfully. 4) Check whether the board is running as you want In this lesson, you can touch TCH1 to hear temperature and touch TCH2 to hear the time.
  • Page 97: Learn The Functions

    OPEN-SMART Email: 26.3 Learn the functions 1) You can find that at the beginning of all lessons code is #include <Wire.h> #include <SoftwareSerial.h> Because the RichUNO library files use Wire.h and SoftwareSerial.h which is not in the RichUNO directory, if the example code wants to use RichUNO library, it should add those two line.
  • Page 98 OPEN-SMART Email: * mp3.setVolume(int8_t vol);//vol is 0~0x1e, 30 adjustable level * mp3.playWithFileName(int8_t directory, int8_t file);//play a song according to the folder name and prefix of its file name //directory (folder name) must be 01 02 03...09 10...99 //prefix of file name must be 001...009 010...099 mp3.getStatus();//it will return the status of the mp3 player...
  • Page 99: Part List

    OPEN-SMART Email: 27 Part List Documents download link: https://drive.google.com/drive/folders/0B6uNNXJ2z4CxaXFpakMxR0p1Unc?usp=sharing OPEN-SMART Official Store: https://open-smart.aliexpress.com/store/1199788 Technical Support: catalex_inc@163.com - 99 -...

Table of Contents

Save PDF