Home
LED CUBE REMOTE - Digital Library
Contents
1. PHA PDO RXD PCINTI PBO ICP1 CLKO PCINTO PDI TXD PCINTI7 PBI OCIA PCINTI jd PD2 INT PCINTIB PE2 SS OC1B PCINT2 PD3 INTI OC2B PCINTIS PB3 MOSI OCZA PCINT3 2 PDAFTO XCKIPCINT2O PB4 MISO PCINTA 2 PDS TI OCOE PCINT21 PB5 SCK PCINTS PBE TOSC1 XTAL1 PCINTE PD7 AIN1 PCINT23 PB TOSC2 XTALZ PCINT AREF PCO ADCOVPCINTE AYCC PCT ADCT PCINTS PC2 ADC2 PCINT10 PC3 ADC3 PCINTI 1 ADC PCA ADCA SDA PCINT12 PCS ADCS SCL PCINTI3 PC6 RESET PCINT14 ATMEGA328P_32PIN lt TEXT gt All data bus for each row of 8 leds will be connected to ATMEGA chip as well as a pin to enable output and 3 pins control IC 74HCT138 47 voc PBT TOSCZXTALZ PCNT PCLIYADCUYPC INTS Each layer is connected to a pair of NPN transistors in parallel The transistors are responsible for switching on and off ground for each layer in the led cube 48 2 ratio 1 6 5 design c c e 242 mm 49 design 3 6 x LS DENS sd DD P TE EEEREN Hy A TR E IX Software User Interface Design When Bluetooth 1s disable 50 m F 1100 7 04 LED LED Cube Remote OFF List Paired When Bluetooth 1 enable 51 3 4 7100 7 04 LED LED Cube Remote
2. Request turn on Bluetooth 52 LED LED Cube Remote int When click List paired button Ail 1100 7 04 53 F 7 50 LED Choose your action Effect A input Em c a ng y h m qua PayPhone When click Search button 54 wal 1001 7 04 LED LED Cube Remote Click to Device to connect and turn to choose action screen first stage is choose Effect 55 1100 7 49 Choose your action L Effect input gt 7 Choose Efect elc stairs When click to Spinner which store the effects list 56 000 7 49 LED Choose your action e Effect 2 Text input Choose Efect elc stairs telc stairs snake plan boing zoom pyramid worm squeeze fireworks effect tex Swipe or click to Text tab to turn to input text screen 00 7 50 LED Choose your action Effect A i Text input sent to LED Cube Swipe or click to Music tab to turn to music screen 58 lal 160 11 47 LED Choose your action L Text input d Music Visualization is ON Turn OFF gt A 454 11 38 LED Choose your action ffect A L Text input d Music Visualization Is OFF Turn ON X Algorithms for LED Effects In LCR project we realize that ther
3. RE 23 24 Di 24 x AUCI fag S 24 223 24 Chapter 4 System Design Description e ee ene eee reo hun ree ee 25 VIe Desin OVERVIEW les dut eve vases e ipd Dee Det 25 VII System Architectural Design eee eee ene e eee eno none tho ahh anre e aho anao pen e P n ERE 26 VIe Hardware etes 26 8 1 componetit HS 26 5222 Hardwaredetatls a cato late oL 27 27 31 S es a REC BS dep ce 33 CU ee aia ah oie toe 35 8 3 Led CODE gri 43 Layer led should IoOK Similar 44 v 44 8 4 1 Connect Bluetooth module hc 06 and Arduino essen 44 9 4 2 OUE 44 8 5 D DE M UL UID tree 49 50 IX Software User Interface Design csccscssssscscsssssssccssenssescossansccsccsssnsccesensasscossansscscosssess 50
4. ysteinm PROCESS dHode 12 2 1 2 Roles 13 2 5 MOONS 14 2 2 Project management plan tup 14 PAR 14 2 2 2 Task Sheet Assignments and Timetable 16 22 RISk 17 Bo VA 18 2 3 1 Team project communication 18 29 2 COMMUNICATION WILE ieu ad cast uU ni ouai cincti cal diio su dass cu cds 18 C 19 2 Chapter System 20 HI External Interface Requirements cccsssssscscossssscccssnssescovsansccccessnasccssensasscoesansccscessanscousansas 20 MN MUERTE OO T 20 21 De DY 22 3 2 Communications 22 IV Functional 23 Lise Case tees 23 Non functional Requlrements ssccccssssssccssessansccsssssccccessanscccsensansccesansansccssensccscessanscoscensans 23
5. for LED 61 I 62 PEE Duc 62 E 62 nud nd E REM LIMEN LIN er ae 63 AZAxisupdown random send parallel ehe 64 6 srowcand woop WOOD 64 Te PDO D 66 UNE 66 MEE Ecol 67 10 7 TY EE 67 11 68 Chapter 5 Implementation and Testing 77 Al P 77 K Be Teao 77 112 IC pr ccm 79 AN 82 ABE eR E RULES 83 I2 T Phasestest plan sae dude asas discs cue Duas desea dece 83 2 1 2 WSU CASC 500052250 Mole a a 86 DIS ice I LL 87 I2 bo TONNEN 87 22 87 2 205 PR ots 87 90 95 12 34 Fest report nom Phase 95 12 32 ESE PEDO Phase o eae 96 Chapter 6 User E 97 User Man al e 9
6. 22 09 14 Complete 585 _ 1 Thu 18 09 14 Thu 18 09 14 Review 585 1 Fri 19 09 14 Fri 19 09 14 Create report 3 1day Thu 18 09 14 Thu 18 09 14 4 Design 8 days Wed 24 09 14 Fri 03 10 14 Prepare component 2 days Wed 24 09 14 Thu 25 09 14 Architechture design 2 days Fri 26 09 14 Mon 29 09 14 Circuit design 4 days Tue 30 09 14 Fri 03 10 14 Protocol design 4 days Tue 30 09 14 Fri 03 10 14 LED cube design 2 days Tue 30 09 14 Wed 01 10 14 Software interface 2 Tue 30 09 14 Wed 01 10 14 design Algorthm design 8 days Wed 24 09 14 Fri 03 10 14 Create report 4 8 days Wed 24 09 14 Fri 03 10 14 3 4 Coding 10 days Mon 06 10 14 Fri 17 10 14 Arduino code 10 days Mon 06 10 14 Fri 17 10 14 Android code 10 days Mon 06 10 14 17 10 14 Control code 3 days Wed 15 10 14 Fri 17 10 14 4 Testing 4 days Mon 20 10 14 Thu 23 10 14 System test 1day Mon 20 10 14 Mon 20 10 14 Intergration test 1day Tue 21 10 14 Tue 21 10 14 Acceptance test 1day Wed 22 10 14 Wed 22 10 14 Create report 5 4 days Mon 20 10 14 Thu 23 10 14 4 Planning 3 days Tue 16 09 14 Thu 18 09 14 Setup project environ 2 days Tue 16 09 14 Wed 17 09 14 Define scope 1day Tue 16 09 14 Tue 16 09 14 Develop Risk plan 2days Wed 17 09 14 Thu 18 09 14 project presentation Develop project sche 3 days Tue 16 09 14 Thu 18 09 14 Develop project man 3 days Tue 16 09 14 Thu 18 09 14 Prepare Requirement 3 days Thu 18 09 14
7. m n 33V E WC CHES Be e e bh 74 822 3 f KEY 4 N 0 10K I we NC 5 b T a la 470 2 LED 4 NIE OND E 470 CONS umm LED 8 E WE dri D m 9 3 Led cube design This led is made up of columns and layers The cathode legs of every led in a layer are soldered together the anode legs in one column are soldered together Therefore we will have 64 columns anode and 8 layers cathode Each of them are connected to the controller board with a separate wire and can be controlled individually The led cube will be place in a piece of wood for easier wiring 43 13427 Layer led should look similar to this 29 G9 2 49 2 2 29 2 2 49 4 G9 DB 2 2 49 2 2 DB G9 2 49 2 29 2 2 49 49 29 2 4 49 29 2 8 4 Circuit design 3 4 1 Connect Bluetooth module hc 06 and Arduino 29 G9 2 0 G9 Column 9 Column 10 Column 11 Column 12 Column 13 Column 14 Column 15 Column 16 9 4 2 Connect Arduino and multiplexer out 2 2 2 49 G2 ZH 1 2 Column 3 Column 4 Column 5 Column 6 Column 7 Column 8 This circuit simu
8. unit HC amp KEV HC 06 RS arr mi We 1 sum ART RED 3 32 HC NCO 4 ESI 3l 51 5 NC 30 2 T gt 7 He NC 28 KEY 5 NC 0 HC NC 26 KEY 0 IA 25 AA 12 LED E 33 5 a GHD GHD R7 470 LED E EM 41 In principle 06 can work when UART UART VCC and GND connected However for better testing results connecting LED and KEY are recommended when testing the master Where the 3 3V TXD of MCU connects to HC 06 s UART RXD the 3 3V RXD of MCU connects to HC 06 s UART TXD and 3 3V power and GND should be connected Then the minimum system is finished Note that the PIN2 UART_RXD of Bluetooth module has no pull up resistor If the MCU TXD doesn t have pull up function then user should add a pull up resistor to the UART It may be easy to be ignored If there are two MCU which connect to master and slave device respectively then before paired LED will flicker user can send AT commands by serial port when the system is power on If the LED is constant lighting it indicates the pairing is finished The two MCUs communicate with each other by serial port User can think there is a serial port line between two MCUs 42 c Connect the module to 5V serial port MCU 06 KEY 0 m 06 ve TD ru 48
9. 1 4 Project Overview 1 4 1 The Proposed System 8 8 8 LED cube kit white by JAMECO KITPRO was sold on Amazone com with 14 955 using Arduino Uno to control the effect through PC software However this cube does not have lots of effect and only suit for experienced user Using this cube require a PC and installation the software http www amazon com 8x x8 LED Cube Kit White dp BOOEAW TPO06 1 4 2 Boundaries of the System Our system was divided by 3 main parts e Input user choose the effect the smart phone e Process smart phone will process and give signal to arduino through Bluetooth Arduino will continuing process and send command to micro processing Output the micro processing will control LED give the effect as user wish on the 3D cube 1 4 3 In scope of capstone project When turn on LED Cube instance running effect and changing the effect every 40 second The Android app ask to turn on Bluetooth connection and connect automatic to LED Cube This app can Set the effect are running Change speed of effect while playing music file 1 4 4 Out scope of capstone project Due to limit of time and knowledge we suspect to adding more function in LED Cube and feature in the Android app future 1 4 5 Development Environment We using Microsoft Window as the main OS for developing both Arduino and Android application C environment using Arduino IDE for develop Ard
10. 1 GB ram core 13 1 5 GHz Arduino kit has com port or mini usb port or can use USB serial adapter to convert to USB port Have enough pin to connect 8 microchip use At mega 328 microprocessor 21 3 3 System interface Android 1 Bluetaath 1 USB 2 0 ARDUINO 5232 nort PC Control board LED Cube 3 4 Communications Protocol Use RS232 or USB protocol to connect control board to PC Use Bluetooth 4 0 protocol to connect android Phone to control board Use 8 pin connecter to connect from control board to LED Cube 22 IV Functional Requirement Use case diagram System Start the cube Change Effect Open Android Display application letters Visualization User lt lt include gt gt ex lt lt include gt gt Use case diagram of LED Cube V Non functional Requirements 5 Reliability The system activities should be reliable and correct to the user s choice 23 The connection between smartphone and the hardware must to ensure stable operation when they were connected the unintended disconnection must not 5 2 Availability The system must be ready to operate at any time when it s started by users The system s able to ensure the stable operation continuously for at least 12 hours 5 3 Maintainability Modularized design Clearly following coding convention
11. 1 z 1 x 1 y 0 z 1 x 1 y 1 z 1 If the signal returns of between 100 to 114 assign a value to a variable i is from 0 to 6 turn on led at positions x 0 y 0 z 1 x 0 y 1 z 1 x 1 y 0 z 1 x 1 y 1 z 1 If the signal returns of between 86 to 100 assign a value to a variable i is from 0 to 5 turn on led at positions 0 0 7 4 0 1 7 4 1 0 7 1 1 1 7 If the signal returns of between 72 to 86 assign a value to a variable i is from 0 to 4 turn on led at positions x 0 y 0 z 1 x 0 y 1 z 1 x 1 y 0 z 1 x 1 y 1 z 1 If the signal returns of between 58 to 72 assign a value to a variable i is from 0 to 3 turn on led at positions x 0 y 0 z 1 x 0 y 1 z 1 x 1 y 0 z 1 x 1 y 1 z 1 If the signal returns of between 44 to 58 assign a value to a variable i is from 0 to 2 turn on led at positions x 0 y 0 z 1 x 0 y 1 z 1 x 1 y 0 z 1 x 1 y 1 z 1 If the signal returns of between 36 to 44 assign a value to a variable i is from 0 to 1 turn on led at positions x 0 y 0 z 1 x 0 y 1 z 1 x 1 y 0 z 1 x 1 y 1 z 1 If the signal returns of between 31 to 36 turn on led at positions x 0 y 0 z 0 x 0 y 1 z 0 x 1 y 0 z 0 x 1 y 1 z 0 68 Delay period of time then turn of all led of cube then delay a period time Level 2 If the signal returns of between 240 to 256 assign value to variable i is from 0 to 7 turn on le
12. 22 09 14 Define Risk 1day Thu 18 09 14 Thu 18 09 14 4 Define Requirement 2 days Fri 19 09 14 22 09 14 Define non functio 2 days Fri 19 09 14 22 09 14 Define Function re 2 days Fri 19 09 14 Mon 22 09 14 Define external int 2 days Fri 19 09 14 Mon 22 09 14 Complete SRS 1day Thu 18 09 14 Thu 18 09 14 Review SRS 1day Fri 19 09 14 Fri 19 09 14 1 4 Design 8 days Wed 24 09 14 Fri 03 10 14 Prepare component 2 days Wed 24 09 14 Thu 25 09 14 Architechture design 2 days Fri 26 09 14 Mon 29 09 14 Circuit design 4 days Tue 30 09 14 Fri 03 10 14 Protocol design 4 days Tue 30 09 14 Fri 03 10 14 LED cube design 2 days Tue 30 09 14 Wed 01 10 14 Software interface de 2 days Tue 30 09 14 Wed 01 10 14 Algorthm design 8 days Wed 24 09 14 Fri 03 10 14 10 days Mon 06 10 14 Fri 17 10 14 Arduino code 10 days Mon 06 10 14 Fri 17 10 14 Android code 10 days Mon 06 10 14 Fri 17 10 14 Control code 3 days Mon 06 10 14 Wed 08 10 14 4 Testing 4 days Mon 20 10 14 Thu 23 10 14 System test n day Mon 20 10 14 Mon 20 10 14 Intergration test 1day Tue 21 10 14 Tue 21 10 14 _ Acceptance test 1day Wed 22 10 14 Wed 22 10 14 4 Closing 12days 24 10 14 10 11 14 _____ Create report 6 6 days Fri 24 10 14 Fri 31 10 14 gu complete project 9 days Fri 24 10 14 Wed 05 11 14 document 3 Thu 06 11 14 10 11 14 2 2 2 Task Sheet Assignments and Timetab
13. 5 4 Usability English user interface design easy to understand reasonable Direct instruction in software 5 5 Performance The system should run fast when users press button Start to run system booting Led effect must be display no later than 2 seconds When users chose effects on mobile then they sent effect must display no later than 1 sec 24 Chapter 4 System Design Description VI Design Overview Remote LED Cube is a project using Android device to control how LED Cube works Basically we using an Android application connect to an 8x8x8 led cube thought Bluetooth connection The Android application can choose how the led effect changes can send text and choose how the text appear in led cube and the application has a music player which can using led cube as a visualization This document describes the technical and UI design of RLC It contain the architecture design detail hardware design and user interface of Android application It also include the algorithms we use to make effect and visualization for 8x8x8 led cube e The Architecture design describes the overall architecture of the system and how each component works in working environment e The effect algorithms describe each effect we use on LED Cube and how it appear e Hardware design describes the hardware use in RLC control broad design led cube design and box design which contain all the components e Ul design descr
14. 784 to 800 assign a value to variable 1 15 from to 1 turn on led at positions x 2 y 6 z 1 2 7 7 1 3 6 7 1 3 7 7 1 If the signal returns of between 768 to 784 turn on led at positions 2 6 2 0 x22 yz 7 220 3 6 2 0 3 7 7 0 Delay a period of time then turn of all led of cube then delay a period of 4 Level 8 If the signal returns of between 938 to 1023 assign value to a variable 1 is from 0 to 7 turn on led at positions 6 6 7 1 7 7 4 7 6 7 1 7 7 7 75 men If the signal returns of between 932 to 938 assign a value to a variable 1 is from O to 6 turn on led at positions 6 6 7 1 x 6 y 7 Z 1 X 7 y 6 zZ 1 x 7 y Z 1 If the signal returns of between 926 to 932 assign a value to a variable 1 is from O to 5 turn on led at positions 6 6 7 1 x 6 y 7 Z 1 X 7 y 6 z 1 x 7 y 7 Z 1 If the signal returns of between 920 to 926 assign a value to a variable 1 15 from 0 to 4 turn on led at positions 6 6 7 1 6 7 2 1 7 6 7 1 7 7 7 1 If the signal returns of between 914 to 920 assign a value to a variable 1 is from 0 to 3 turn on led at positions 6 6 7 1 x 6 y 7 Z 1 X 7 y 6 Z 1 x 7 y Z 1 If the signal returns of between 908 to 914 assign a value to a variable 1 is from 0 to 2 turn on led at positions 6 6 7
15. Really diverse size color and shapes of LEDs Reasonable price costs saving from polymer materials so LEDs are durable easy to transport without the fear of breakage LEDs generates more light and have a lifespan up to 70 thousand hours of use if a LED lamp has 8 hours lighting a day after 23 years it need replacing saving power up to 70 80 in comparison with conventional lamps Insignificant thermal energy generated during operation Works well in low temperature conditions Use direct current with small voltage Environmental friendly because LEDs do not generate ultraviolet rays or mercury Applications LEDs are used in many fields in our life such as decorating reading lighting advertising Especially outdoor advertising in the toughest places for fitting or replacing lights because we can take advantage of its many times longer lifespan than Neon lights Moreover they are various in colors red green blue amber We will use super bright LEDs commonly used as billboards with low power consumption high reliability and good performance in this project 1 2 2 The Idea Our idea 1s to combine multiple LEDs to create many different effects served in the outdoor advertising or indoor decoration as a prominent furniture in the room We use multiple LEDs connected together in a cube to create the 3D effect by turning off the lights automatically at various locations thro
16. e BluetoothSPP android 12 1 4 Test environment e Microsoft Window 7 8 e Android 4 4 2 12 2 Test Item 12 2 1 Phase 1 LED Cube Remote Number Number Expected Actual Number Test case of test of test Remark result result of test pass failed led are PS1 01 LED good 512 512 n a light Led not led are light or broken FIXED Arduino Loading code promini reset ok 87 Light PS1 04 Layer 0 light layer 0 Light PS1 05 Layer 1 light layer 1 Ligh PS1 06 2 RO 2 2 Layer 2 light good L PS1 07 2 Layer 3 light good h h Layer 4 light good layer 4 Ligh Layer 5 light good Ligh Layer 6 light good layer 6 Light Layer 7 light good layer 7 ig ig layer 3 Lig ig ig PS1 08 2 PS1 09 layer 5 PS1 10 2 ga ga ga 51 11 2 2 Light Horizontal PS1 12 AXIS X good row 1 light 01 Light Horizontal AXIS X good 1 row 2 light 02 Light welds Horizontal 51 14 AXIS X unbend row 3 light 03 FIXED Light Horizontal PS1 15 AXIS X good 1 row 4 light 04 Light Horizontal PS1 16 AXIS X 1 row 5 light 05 88 51 17 PS1 18 PS1 19 PS1 20 PS1 21 PS1 22 PS1 23 PS1 24 PS1 25 PS1 26 PS1 27 Light AXIS_X 06 Light AXIS_X 07 Light AXIS X 08 Light AXIS Y 01 Light AXIS Y 02 Light AXIS Y 03 Light A
17. how it works 1 64 voxels start on one of the side walls 2 Random shift one voxel one step ahead 3 Loop until that voxel reach the opposite side 4 Mean while followed by another random voxel at a time 5 Loop until all voxels reach the opposite side of the wall 6 Box shrink grow and woop woop It takes four arguments number of iterations rotation flip and delay Rotation specifies rotation around the Z axis at 90 degree intervals Flip gt 0 flips the cube upside down To make the function as simple as possible it just draws a box from 0 0 0 to any point along the diagonal between 0 0 0 and 7 7 7 then uses axis mirror functions to rotate 1t 1 Enter main iteration loop 2 Enter a for loop going from 0 to 15 64 3 Set xyz to 7 1 This makes xyz the reverse of 1 We want to shrink the box first then grow xyz 1s the point along the diagonal We just used one variable since x y and z are all equal along this diagonal 4 When 1 7 the box has shrunk to a Ix1x1 box and we can t shrink it any more If 1 15 greater than 7 xyz 1s set to 1 8 which makes xyz travel from 0 to 7 when 1 travels from 8 to 15 We did this trick to avoid having two for loops with one going from 7 0 and one from 0 7 5 Blank the cube and delay a little bit to make sure the blanking 1s rendered on the cube Disable the interrupt routine We do this because the mirror functions takes a little time Without disabling interrupts the w
18. of 138 to a 1 01 32 5 lines to 32 lines decoder with just four 138 ICs and one inverter The 138 can be used as an eight output demultiplexer by using one of the active LOW enable inputs as the data input and the remaining enable inputs as strobes Unused enable inputs must be permanently tied to their appropriate active HIGH or LOW state a Table function 33 Note LOW voltage level don t care HIGH voltage level 34 b Logic diagram nan 7293231 1 Logic diagram 8 2 4 Module 06 Master and slave mode can t be switched Master role have paired memory to remember last slave device and only make pair with that device unless KEY PIN26 is triggered by high level The default connected PIN26 is low level Pairing Master device search and make pair with the slave device automatically Typical method On some specific conditions master and slave device can make pair with each other automatically Multi device communication There 1s only point to point communication for modules but the adapter can communicate with multi modules AT Mode Before paired it 1s at the AT mode After paired it s at transparent communication During the communication mode the module can t enter to the AT mode Default communication baud rate 9600 35 a PINs description UART THD UART RED CTS RTS PCM CLE PIN configuration The PINs at this block diagram is as s
19. of cube then delay a period time Level 4 If the signal returns of between 492 to 512 assign a value to a variable 1 is from 0 to 7 turn on led at positions 6 2 2 1 x 6 y 3 Z 1 x 7 y 2 Z 1 x 7 y 4 Z 1 If the signal returns of between 476 to 492 assign a value to a variable i is from O to 6 turn on led at positions 6 2 7 1 x 6 y 3 Z 1 x 7 y 2 Z 1 x 7 y 4 Z 1 If the signal returns of between 460 to 476 assign a value to a variable i is from 0 to 5 turn on led at positions 6 2 2 1 6 3 7 1 7 2 7 1 7 4 7 1 If the signal returns of between 444 to 460 assign a value to a variable 1 is from 0 to 4 turn on led at positions x 6 y 2 Z 1 6 3 7 1 7 2 7 1 7 4 7 1 If the signal returns of between 428 to 444 assign a value to a variable 1 is from 0 to 3 turn on led at positions 6 2 7 1 6 3 7 1 7 2 7 1 7 4 7 71 If the signal returns of between 412 to 428 assign a value to a variable 1 is from 0 to 2 turn on led at positions 6 2 2 1 6 3 7 1 7 2 7 1 7 4 7 1 If the signal returns of between 396 to 412 assign a value to variable i is from to 1 turn on led at positions 6 2 2 1 6 3 7 1 7 2 7 1 7 4 7 1 If the signal returns of between 384 to 396 turn on led at positions x 6 y 2 z 0 x 6 y 3 z 0
20. 1 x 6 y 7 Z 1 X 7 y 6 z 1 x 7 y 7 Z 1 If the signal returns of between 902 to 908 assign a value to a variable 1 is from to 1 turn on led at positions x 6 y 6 Z 1 x 6 y 7 Z 1 X 7 y 6 zZ 1 x 7 y Z 1 If the signal returns of between 896 to 902 turn on led at positions x 6 y 6 z 0 x 6 y 7 z 0 x 7 y 6 z 0 x 7 y 7 z 0 Delay a period of time then turn of all led of cube then delay a period of time 76 Chapter 5 Implementation and Testing XI Implementation There are two phase when we implement product 11 1 Phase 1 In this phase we create a sample product to test and research Some picture eb 000 4 LEE ee aana D 4 4 4 4 AREA m m e MEI Es 2 ou 2 77 Test effect sample code Rem A min 78 11 2 Phase 2 In phase 2 we try to made beauty product with new LED Cube new printed circuit 79 80 81 Testing For every project testing 15 always play a very importance role in development process Because of its role we highly concentrate on doing test in each phase of the project In phase 1 and phase 2 we testing on the same test case but due to different condition we still decide to take test independent in each phase of the project the different will describ
21. 28 e Input and output Each of the 14 digital pins on the Pro Mini can be used as an input or output using pinMode digital Write and digitalRead functions They operate at 3 3 or 5 volts depending on the model Each pin can provide or receive a maximum of 40 mA and has an internal pull up resistor disconnected by default of 20 50 kOhms In addition some pins have specialized functions Serial 0 RX and 1 TX Used to receive RX and transmit serial data These pins are connected to the 0 and RX 1 pins of the six pin header External Interrupts 2 and 3 These pins can be configured to trigger an interrupt on a low value a rising or falling edge or a change in value See the attachInterrupt function for details PWM 3 5 6 9 10 and 11 Provide 8 bit output with the analogWrite function SPI 10 SS 11 MOSD 12 MISO 13 SCK These pins support SPI communication which although provided by the underlying hardware 1 not currently included in the Arduino language LED 13 There is a built in LED connected to digital pin 13 When the pin is HIGH value the LED 1 on when the pin 1 LOW it s off The Pro Mini has 8 analog inputs each of which provide 10 bits of resolution 1 e 1024 different values Four of them are on the headers on the edge of the board two inputs 4 and 5 on holes in the interior of the board The analog inputs measure from ground to VCC Additi
22. 4 5 2 1 5 4 7 1 5 5 2 1 If the signal returns of between 640 to 656 turn on led at positions x 4 y 4 z 0 4 5 7 0 5 4 7 0 5 5 2 0 Delay period of time then turn of all led of cube then delay a period time Level 7 men If the signal returns of between 880 to 896 assign a value to a variable i is from 0 to 7 turn on led at positions x22 y26 z221 2 7 7 1 3 6 7 1 3 7 7 If the signal returns of between 864 to 880 assign a value to a variable 1 is from 0 to 6 turn on led at positions x 2 y 6 z 1 2 7 7 1 3 6 7 1 3 7 7 74 If signal returns of between 848 to 864 assign a value to variable 1 15 from 0 to 5 turn on led at positions x 2 y 6 z 1 2 7 7 1 3 6 7 1 3 7 7 If the signal returns of between 832 to 848 assign a value to a variable 1 1s from 0 to 4 turn on led at positions 2 6 2 1 2 7 7 1 3 6 7 1 3 7 7 If the signal returns of between 816 to 832 assign a value to a variable 1 1s from 0 to 3 turn on led at positions 2 7 x 2 y 7 Z 1 x 3 y 6 Z 1 x 3 y 7 Z 1 If the signal returns of between 800 to 816 assign a value to a variable 1 15 from 0 to 2 turn on led at positions 2 7 2 7 7 1 3 6 7 1 3 7 7 If the signal returns of between
23. 7 Chapter 1 INTRODUCTION I Introduction 1 1 Definition Acronyms and Abbreviation LCR Led cube remote LC Led cube IC Integrated circuit 1 2 Project Introduction 1 2 1 Background LED 1 the abbreviation of Light Emitting Diode The LED consists of a chip of 2 types of semiconducting materials P and N connecting one with another LED lamps have a very good light performance efficiency and power saving Appearing in the 605 of last century LEDs were often used as practical electronic components in a number of applications such as for time display of an alarm clock or for indicator of camera s battery However this kind of lamps had only 3 color ereen red and yellow but not white By 1993 a Japanese chemical company has researched and successfully made the first white LEDs and then LEDs are used more widely in reality Working principles of LEDs Like many other types of semiconductor diodes Depending on the level of energy emitting high or low the wavelength light emitting different 1 e color of the LED will vary Energy levels and the color of the LED depends completely on the structure of the atomic power semiconductors materials Depending on the type of LED that forward bias voltage are different For normal LEDs biased voltage ranges from 1 5V to 2 5V for ultra bright LED the forward bias voltage may be up to 5V When operating normally the LED amperage ranges from 1 to Advantages of LEDs
24. BSTARS RATED FOR EXCELLENCE ggo University LED CUBE Final report Instructor Phan Duy H ng Team member Hoang Ngoc Nguy n Anh T i Nguy n Duc Anh Pham Xu n Bat Contents Chapter F INTRODUCTION ____ ____ _ __ 5 IN 5 1 1 Definition Acronyms and 5 122 OPO PURO mero NN I 5 xe 5 1 2 2 E E E E 7 1 2 3 Med Deu md pd ME DEUM Pd UE 7 8 E uu sula 9 LAT Proposed 9 LAZ Boundaries 9 1 43 In scope of capstone 10 1 4 4 of capstone 5222225 10 12 5 Development 10 ON pce ges sect 11 15 1 Name of this pe 11 ADS a e A 11 LOR T E E 11 Chapter 2 PROJECT MANAGEMENT 12 IT Froject management 12 12
25. XIS X 07 Light AXIS X 08 Light AXIS Y 01 Light AXIS Y 02 Light AXIS Y 03 Light AXIS Y 04 Light AXIS Y 05 Light AXIS Y 06 Light AXIS Y 07 Light AXIS Y 08 Fill led cube Layer 3 light Layer 5 light Layer 4 light Horizontal row 4 light Horizontal T row 5 light B Horizontal Sd row 6 light B Horizontal row 7 light Horizontal row 8 light Vertical row 1 eT light B Vertical row 2 en light B Vertical row 3 sod light 5 Vertical row 4 light Vertical row 5 light Vertical row 6 light B Vertical row 7 light B Vertical row 8 light good good Layer 6 light Layer 7 light Horizontal row 1 light Horizontal row 2 light Horizontal row 3 light ood Light up all led 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 n a IC74HC138 replaced n a n a n a IC74HC547 replaced IC74HC548 replaced 4 549 5 547 5 5 25 5 5 xS CD CD CD CD 5 WO m 5 53 28 Software testing Default effects Sound sensor Sound sensor digital out Default music effect Bluetooth connection Layout test Select Effect Rain Select Effect Rain Select Effect Planboing Select Effect Filip filop Select Effect Firework Select Effect TelcStair Turn on the cu
26. XIS Y 04 Light AXIS Y 05 Light AXIS Y 06 Light AXIS Y 07 Light AXIS Y 08 Horizontal row 6 light Horizontal row 7 light Horizontal row 8 light Vertical row 1 light Vertical row 2 light Vertical row 3 light Vertical row 4 light Vertical row 5 light Vertical row 6 light Vertical row 7 light Vertical row 8 light good 2 2 2 2 2 2 2 2 2 5 led Fill LED led are PS1 28 bad 1 0 1 broken Cube light FIXED Effect PS1 29 Effect rain running good 1 1 correctly Effect Effect running good 1 1 planboing correctly Effect Effect running good 1 1 ripples correctly Effect Effect PS1 32 running good 1 1 intro correctly 12 2 2 Phase 2 LED Cube Remote TaiNA 4 12 2014 Type of Expected Number Number of Test case test result of test test pass All led are 1 light sm n a Led not uie 512 498 14 ignt or light broken test Ligh 90 53 06 53 07 53 08 53 10 53 11 53 12 53 13 53 14 53 15 53 16 53 17 53 18 53 19 53 21 53 27 Light layer 3 Light layer 4 Light layer 5 Light layer 6 Light layer 7 Light AXIS X 01 Light AXIS X 02 Light AXIS X 03 Light AXIS X 04 Light AXIS X 05 Light AXIS X 06 Light A
27. XT and MUSIC At EFFCTS page select any effects to run this effect 98 G F 1100 7 49 LED Choose your action Effect Text input Choose Efect elc stairs telc stairs snake plan boing zoom pyramid worm squeeze fireworks effect tex At TEXT page add text to the Add Text field and press button Sent to LED Cube to run Text Effect with your text P l 00 7 50 LED Choose your action Effect 2 Text input FA e5 Sent to LED Cube At MUSIC page o Touch Turn on button to turn on sound sensor and music visualization 100 gt 9 454 11 38 LED Choose your action ffect A L Text input d Music Visualization Is OFF 101 Touch Turn off button to turn of music visualization 150 11 47 Choose your action ffect 2 Text input Music Visualization is ON Turn OFF 102
28. alization is on Touch Turn off button button change to Turn on Touch Turn off button Led cube stop react to sound Touch Turn off button text change to Music visualization is off Choose another effect button change to Turn on Choose another effect text change to Music visualization is off Effect change when choose another effect good good 94 n a n a n a n a n a n a n a 12 3 Test Report 12 3 1 Test report from Phase 1 Phase 1 Number of test pass Number of test failed Total number of test case Number of Number of Number of test pass test failed 95 12 3 2 Test report from Phase 2 Phase 2 Numbers of test pass Numbers of test fail Total number of Number of test Number of test Number of test test case pass failed 96 Chapter 6 User Manual XIII User Manual Led Cube for activities Turn on switch to turn on the system the system will run the default effects Connect Bluetooth to the control system via android app First open the app and turn on Bluetooth on your phone then wait for the phone searching for the device 97 100 7 04 LED LED Cube Remote 94 8 38 79 06 98 D3 31 B2 8D C3 Ho ng Phuong 28 CF E9 24 5F 2bE o Second select Led Cube Bluetooth device then connect nterface will open up in three key areas EFFCTS TE
29. along the specified axis then moves it from position 0 to 7 on the axis and back again This 1s very simple but really brings out depth of the 3d LED cube This function doesn t have an iteration loop Instead it 1s called twice for each axis in launch effect UZ is what it does 1 For loop 1 from 0 to 7 2 Clear the cube with fill 0x00 3 Call setplane to draw a plane along the desired axis at position 1 The plane isn t actually drawn on the axis specified it is drawn on the other two axis If you specify AXIS 7 a plane is drawn on axis X and Y It s just easier to think of it that way Instead of having constants named PLANE XY PLANE YZ etc 4 Delay for a while 5 Repeat the same loop with 1 going from 7 to 0 4 Ripples The effect you see 15 actually just a sine wave emanating from bottom to top and vice in the center of the cube x 3 5 3 5 Here 1 how it works 1 Loop through the iteration counter 2 Loop through all 64 x and y coordinates 3 Calculate the distance between the center of the cube and the x y coordinate 4 The z coordinate 1s calculated with sin based on the distance from the center the iteration counter The result 1s that the sine wave moves out from the center as the iteration counter increases 63 5 Axis up down random send parallel 64 voxels start on one of the side walls then shift them randomly to the opposite side of the wall Here 1s
30. ame as the physical one PIN Name PIN Pad type Description Note On chip linear regulator output within 1 7 1 9V Bi Directional Programmable input output line Bi Directional Programmable input output line Bi Directional Programmable input output line RX EN control output for LNA if fitted Bi Directional Programmable input output line PIOI 24 TX EN control output for fitted PIO2 25 Bi Directional Programmable input output line PIO3 26 Bi Directional Programmable input output line PIO4 21 Bi Directional Programmable input output line PIOS 28 Bi Directional Programmable input output line 6 29 Bi Directional Programmable input output line REQ PIO7 30 Bi Directional Programmable input output line CLK OUT PIOS 3l Bi Directional Programmable input output line Programmable input output line Programmable input output line Programmable input output line CMOS Input with weak intimal pull down CMOS output 9 PIOIO 32 33 PIOII 34 RESETB tri stable with UART request to send active UART RTS weak internal pull low up 37 CMOS input with weak internal UART CTS 3 UART clear to send active low pull down CMOS input with weak internal UART RX 2 UART Data input pull down CMOS output Tri stable with weak internal pull UART TX 1 UART Data output up CMOS input with weak internal perip
31. be an all the default effects run perfectly Led signal blink by sound it detects Led blink by sound it detects The default music effect run perfectly Open the Android application connect it to LC After bluetooth connect open app layout and choosing different tab Effect rain start after chose Effect rain start after chose Effect rain start after chose Effect rain start after chose Effect rain start after chose Effect rain start after chose good n a n a n a n a n a n a n a n a n a n a n a 53 40 53 41 Select Effect Axis up down random send parallel Select Effect Box shrink grow Select Effect Ripples Select Effect Linespin Select Effect Sidewave Sending text Type on textbox Sending text press button send Effect rain start after chose Effect rain start after chose Effect rain start after chose Effect rain start after chose Effect rain start after chose String appear in textbox String send to arduino String cut into char and appear from front to back PS3 47 Effect text Touch Turn on button button change to Turn off 53 48 Music tab Touch Turn on button Led cube start to react to sound around Music tab good n a n a n a 53 50 53 51 Music tab Music tab Switch effect Touch Turn on button Text change to Music visu
32. d at positions 4 0 7 1 5 1 7 1 5 0 7 1 4 1 7 1 If the signal returns of between 224 to 240 assign value to a variable 1 is from 0 to 6 turn on led at positions 4 0 2 1 5 1 2 1 gt 5 0 7 1 x24 y 1 z 1 If the signal returns of between 208 to 224 assign value to a variable 1 is from 0 to 5 turn on led at positions x 4 y 0 z 1 X 5 y 1 z 1 x 5 y 0 z 1 x 4 y 1 z 1 If the signal returns of between 192 to 208 assign a value to a variable 1 is from 0 to 4 turn on led at positions x 4 y 0 z 1 X 5 y 1 z 1 X 5 y 0 z 1 x 4 y 1 z 1 If the signal returns of between 176 to 192 assign a value to a variable 1 is from 0 to 3 turn on led at positions x 4 y 0 z 1 X 5 y 1 z 1 x 5 y 0 Z 1 x 4 y 1 z 1 If the signal returns of between 160 to 176 assign a value to a variable i is from 0 to 2 turn on led at positions x 4 y 0 z 1 X 5 y 1 z 1 X 5 y 0 z 1 x 4 y 1 z 1 If the signal returns of between 144 to 160 assign a value to a variable 1 is from to 1 turn on led at positions 4 0 7 1 gt 5 1 7 1 5 0 7 1 4 1 7 1 69 If the signal returns of between 128 to 144 turn on led at positions 4 0 7 0 5 1 7 0 gt 5 0 7 0 x24 yz 1 220 Delay a period of time then turn of all led of cube then delay a period of time Level 3 If the signal returns
33. e are a lot of things we can do on this Cube such as light up the room display a message and many beautiful visualization In limit of Arduino pro mini kit s flash memory size we decided to choose 13 effects 1 for the text and 2 for the music visualization and the others for normal use Described a list below Displaying Text Effect text Music visualization O Boombox For normal use O O O O Default Effects Firework Rain Planboing Ripples Filip filop Axis up down random send parallel Box shrink grow and woop woop Side waves TelcStair Linespin Here 1s how each effect works 61 1 Default Effects Default effects including all below normal use effects 2 Rain This effect adds raindrops to the top layer of the cube then lets them fall down to the bottom layer Most of the effects have a main for loop that loops from 1 0 to 1 lt iterations effect rain int iterations only takes one argument which 15 the number of iterations Inside the iteration loop the function does the following 1 Create a random number between 0 and 3 let s call it n here 2 Loop a for loop n number of times 3 For each iteration of this loop place a pixel on layer 7 7 7 at random x and y coordinates 4 Delay for a while 5 Shift the contents of the entire cube along the Z axis by 1 positions This shifts everything down one level 3 Planboing This effect draws a plane
34. es phase 2 testing 82 12 1 Test Plan Due to implementation process separate into 2 Phases we decide to take test in each phases independent In phase 1 we mainly focus on test in hardware component and module in running condition to see if it run correctly In phase 2 we mainly focus on testing in function and software protocol to see the Android Device and Led Cube communication Feature not to be test including Age of product Unexpected situation like crash falling e The different environments condition that the LCR music sensor can working well 12 1 1 Phases test plan Test objective Complete criteria Special consideration Phase 1 Testing hardware to ensure Tester execute this step step has been Testing may be stop all the component work by step to ensure execute when perfectly including led cube everything 1s valid e All identified defects 38 547 have been addressed e Using an 3v power addressed Arduino promini kit and and closed source to testing each e Require a certain e Defect found and control board Led and Led Cube test coverage e Using test code for Arduino to test IC74HC138 IC74HC547 to select led and layers e Testing each effect to see if it run correctly 84 Phase 2 Testing hardware to ensure all the component work perfectly including the same component on Phase 1 and Bluetooth Module HC 06 T
35. esting LED Cube after boxing Bluetooth Module and Sound sensor to define bug and effect running Testing the Android application to define bug and communication between Android device and LCR Tester execute this step by step to ensure everything is valid e Using an 3v power source to testing each Led and Led Cube e Using test code for Arduino to test IC74HC138 and IC74HC547 to select led and layers e Connect module HC 06 to Arduino and sending to checking the communication Testing each effect to see if 1t run correctly e Running all effects including music effects by using noise and music Using Android app to control effects and music player e step has been execute e All identified defects have been addressed and closed Testing may be stop when e Defect found and addressed e Require a certain test coverage 85 12 1 2 Test case form e Phase test form Project LED Cube Remote Author Date ID Test case Expected Actual Number of Number of Number of Remark result result test test pass test failed good bad e Phase 2 test form Project LED Cube Remote Author Date ID Typeof Testcase Expected Actual Number of Number of Number of Remark test result result test test pass test failed good bad Hardware test Software test 86 12 1 3 Testing tools e 3v Power source Arduino IDE Serial Monitor e Hercules version 3 2 8
36. gner tester 2 1 3 Tools and Techniques Microsoft Office 2013 Word Excel PowerPoint Microsoft Office Visio 2013 Microsoft Project Management 2013 VMware Workstation version 10 Arduino version 1 0 6 Microsoft Windows 7 8 1 Altium Designer version 13 3 4 2 2 Project management plan 2 2 1 Tasks Project plan 14 4 Initiation 6 days Mon 08 09 14 Mon 15 09 14 Evaluation and 1day Mon 08 09 14 Mon 08 09 14 recommendation Develop project 2 days Tue 09 09 14 Wed 10 09 14 Identify in out scope 2 days Tue 09 09 14 Wed 10 09 14 Identify stakeholder 2 days Thu 11 09 14 Fri 12 09 14 Project kick off meetii 1 day Mon 15 09 14 Mon 15 09 14 Create report 1 6 days Mon 08 09 14 Mon 15 09 14 4 Planning 3 days Tue 16 09 14 Thu 18 09 14 Setup project 2 days Tue 16 09 14 Wed 17 09 14 environment Define scope 1day Tue 16 09 14 Tue 16 09 14 Develop Risk plan 2 days Tue 16 09 14 Wed 17 09 14 Develop project schec 3 days Tue 16 09 14 Thu 18 09 14 Develop project 3 days Tue 16 09 14 Thu 18 09 14 management plan Create report2 3 days Tue 16 09 14 Thu 18 09 14 4 Prepare Requirement 3days Thu 18 09 14 22 09 14 Define Risk 1day Thu 18 09 14 Thu 18 09 14 Define Requirement 2 days Fri 19 09 14 22 09 14 Define 2 days Fri 19 09 14 Mon 22 09 14 non function Define Function 2 Fri 19 09 14 22 09 14 requirement Define external 2 days Fri 19 09 14
37. heral interface data SPI MOSI 17 pull down input CMOS input with Chip select for serial peripheral SPI CSB 16 weak internal interface active low pull up CMOS input with weak internal SPI CLK 19 Serial peripheral interface clock pull down 38 SPI MISO 18 CMOS input with weak internal Serial peripheral interface data pull down Output USB USB 1 8V PCM_CLK PCM_OUT 15 Bi Directional Bi Directional Default 1 8V internal 1 8V external power supply input power Bi Directional CMOS output PCM_IN PCM_SYNC 6 7 8 CMOS Input Bi Directional 39 0C O NN w NM 14 15 PCB Layout iij 22 2 3 4j 16 17 18 10 5 13mm HC 06 main pins 19 20 21 1 a s 25mm m 13 1 75mm Nie WW 10 11 12 13 14 16 17 18 19 RTS PCM PCM PCM PCM AIO RESET 3 GND NC USB D CSB MOSI MISO CLK CLK OUT IN NAME SYNC NO PIN NAME 20 USB D 21 GND 22 GND 23 PIOO 24 PIOI 25 PIO2 26 P103 21 P104 28 PIOS 29 P106 30 31 PIOS 32 P109 33 PIOIO 34 P1011 40 3377 TX 1 2 KEY 26 LED 24 3 3V 12 GND 13 Package size information b Connect the module to 3 serial port of MCU microprocessor control
38. ial convertor connected to the header RTS when using an FTDI cable DTR when using the Spark fun breakout board When this line 1 asserted taken low the reset line drops long enough to reset the chip The Arduino software uses this capability to allow you to upload code by simply pressing the upload button the 30 Arduino environment This means that the boot loader can have a shorter timeout as the lowering of the reset line can be well coordinated with the start of the upload This setup has other implications When the Pro Mini 1 connected to either a computer running Mac OS X or Linux it resets each time a connection 1s made to it from software via USB For the following half second or so the boot loader 1 running on the Pro While it is programmed to ignore malformed data 1 e anything besides an upload of new code it will intercept the first few bytes of data sent to the board after a connection 1s opened If a sketch running on the board receives one time configuration or other data when it first starts make sure that the software with which it communicates waits a second after opening the connection and before sending this data 9 2 2 7 574 The 74HC HCT574 are octal D type flip flops featuring separate D type inputs for each flip flop and non inverting 3 state outputs for bus oriented applications A clock CP and an output enable OE input are common to all flip flops The 8 flip flops will store the s
39. ibes the layout of application and some alternative design of the user interface 25 System Architectural Design Android Bluetooth i Modul board Led Cube Sound Sensor VIII Hardware Design 9 1 Main component list umm MN NEN meme Ro eem 00 _ 0009 26 8 2 Hardware details 8 2 1 Arduino pro mini a Schematic UCC RAL 1 2 3 4 5 6 A 7 GND GND C 10 MO 11 GND 010 12 UCC JP6 UCC Sass gt lt 290 PcecRnRESET 23 52 52 2 OT 2 1 PC2 lt ADC2 gt 14 ucc 22 8 _6 2 Mm UCC PC4 lt ADC4 SDA gt E E ss AR AREF ADCS ADC GND MHZz PDOCRXD O 1uF PB6 lt XTAL1 TOSC1 gt PDACTXD 22 2 2 PD3 lt INT1 gt PD4CXCK TO 5 5 lt 1 gt Ti BIS UCC PD7 lt AIN1 gt 08 c3 PB1 lt OC1A gt T B PB2 lt SS 0C1B gt wale FTDI Basic Q 1uF PB3 lt MOSI 0C2 gt PB4 lt MISOD aS MISO PB5 lt SC
40. ion Server Every week on Tuesday there will be have a meeting when each team member report to the whole team what he did the previous week then all member plan the schedule for upcoming week and solve the issues together Communication Channels e Email Gmail e Instant message Skype e Communication forum Facebook private group e Phone in urgent emergence phone is a good ways to share the idea e Face to face meetings 2 3 2 Communication with supervisor Team meets the supervisor every week at Sunday follow time table in Fap fpt edu vn to get advices for issues guide for writing and correcting reports and plan for the next week When having troubles in project project manager collects ideas from members and send email or have a meeting with supervisor to get instructions or advices By the report supervisor will keep in touch with project 18 2 4 Codding rule Android code will follow java coding rule http www oracle com technetwork java codeconvtoc 136057 html Arduino code will follow C coding rule http users ece cmu edu eno coding CCodingStandard html 19 Chapter 3 System Requirement III External Interface Requirements 3 Use Interface Scan device Connect Select effect 20 Add text effect Select effect Sang to play Select effect ik 3 2 Hardware interface PC must have RS232 port or usb port to connect module Performance at least 40 GB free
41. ireframe box would flash briefly in the original rotation before being displayed rotated 6 Draw the wireframe box in its original rotation side of the box is always at 0 0 0 while the other travels along the diagonal 7 Do the rotations If flip 1s greater than 0 the cube 15 turned upside down rot takes a number from 0 to 3 where 0 15 0 degrees of rotation around Z and 3 15 270 degrees To get 270 degrees we simply mirror around X and Y 9 Enable interrupts to display the now rotated cube 9 Delay for a while then clear the cube The other function involved the wireframe box effect 1 effect box woopwoop The name woopwoop just sounded natural when we first saw the effect rendered on the cube The woopwoop function only does one iteration and takes two arguments delay and grow If grow 1 greater than 0 the box starts as a 2x2x2 box and grow to a box 65 Here 1 how it works 1 Clear the cube by filling the buffer with 0x00 2 For loop from 0 to 3 3 Set to 1 If grow 1s specified we set it to 3 1 to reverse it 4 Draw a wireframe box centered along the diagonal between 0 0 0 and 7 7 7 One corner of the box uses the coordinates 4 11 on all axes moving from 4 7 The other corner uses 3 on all axes moving from 3 0 5 Delay for a while then clear the cube 7 Filip filop Use effect plane flip to draw a plane at the top the cube then flip it by one side of that plane Con
42. kK gt K GND GND ATMEGA168 C E v JP2 Released under the Creative Commons Attribution Share Alike 3 0 License GN httpz creativecommons org licenses bu sa 3 0 Original Arduino Mini Design by Team Arduino Arduino Pro Mini Design by Spark Fun Electronics 27 b Overview The Arduino Pro Mini is a microcontroller board based on the 168 It has 14 digital input output pins of which 6 can be used as PWM pulse width modulation outputs 8 analog inputs an on board resonator a reset button and holes for mounting pin headers A six pin header can be connected to an FTDI cable or Spark fun breakout board to provide USB power and communication to the board c Power The Arduino Pro Mini can be powered with an FTDI cable or breakout board connected to its six pin header or with a regulated 3 3V or 5V supply depending on the model on the pin There 15 a voltage regulator on board so it can accept voltage up to 12VDC If you re supplying unregulated power to the board be sure to connect to the pin on not The power pins are as follows RAW For supplying raw voltage to the board The regulated 3 3 or 5 volt supply e GND Ground pins d Memory The ATmegal68 has 16 KB of flash memory for storing code of which 2 KB is used for the boot loader It has KB of SRAM and 512 bytes of EEPROM which can be read and written with the EEPROM library
43. late how to connect to led cube through in out port using the core of Arduino pro mini ATMEGA chip with set up crystal 44 L1 TEXT ap TF ncs r ia n E m B ee o re E Emp 4 fa fa BS BSS I sy yT E Us TEXT Ra r i22 c E mg mj mp m R AAA A ES rdHC5r4 TEXT o cn gt 85 GE ru mimg m UB E c n n2 ce m tud iz BL EE mg mg ED a Pa ea 74 574 LI TEXT PE mmm mE EE LE E Emp m uc ceo cm ni ES E Br cA E mp gt LIB 0 oo Tu ies cA E Em mp m In 1 layer led each row of 8 leds will be controlled by IC 74HC574 45 74HCT138 TEXT d 8 IC 74 5 74 will be controlled by IC 74 HCT138 46 YCC
44. le Connect part of project part of task creat plan for every week and report result Android coder Arduino coder Welding circuit Arduino coder create Requirement Program control function for the LED cube effect via Arduino Android and Arduino Bluetooth connection 16 Research function for control LED cube Android coder Tester 2 2 3 Risk management plan Risk description Probability Effect Action 2 Project manager Serious lack of Very High management skill Don t understand Very High Serious about single circuit module and design hardware Cannot control High Serious member to follow schedule Break component High Tolerable while processing Team member Moderate Tolerable may get accident sick family problem Improve management skill Search about principle on internet buy some circuits module and redesign mainboard Keep touch with all member tracking task by report Buy spare components check carefully before testing Estimate buffer time in project plan and require all team member to inform team 1 week 17 2 3 Communication plan 2 3 1 Team project communication plan Team meeting online 3 times per week at 7 00pm to 9 30 pm Tuesday Thursday and Saturday meeting offline at 2 00 to 5 00 pm Sunday afternoon at DatPX s room Implement Phase All members implement all task that PM and technical leader assigned on TFS Team Foundat
45. led at positions x 0 y 4 z 0 x 0 y 5 z 0 x 1 y 4 z 0 x 1 y 5 z 0 Delay a period of time then turn of all led of cube then delay a period time Level 6 men If the signal returns of between 752 to 768 assign a value to a variable 1 is from 0 to 7 turn on led at positions x 4 y 4 z 1 4 5 7 1 5 4 7 1 95 5 7 1 If the signal returns of between 736 to 752 assign a value to a variable 1 is from O to 6 turn on led at positions 4 4 7 1 x 4 y 5 z 1 X 5 y 4 Z 1 X 5 y 5 Z 1 If the signal returns of between 720 to 736 assign value to a variable i is from 0 to 5 turn on led at positions 4 4 7 1 4 5 7 1 5 4 7 1 95 5 7 1 73 If the signal returns of between 704 to 720 assign a value to a variable 1 is from 0 to 4 turn on led at positions 4 4 7 1 4 5 7 1 5 4 7 1 95 5 7 1 If the signal returns of between 688 to 704 assign a value to a variable i is from 0 to 3 turn on led at positions 4 4 7 1 4 5 7 1 5 4 7 1 95 5 7 1 If the signal returns of between 672 to 688 assign a value to a variable i is from 0 to 2 turn on led at positions 4 4 7 1 4 5 7 1 5 4 7 1 95 5 7 1 If the signal returns of between 656 to 672 assign a value to a variable i is from to 1 turn on led at positions 4 4 7 1
46. n Testing The Iterative and 1ncremental model 1s a combine of Iterative model and Analysis amp Design Incremental model it has advantages Generates working product quickly and early during the product life cycle Easier to test and debug during smaller iterations Easier to manage risks because risky pieces are identified and handled during their iterations 12 More flexible less costly to change scope and requirements 2 1 2 Roles and Responsibilities Review product and test Keep track of process of each member Ho ng Keep in touch with supervisor Leader Android code to control effect Write report Code on chip Atemega 328 on arduino kit eee EN Researh about bluetooth connection Nguy n Duc Anh Write report Design circuit Nguy n Anh T i Design algorithms Developer Test system Write report Welding circuit and LED Pham Xuan Dat Learn how to use arduino Developer Write report Phan Duy H ng 0975597339 HungPD fpt edu vn Std Hoang Ngoc SE02006 0166639992 LocHNSE02006 fpt edu PM develo 1 Loc 5 02273 0985539411 TaiNASE02273 Gfpt edu Developer Std Nguy n Anh vn designer tester Std Nguy n SE02824 0935524011 AnhNDSEO2824 Gfpt edu Designer 3 Anh Developer Std SE02109 0169521495 DatPXSE02109 fpt edu Developer t 4 Pham 5 desi
47. of between 368 to 384 assign a value to variable i is from 0 to 7 turn on led at positions 2 2 7 1 3 2 7 1 2 3 7 1 3 3 7 1 If the signal returns of between 352 to 368 assign value to a variable 1 is from 0 to 6 turn on led at positions 2 2 7 1 3 2 7 1 2 3 7 1 3 3 7 1 If the signal returns of between 336 to 352 assign a value to a variable i is from 0 to 5 turn on led at positions 2 2 7 1 3 2 7 1 2 3 7 1 3 3 7 1 If the signal returns of between 320 to 336 assign a value to a variable i is from 0 to 4 turn on led at positions 2 2 7 1 x23 y22 z21 x22 y23 zz1 x23 y23 721 If the signal returns of between 304 to 320 assign a value to a variable 1 is from 0 to 3 turn on led at positions 2 2 7 1 3 2 7 1 2 3 7 1 3 3 7 1 If the signal returns of between 288 to 304 assign a value to a variable i is from 0 to 2 turn on led at positions 2 2 7 1 3 2 7 1 2 3 7 1 3 3 7 1 70 If the signal returns of between 272 to 288 assign a value to a variable 1 is from to 1 turn on led at positions 2 2 7 1 3 2 7 1 2 3 7 1 3 3 7 1 If the signal returns of between 256 to 272 turn on led at positions x 2 y 2 z 0 x 3 y 2 z 0 x 2 y 3 z 0 x 3 y 3 z 0 Delay a period of time then turn of all led
48. onally some pins have specialized functionality A4 SDA and 5 SCL Support TWI communication using the Wire library 29 There 15 another pin board Reset Bring this line LOW to reset the microcontroller Typically used to add a reset button to shields which block the one on the board see also the mapping between Arduino pins and 168 ports f Communication The Arduino Pro Mini has a number of facilities for communicating with a computer another Arduino or other microcontrollers The 168 provides UART TTL serial communication which 15 available on digital pins 0 RX and TX The Arduino software includes a serial monitor which allows simple textual data to be sent to and from the Arduino board via a USB connection A Software Serial library allows for serial communication on any of the Pro Mini s digital pins ATmegal68 also supports I2C TWI and SPI communication The Arduino software includes a Wire library to simplify use of the I2C bus g Automatic software reset Rather than requiring a physical press of the reset button before an upload the Arduino Pro Mini is designed in a way that allows it to be reset by software running on a connected computer One of the pins on the six pin header is connected to the reset line of the 168 via 100 nanofarad capacitor This pin connects to one of the hardware flow control lines of the USB to ser
49. tate of their individual D inputs that meet the set up and hold time requirements on the LOW to HIGH CP transition When OE is LOW the contents of the 8 flip flops are available at the outputs When OE is HIGH the outputs go to the high impedance OFF state Operation of the OE input does not affect the state of the flip flops 31 Table function INTERNAL OUTPUTS MODES FLIP FLOPS load and read register L H load register and Z Z disable outputs 3 ourrurs 7293867 Functional diagram NOTE H HIGH voltage level h 2 HIGH voltage level one set up time prior to the LOW to HIGH CP transition L LOW voltage level LOW voltage level on set up time prior to the LOW to HIGH CP transition Z HIGH impedance OFF state 7 LOW to HIGH clock transition 32 b Logic diagram 0g D1 02 03 04 05 07 V V V V 7 V Q CP FF5 FF7 FFB gt 155 3 Q 8 Qs CP FF4 7 ix Lx Ly Qo Q 0 7293888 2 Logic diagram 9 2 3 74HC138 The 74HC HCT 138 decoders accept three binary weighted address inputs A2 and when enabled provide 8 mutually exclusive active LOW outputs YOto Y7 The 138 features three enable inputs two active LOW ElandE2 and one active HIGH E3 Every output will be HIGH unlessElandE2are LOW and E31s HIGH This multiple enable function allows easy parallel expansion
50. tinuous flip it all over the cube How it works 1 Loop through the iteration counter 2 Start now plane at the top 3 Determine next plane randomly which is not as same as now plane and opposite side of now plane 4 Flip it using effect plane flip 5 Set now plane as next plane 9 TelcStair Fill or clear the cube by a diagonal cube 66 How it works 1 Loop x from 16 to 0 or vice if invert 2 Fill smallest led cube size 1 to biggest size 8 one by one 3 Clear from smallest led cube size to biggest size 8 one by one 9 Linespin Draw a set of lines in 3d space then spin its around a pivot in center of the cube Each line spin with different speed to make an awesome 3d animation How it works 1 Loop through the iteration counter 2 For loop z from 0 to 7 3 Calculate top point and bottom point position in space 4 Draw a line in space by using line_3d 5 After drawing clear the cube by filling the buffer with 0x00 10 Effect text String fly The function stringfly2 takes any ASCII string and displays it as characters flying through the cube It starts by placing the character at the back of the cube then uses the shift function to shift the cube contents towards you making the text fly 67 11 Music visualization Boombox Level 1 mew If the signal returns of between 114 to 128 assign a value to a variable i is from 0 to 7 turn on led at positions x 0 y 0 z 1 x 0 y
51. ugh specialized IC which 1 controlled by using a mini Pro Kit Arduino using 328 AT mega chip Users will control these LEDs by using a smartphone transmitting signals to the Arduino via Bluetooth mode 1 2 3 Existing Projects In the current market there are lot of similar products however our product is exceptional and 1 a breakthroughs because this allows users to customize the effects of LED light box LED cube via a smartphone with the intuitive interface E g http www aliexpress com item Free shipping 3 d 8 8 8 cubic DIY light suite USES stm32 chip control technology 2028828256 html A gt 1 hd 6 gt EN 2 4 Itt V Iex ress Th lh 7 00089 E LI EE Product Effect a very beautiful 3d effect display however LED via software loaded on the PC by a quite complicated connection 15 suitable for ordinary users In this project we use LED cube with dimension of 8x8x8 and 512 LED lamps The effects will be pre loaded the Arduino and the user will select by the software on their smartphones the signal 1s transmitted to the Arduino Pro mini kit via Bluetooth module HM 11 Arduino Pro Mini processes the signal and controls 8 IC 74HC574N which controls each LED layer and IC 74 138 to combine together these layers to create the desired effect
52. uino protocol to control LED and effect we using on LED Cube Java environment using Eclipse to develop an android app which can send data to LED Cube for changing effect though Bluetooth 10 1 5 Problem definition 1 5 1 Name of this Capstone Project LED cube remote LCR 1 5 2 Problem Abstract LED had been used in human life for a long time in entertaining and advertising The combination of hundreds of LED will make an excited message or effect A single LED can only turn on and off light and dark But to controll turning on and off of many LED we could have a running message rain dropping bubble or any visualization human could imagine For example LED was used to build a big screen give more stage effect for big out door show a huge attractive public advertisment in the street Our project give a solution to controll a LED cube through smart phone By a visual simple interface using it would be very easy even with a general user It could be use for home or advertisement business 1 6 Reference http banlinhkien com http www aliexpress com http www instructables com id Led Cube 8x8x8 11 Chapter 2 PROJECT MANAGEMENT PLAN II Project management plan 2 Project organization 2 1 1 System process model The process model used for this project 15 the Iterative and incremental development process model Requirements Implementation Planning Deployment Initial Planning Evaluatio
53. x 7 y 2 z 0 x 7 y 4 z 0 Delay a period of time then turn of all led of cube then delay a period of time Level 5 If the signal returns of between 624 to 640 assign a value to a variable i is from 0 to 7 turn on led at positions 0 4 7 1 x 0 y 5 z 1 x 1 y 4 z 1 x 1 y 5 z 1 If the signal returns of between 608 to 624 assign a value to a variable i is from 0 to 6 turn on led at positions x20 y24 zz1 x 0 y 5 z 1 x 1 y 4 z 1 x 1 y 5 z 1 If the signal returns of between 592 to 608 assign a value to a variable 1 is from 0 to 5 turn on led at positions x20 y24 zz1 x 0 y 5 z 1 x 1 y 4 z 1 x 1 y 5 z 1 If the signal returns of between 576 to 592 assign a value to variable i is from 0 to 4 turn on led at positions x20 y24 zz1 x 0 y 5 z 1 x 1 y 4 z 1 x 1 y 5 z 1 72 If the signal returns of between 560 to 576 assign a value to a variable i is from 0 to 3 turn on led at positions 0 4 7 1 x 0 y 5 z 1 x 1 y 4 z 1 x 1 y 5 z 1 If the signal returns of between 544 to 560 assign value to a variable i is from 0 to 2 turn on led at positions 0 4 7 1 x 0 y 5 z 1 x 1 y 4 z 1 x 1 y 5 z 1 If the signal returns of between 528 to 544 assign a value to a variable 1 is from to 1 turn on led at positions x20 y24 zz1 x 0 y 5 z 1 x 1 y 4 z 1 x 1 y 5 z 1 If the signal returns of between 512 to 528 turn on
Download Pdf Manuals
Related Search
Related Contents
Bedienungsanleitung Samsung Galaxy Mini GT-S5570 Siemens 7 User's Manual Kopie - copie - Operator's Manual PTS 4V PTK 4 液 体 硫 酸 バ ン ド Copyright © All rights reserved.
Failed to retrieve file