Home
SUN7 Shield User Manual v1.0
Contents
1. 7 Shield Rev B er B G ss FS eee fe Rome zone lt me qTqT RST SU GNDGND NZ DC Connector Top view Micro SD Card a SDRAM 64 MByte R3 RI3RI Ste SS esr NE 36 ECSS J4 J DAD Bottom view 3 2 Connector Descriptions 3 2 1 Power Supply Power Source Selector xs 5V GND 5V GND The SUN Shield can be powered from Arduino boards or 5V external power supplies The selection can be made by installine a jumper on J2 as described below Use external power supply Use power supply on Arduino Note that LCDs consume much current so usine an external power supply is recommended since the supply circuit on Arduino 3 2 2 UART with LVTTL level 3 3V with 5V Tolerant i 09090 3 Ui i E 4 Communication with Arduino 4 1 Interconnection with Arduino INPUT Input 12 VDC 4 2 Serial Port Settings Baud Rate 9600 Data Bits 8 Parity Bits none Stop Bits 1 4 3 Format Remark 1 Space width can be any size 2 Spaces are used as separators DO NOT use space in any object names 3 Commands are not case sensitive but parameters are case sensitive 4 Response is disabled by default see GUlResponse command for more detail 5 Commands and Messages 5 1 GUI Commands and Messages 5 1 1 Initial Messages SETUPGUI Sent out from the SUN7 Shield to inform that reading script is finished but GUI is not yet shown The user can program Arduino to configure objects at
2. this state A timer is set when this message is sent to wait for user commands And there is 1 second timeout after last command received after timeout STARTGUI will be sent STARTGUI Sent out from the SUNT Shield after SETUPGUI to inform that GUI is started 5 1 2 Main Settings GUIResponse Enable or disable command response GUlInitKeypad Initialize keypad use only once after lt SETUPGUI gt received Note that the keypad style is fixed by the keypad images from example script folders 5 1 3 Screen amp Popup Window GUIGotoScr Change screen to target screen GUlOpenPopup Open popup window GUIClosePopup Close popup window NAMESCS Message sent from SUN Shield to inform that screen is changed to a new one KEYPAD Message sent from SUNT Shield to inform that the keypad is pressed 5 1 4 Language GUISetLang Set language mode GUIGetLang Get language mode 5 1 5 Sound GUISndClrList Stop MP3 playback and clear all MP3 added to the list GUlSndAddlist Add sound to list Using this function alone will wait until playing sound finishes To play new sound instantly use GUISndClrList beforehand GUISndSetOffsetVol Before a sound played the sum of offset volume and individual volume set from script will be used to set the chipset GUISndOn Sound is turned on by default this function turns sound on if GUISndOff is used GUISndOff Turn off sound Using audio commands cannot stop playing file fro
3. 2 5 26 PM Date created 11 Dec 12 4 48 PM P VLC media file bin Size 141 KB 2 Jump TX3 to ground Jump TX3 to GND Reset Switch 4 Finished Bootloader For Sheild vi 00 Upgrading with shield bin Start Decryption 142 KB image loaded Run Application GUI Script version 2 07 SUN7 Shield Rev B Hor 7 Started lt NAMESCS SCSO gt 7 Dimension 4 00_mm P10 A njs Hire RA comill 7 Shield Rev B M He LCO wm L GE mm SI H 92000 00 GND GND 812 H o N GC W I a n SECH g 1 J2 ES NI 3 05_mm
4. SUNT Shield User Manual v1 0 Enable Your Design ThaiEasyElec com LL On line Electronics Shop for Embedded System Revision History Version Changes 1 0 11 Jan 2013 Original version Contents A RETE 5 AF 6 e E A R E E E A E E a 7 SNR EE 7 9 2 Connecter DESEN Non ee ee 8 321 Power SUpP T 8 3 2 2 UART with LVTTL level 3 3V with 5V Tolerant 2asiaaaaanissisavassddsasasdadsaaaadaasaaaaaaaaaa 8 d Communication with EODD ae rtt t Aha eu cui equo ALERTER ule roo AC LN RR ERE 9 4 1 Interconnection WIA AAU EE 9 42 Sena AP OP Senado 10 Ee NEE 10 E El E e ROTER RN R a 11 5 1 GUI Commands RE 11 SAT CE zl tee 11 SIM k O tate 11 5 1 3 Screan amp POPUD goo AMPH 11 LAU E E E a ia 12 e A 12 Ee e C aaa 13 NE T e n 14 EE 15 NEE 15 EE 16 SAL Ge ne 17 5 2 Other Commands sind KE 18 A E AN A 18 522 Real imei saetas 18 Duc O NE MEE M A 19 A o US aub C 20 FM Blo RIS A kassann MM 22 1 Introduction SUN7 Shield was designed to allow Arduino boards to run graphic based application using 4 3 or 7 touch screen LCD With GUI Engine running on the shield the user can create and configure GUI screen by screen on SUNT Studio which is software created by ThaiEasyElec com The user get script folder contains script images and sounds from SUNT Studio and put it in the SD card to run the shield Then all o
5. ab Use this function with tables to cancel the effect of GUISkipTable GUIConfigTab Configure responsive message for a table Messages will be sent out only when enabled actions occur All actions are enabled by default Message patterns are described afterward Action Message 5 1 11 Percent Bar GUlEnableBar Enable a percent bar specified by name GUIEnableBar name bar name bar percent bar name GUIDisableBar Disable a percent bar specified by name GUIDisableBar name bar name bar percent bar name GUISetValBar Set a percent bar s value GUISetValBar name bar value name bar percent bar name value value percent bar 0 100 GUIGetValBar Get a percent bar s value GUIGetValBar name bar value name bar percent bar name value value percent bar 0 100 return lt value percent bar rn GUIConfigBar Configure responsive message for a percent bar Messages will be sent out only when enabled actions occur All actions are enabled by default Message patterns are described afterward GUIConfigBar name screen name bar action bar name screen screen name name bar percent bar name action bars ans JL STOP 2 Enable All Default 3 Digable All Action Message name bar action bar value gt r n name bar percent bar name action bar percent bar s action MOVE STOP value value percent bar 0 100 5 2 Other Commands and Messages 5 2 1 Echo Echo Enable or disable echo on serial com
6. bjects on the screen can be controlled by Arduino through a serial port Moreover the SUN shield contains MP3 decoder RTC and support firmware upgrade through SD card When the SUNT shield starts up it reads GUI script from installed SD card It loads images from SD card to SDRAM according to the script Prior to start GUI some messages are sent to the Arduino so the Arduino can initialize some objects using commands on purpose e g change some images disable some buttons Then GUI is started and while GUI is running responsive messages are sent from the SUN shield to the Arduino when any events occur All commands and messages are text based 2 Features NXP s ARM Cortex M3 LPC1788 12 MHz crystal S Maximum of 64 MB memory with 2 of 16 bit EtronTech s EM63A165TS 5G SDRAM 32 bit Connector for 800x480 pixels wide screen 7 TFT LCD Connector for 4 wire resistive touch screen panel Touch screen controller IC STMPE610 Micro SD card socket SPI interface supports SDHC high capacity type On chip 4KB EEPROM in LPC1788 UART with LVTTL level 3 3V with 5V tolerant Built in VS1011E MP3 decoder with 3 5 mm headphone jack 5VDC power supply terminal 3 Peripherals 3 1 Layout External Battery for RTC o e DoD Brrr LVTTL Level UART A 9 RE i IS 4 E Reset Switch O 14 o i mM Jumper for ISP Touch Screen Connector Zar Le k i 3asyElec comll Ex Bak LCD nm
7. by name with ID of new image The new image must have the same size with the old one 5 1 8 Label GUISkipLbl Make a label specified by name to be skipped Use GUIUnskipLbl to cancel the effect GUIUnSkipLbl Unskip a label specified by name 5 1 9 Textbox GUIAddTxt Add text to a textbox with maximum length set from script GUICIrTxt Clear text on a textbox specified by name GUIGetStrTxt Get text on a textbox specified by name GUISkipTxt Make a button specified by name to be skipped It won t be shown whatever its status is Use GUIUnSkipTxt to cancel the effect GUIUnSkipTxt Unskip a button specified by name GUIConfigTxt Configure responsive message for a textbox Messages will be sent out only when enabled actions occur All actions are enabled by default Message patterns are described afterward GUIConfigTxt name screen name txt action txt name screen screen name name txt text box name Action exes 0 PRESS Deui 1 e Digable All Action Message name txt action txt gt r n name txt text box name action tst text laos action PRESS 5 1 10 Table GUIWriteTab Write text in table with options defined by script GUIWriteTab2 An extended version of GUIWriteTable With this one parameters can be specified beyond settings from script GUISkipTab Make a button specified by name to be skipped It won t be shown whatever its status is Use GUIUnSkipTab to cancel the effect GUIUnSkipT
8. m sound plug in This function will stop current playing and prohibit list addition on the beginning of screens GUISndGetCurrent Get playing sound ID SNDEND Message sent from SUNT Shield to inform that playing sound added to the screen is finished 5 1 6 Button GUlEnableBt Enable a button specified by name so it becomes responsible for presses GUIDisableBt Disable a button specified by name so it becomes irresponsible for presses GUISkipBt Make a button specified by name to be skipped It won t be shown whatever its status is Use GUIUnSkipBt to cancel the effect GUIUnSkipBt Unskip a button specified by name GUIChangelmgBt Change image for a button state using image ID The new image must have the same size with the old one GUIConfigBt Configure responsive message for a button Messages will be sent out only when enabled actions occur All actions are enabled by default Message patterns are described afterward Action Message KEYBT When the button is set as a key button and it s pressed KEYBT message is also sent with action message SETLANG When the button is set as a change language button and it s pressed SETLANG message is also sent with action message 5 1 7 Image GUlEnablelms Enable an image specified by name so it is displayed on the LCD GUIDisablelmg Disable an image specified by name so it is not displayed on the LCD GUIChangelme Change image in an image box specified
9. munication 5 2 2 Real Time Clock RTC SetTime Set time SetTime hour min hen setting hour min setting minute example SetTime 18 30 SetDate Set date SetDate day date month year day enter day in 0 6 SUN SAT or sun sat date enter date month enter month in 1 12 JAN DEC or jan dec year enter year in 0 9999 example SetDate SUN 10 JAN 2012 GetTime Get current time GetTime return hour minute second gt r n GetDate Get current date GetDate return day date month year gt r n 5 2 3 Sound Play Play a single MP3 file PlayAll Play all MP3 files in a folder Audio Manage sound playback GetPlayName Get raw file name being played GetlsPlay Check whether a MP3 file is being played 6 Firmware Upgrade The user has to upgrade firmware of SUN7 Shield using a correlative firmware with LCD size and orientation There are 3 available choices provided 7 LCD with landscape orientation 7 LCD with portrait orientation 43 LCD with landscape orientation Instructions 1 Store selected shield bin in a micro SD card and plug it into the board Play v Burn New folder d Downloads i Name Documents E Recent Places 1 Dropbox Libraries B Documents Music E Pictures BE Videos E Homegroup Computer Local Disk C cx New Volume D a New Volume E B son i Mehwork v nn iii A shield Date modified 07 Dec 1
Download Pdf Manuals
Related Search
Related Contents
gebruiksaanwijzing mode d'emploi bedienungsanleitung Purgador Termodinamico TD62 Velleman MICW43 User manual Bosch LBB 3441/50 Manuel d`instructions IT - Comestero User`s Manual of RDC634XG-CD Control System Prime-Line N 6870 Instructions / Assembly Dicota BacPac Rain Copyright © All rights reserved.
Failed to retrieve file