Building a simple memory and co-ordination toy

Assignment Help Computer Engineering
Reference no: EM131478505

This assignment is concerned with building a simple memory and co-ordination toy using the STM32F3 Discovery board

The board should do the following:

When powered on, the 8 LEDs should spin in a circle until the blue button is pressed.

When the button is pressed, a random sequence of LEDs will light up. Only LD3, LD7, LD10, and LD6 (PE9, PE11, PE13 and PE15) can be in the sequence and each LED in the sequence must be different to the previous one. Each LED must be lit for 500ms. The sequence cannot be the same each time the program is run.

After the sequence has been played, the user has to tip the board to recreate it. Initially all the LEDS will be off. One of the 4 LEDs will light up when the board is tipped towards it (use a threshold of 200 in the x and y direction from the accelerometer with a 2G full scale sensitivity). When the accelerometer detects that the board has been tipped towards an led for more than 500ms it will go off. If it is the correct LED for the sequence, the next LED in the sequence will be detected until they are all correct. If an incorrect LED is detected, the correct LED will be lit for 500ms and the toy will return to the initial spinning loop.

The initial sequence will show 3 LEDs, if the sequence is recreated correctly, a sequence of 4 LEDs will be shown, then 5, then 6 and finally 7. If the user recreates a 7 LED sequence, all the LEDs will flash repeatedly on and off for 200ms until the button is pressed.

You must submit a single file which will compile using the online mbed compiler.

Attachment:- Assignment File.rar

Reference no: EM131478505

Questions Cloud

Discuss how the over valuation of properties contributed : Discuss how the over valuation of properties contributed to the housing bubble associated with the financial crisis of 2007-2008 and how CRAs.
Transport fans to future games : The Hawkeye Charter Inc., (HCI) has decided to acquire a new bus to transport fans to future games away from Iowa City
Review the case - sequential tests of educational progress : Select two tests about which to write your review. The first test must be selected from List A and the second test must be selected from List B.
Explain how you will integrate lean operations : Identify the tools, techniques, and technologies used in the design of your production plan and explain how you will integrate lean operations and lean services in your production plan.
Building a simple memory and co-ordination toy : This assignment is concerned with building a simple memory and co-ordination toy using the STM32F3 Discovery board. The initial sequence will show 3 LEDs
Financial analysis with microsoft excel : Filter the dates so that only the last five years area displayed in the pivot table and pivot chart. This will require a custom date filter.
Shares of commonwealth bank of australia : Invest $4000 in the shares of Commonwealth Bank of Australia (listing code: CBA.AX) and $6000 in the shares of Myer Holdings Ltd (listing code: MYR.AX).
Does your state lean republican or democrat : Describe your state. What are its major cities? Is it predominantly rural or urban? Does your state have important industry, finance, and tourist centers?
Describe how credit risk embedded in corporate debt : Summarize three measures that the ISDA undertook to mitigate the credit risk inherent in OTC derivatives.

Reviews

len1478505

4/29/2017 5:04:40 AM

Assignment Work with following details. Subject: computer architecture. Need help on my assignment. The connections to the VGA cable are described in comments at the start of video.c. Marks will be awarded for well written programs which correctly implement the toy or asteroids game. Use comments in your code to document it. Marks will be subtracted for plagiarism, late submission and bad documentation. If you want a more challenging assignment 3 and have a VGA cable and monitor, as an alternative to the above you can submit a port of the classic arcade game, Asteroids.

Write a Review

Computer Engineering Questions & Answers

  Transmitting the rtp stream

Consider that a sender transmits a silence suppressed the RTP stream of G.711 audio to the receiver (G.711 refers to the name of standard for 64Kbps PCM we discussed in class).

  What is the end-to-end delay to send all packets in this

suppose that a message is segmented into 3000 packets with each packet being 1000 bytes. suppose there is exactly one

  Describe the features of the two packages

Describe the features of the two packages. If you were a project manager, which one would you use to help support your job? Why?

  Write down a for loop which will display all numbers that

write a for loop that will display all numbers that are multiples of 10 from 0 to 100 and then display the average of

  What are tools available in market in the field of big data

What are the tools available in the market in the field of big data? Why considering Had0op? Searching for good institution and getting trained? How to apply job and passing through the procedure of job interview?

  A program on a registration application for a school

a program on A registration application for a school

  Define the current instruction format

What is the maximum number of I/O devices that can be interfaced to ASC, given its current instruction format?

  Cashregister requires to support a method void undo()

imagine the CashRegister needs to support a method void undo() that undoes the addition of the preceding item. This enables a cashier to quickly undo a mistake. What instance variables should you add to the CashRegister class to support this modif..

  What is printed by the given program

What is printed by the following program? Suppose the input is the following: Miller 34 340 #include #include using namespace std; const int PRIME_NUM = 11; int main () { const int SECRET = 17; string name

  Introduce relationship sets or additional entity sets

Introduce relationship sets or additional entity sets

  Case study asymmetric and symmetric encryption

Case Study Asymmetric and Symmetric Encryption

  Make a public static method named comparescores

Write down a public static method named compareScores that takes two doubles as its arguments and returns the integer value of -1 if the first argument is less than the second, 0 if the first argument is the same as the second, and +1 if the first..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd