0% found this document useful (0 votes)
46 views

Microprocessor Systems Laboratory Projects Description and Requirements

This document describes 36 microcontroller-based electronics projects with requirements for students in a microprocessor systems laboratory course. The projects involve building devices such as clocks, timers, calculators, controllers and sensors using components like LCD displays, LED displays, buttons and integrated circuits. The requirements for each project specify the necessary hardware, software functionality and user interface. Examples of projects include an alarm clock, chess clock, microwave controller and electronic timetable that displays train departure times.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views

Microprocessor Systems Laboratory Projects Description and Requirements

This document describes 36 microcontroller-based electronics projects with requirements for students in a microprocessor systems laboratory course. The projects involve building devices such as clocks, timers, calculators, controllers and sensors using components like LCD displays, LED displays, buttons and integrated circuits. The requirements for each project specify the necessary hardware, software functionality and user interface. Examples of projects include an alarm clock, chess clock, microwave controller and electronic timetable that displays train departure times.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

Microprocessor Systems Laboratory

Projects description and requirements


Content 29. Melody generator and composer ....................................................... 18
1. Microwave controller ............................................................................ 3 30. Remote information table .................................................................. 18
2. Electronic Time Table ............................................................................ 3 31. Remote light controller ...................................................................... 19
3. Chess clock ........................................................................................... 4 32. Electronic dice ................................................................................... 19
4. Alarm Clock with LCD character display ................................................. 4 33. Voltmeter .......................................................................................... 20
5. Alarm Clock with LED display................................................................. 5 34. Morse characters generator ............................................................... 20
6. Alarm Clock with LED Dot Matrix MAX7219 ........................................... 5 35. Ultrasonic distance meter .................................................................. 21
7. Exam timer with progress bar ................................................................ 6
8. Code Lock with keyboard ...................................................................... 6
9. Code lock with chip card ....................................................................... 7
10. Stop Watch with 7 segment LED display............................................... 7
11. Stop Watch with LCD character display ................................................ 8
12. Stop watch with LED Dot-Matrix display .............................................. 8
13. Simple Calculator ................................................................................ 9
14. Lotto number generator ...................................................................... 9
15. Microwave controller ........................................................................ 10
16. Microwave controller ........................................................................ 10
17. Microwave controller ........................................................................ 11
18. Timer with clock on LCD .................................................................... 11
19. Simulator of dweller activity.............................................................. 12
20. Simulator of dweller activity.............................................................. 12
21. Clock with perpetual calendar based on PCF8583 ............................... 13
22. Thermometer with DS1621................................................................ 13
23. Thermometer with DS18B21 ............................................................. 14
24. Thermostat with DS18B21 ................................................................. 14
25. Remote control receiver (RC-5 code).................................................. 15
26. Blackjack (21) game machine ............................................................. 16
27. „MIND” game ................................................................................... 17
28. 8xON/OFF outputs controlled using RS232 serial interface ................. 17
1. Microwave controller 2. Electronic Time Table
1.1. Used Hardware: 2.1. Used Hardware:
7 seg. LED display; Push buttons, LEDS LCD display (HD44780) 4 lines; Push buttons, LEDS

1.2. Requirements: 2.2. Requirements:


1. Pressetable timer with resolution of 1 sec and operating range from 1. Embedded clock in 24h format with weekdays
10 sec to 99min and 50 sec. 2. Clock settings
2. Time settings: a. Safe entry with question “Clock set?”
a. There are 3 keys defined +10 sec, +1min, +10min b. Key functions: next and previous field (hr, min, weekday), In-
b. Time wraps around e.g. 0:00 – 0:10 - …- 0:50 – 0:00 crement and decrement, escape/cancel and enter/accept keys
c. There are not carry from currently set (incremented) position to c. Currently selected position is blinking
the more significant positions d. During minute increment seconds and prescaler are reseted (pre-
3. Operation Start and Stop buttons cise time setting)
a. Pressing START in stop mode starts time counting only if the e. Clock is normally running during setup
preseted time is grater than 0:00 3. Time table data stored in internal EEPROM (4kB)
b. Pressing START in operating mode increments the time by 1 min. a. Data stored in records with pointer to the next one
c. Pressing STOP in run mode stops operation b. Organize memory for automatic record assignment and de-
d. Pressing STOP in stop mode clears the time to 0:00 assignment
4. Magnetron power control by PWM with base period of 20 sec in c. Linked list form (can be bi directional) current record points to
range from 10% to 100% with 5% step. Current power settings two neighboring records (previous and next)
should be displayed with LED bargraph. During settings power is d. Extended information about time table (like runs on working
displayed on 7-seg LED display days, fast train/bus, …)
5. Time and power information displayed on 7-segment LED display 4. Information about departures from start selected start and arrival to
6. Safety: door opening detection (stops immediately) destination for at least 4 different places selectable by user.
5. Information displayed in 4 line LCD dot-matrix display in normal
operation
a. Clock
b. Previous connection, Nearest connection, Next connection
3. Chess clock 4. Alarm Clock with LCD character display
3.1. Required Hardware: 4.1. Required Hardware:
LCD display (HD44780); Push buttons LCD display (HD44780); Push buttons, LEDS

3.2. Requirements 4.2. Requirements


1. Real Time Clock with settings function 1. Real Time Clock with settings function
a. Safe entry with question Clock set? Return after timeout e.g. 10 a. Safe entry with question Clock set? Return after timeout e.g. 10
sec. sec.
b. Key functions: next and previous field (hr, min, weekday), In- b. Key functions: NEXT and PREVIOUS field (hr, min, weekday),
crement and decrement, escape/cancel and enter/accept keys INCREMENT and DECREMENT, escape/cancel and enter/accept
c. Currently selected position is blinking keys
d. During minute increment seconds and prescaler are reseted (pre- c. Currently selected position is blinking
cise time setting) d. During minute increment seconds and prescaler are reseted (pre-
e. Clock is normally running during setup cise time setting)
2. Operation mode selection up e. Clock is normally running during setup
a. Reverse time counting or increment time counting 2. Alarm functions:
3. Two up timers and move counters with last move time and total f. Alarm is set in a way similar as real time clock after pressing
game time for each player ALARM SET button
4. Options for time limited moves. Players can set maximal time for 3. Alarm modes
single move. Timer displays remaining time to make a move. a. Daily
5. Information displayed on 2x16 LCD dot matrix display b. From MON to FRI
c. From MON to SAT
d. From SAT to SUN
e. Once per week with user selectable day of week
5. Alarm Clock with LED display 6. Alarm Clock with LED Dot Matrix MAX7219
5.1. Required Hardware: 6.1. Required Hardware:
LED 7 seg display; Push buttons, LEDS LED dot matrix display (MAX7219); Push buttons, LEDS

5.2. Requirements 6.2. Requirements


1. Real Time Clock with settings function 1. Display of current time,date and alarm time
a. Key functions: next and previous field (hr, min), Increment and a. Due to limited space (8x32 dots) the display scroll should be used
decrement, escape/cancel and enter/accept keys time in format hh:mm is displayed for about 3 -5s than display
b. Currently selected position is blinking switches to scroll mode displaying hh:mm:ss wd dd.mm.yy
c. During minute increment seconds and prescaler are reseted (pre- b. On user request alar time is displayed starting from hh:mm of in
cise time setting) scrolling mode
d. Clock is normally running during setup c. Implement scrolling by one pixel
2. Alarm functions 2. Real Time Clock with settings function
a. In normal mode real time is displayed. After pressing ALARM a. After pressing “SET CLOCK” button clock can be set
Button alarm time is displayed for 5 sec (alarm display mode) b. Key functions: “NEXT” (hr, min), INCREMENT and DECRE-
then clocks returns to the normal mode MENT keys
b. Setting alarm time similar as setting real time clock. Alarm. Sup- c. Currently selected position is blinking
posing that the clock was previously in “alarm display mode” d. During minute increment seconds and prescaler are reseted (en-
c. SNOOZE – after activating alarm, pressing SNOZE button causes abling precise time setting)
temporarily turning of alarm signal and the alarm is activated e. Clock is normally running during setup function
again after 9 minutes f. Date is set by walking around with prompt d:xx, m:xx, y:xx –
3. Display brightness control with automatic display dimming from range 2000 – 2099. The day of the week is automatically deter-
22:00 to 6:00 with when keys not pressed for longer than 30sec mined by system
3. Alarm functions
a. Setting alarm time should be implemented similarly to settings of
real time clock.
b. ALARM (active /not active)
c. SNOOZE – after activating alarm, pressing SNOZE button causes
temporarily turning of alarm signal and the alarm is activated
again after 9 minutes
7. Exam timer with progress bar 8. Code Lock with keyboard
7.1. Required Hardware: 8.1. Required Hardware:
LCD display (HD44780); Push buttons 4x4 keyboard; 7seg LED display; Push buttons, LEDS

7.2. Requirements: 8.2. Requirements:


1. Real time clock 1. Service of matrix keyboard with 4x4 layout
a. Implement settings of clock 2. User presetable code with length from 4 up to 6 digits
2. Programming with use of rotary encoder 3. Door unlock control with time out (~15sec)
a. Rotary encoder is used for selecting or setting while its pushbut- 4. Alarm after attempts 3 of entering invalid code
ton for accepting selection or settings 5. Opened door alarm – when opened door contact remains intact for
3. Programmable timer longer than programmed time (assume 20 – 30 sec. for demonstra-
a. Settings in range up to 9:59:00 with resolution of 1 minute tion)
b. To speed up the settings separately are set minutes units, tenths 6. In “preset code” mode code should be displayed on LED display; In
and hours “normal mode” during entering the code “-“ symbols should be
c. After completing the settings timer gets in ready state displayed (instead of digit)
4. When timer is running it displays
a. remaining time along with progress bar
b. passed time along with progress bar
c. current clock time
5. Alarm notification in programmable range before end of time
9. Code lock with chip card 10. Stop Watch with 7 segment LED display
9.1. Required Hardware: 10.1. Required Hardware:
7seg LED display; Push buttons, LEDS, Chip card slot, chip cards LED 7 segment display; push buttons

9.2. Requirements: 10.2. Requirements


1. Chip card serial number reading 1. Required resolution 0.01s
2. Card insertion/removal detection 2. Max measured time 99 min 99.99s
3. Master card that is privileged to add and remove cards to/from sys- 3. Lap time queue with defined size at compilation time.
tem 4. Push buttons:
4. Door unlock function for 15 sec. a. Buttons: START ; STOP; LEAP; RESET
5. Opened door alarm when doors are opened longer than 1 min. 5. Operation overview
a. After reset stopper gets in READY state with display of 0.00.00
b. START – starts the time measurement placing in RUN mode
c. STOP – stops the time measurement placing in STOP mode
d. Pressing the LAP button at run time stores the current measured
time in the queue. Consecutive pressing LAP stores next leap
times. When queue gets full the oldest record become overwrit-
ten by the new one
e. RESET resets and stops time measuring if stopper is running.
Place in READY state to next measurement cycle
f. In STOP mode in closed loop are displayed recorded leap times
and total time. Each result is preceded with shortly displaying of
its label. For leap time assume Lxx where xx denotes the queue
position. The total time is preceded with totAL (as can be dis-
played with use of 7 segment display)
g. Suppress printing nonsignificant zeros
11. Stop Watch with LCD character display 12. Stop watch with LED Dot-Matrix display
11.1. Required Hardware: 12.1. Required Hardware:
LCD display (HD44780); push buttons LCD 7 seg display (NEC7225); Push buttons, LEDS

11.2. Requirements 12.2. Requirements


1. Required resolution 0.01s 1. Required resolution 0.01s
2. Max measured time 99 min 99.99s 2. Max measured time 99 min 99.99s
3. Lap time queue with defined size at compilation time. 3. Lap time queue with defined size at compilation time.
4. Push button:. START, STOP, LAP, RESET 4. Use scroll mode for diplaying information that does not fit into one
5. Operation overview display
a. After reset stopper gets in READY state with display of 0:00:00 in 5. Operation overview
top line and empty leap time queue a. After reset stopper gets in READY state with display of 0.00.00
b. Pressing the START button starts the time measurement – RUN and empty leap time queue
mode. Display shows the current time. b. START – starts the time measurement placing in RUN mode
c. Pressing the RESET forces entering into READY state c. STOP – stops the time measurement placing in STOP mode
d. Pressing the STOP button enters the STOP mode d. Pressing the LAP button at run time stores the current measured
e. The LAP button operation depends on the state. time in the queue. Consecutive pressing LAP stores next leap
f. In RUN mode pressing the LAP records time of pressing and times. When queue gets full the oldest record become overwrit-
display it in the second line of a display. When lap queue gets ten by the new one
full the oldest result (at the beginning of a queue) is overwritten. e. In RUN mode pressing the LAP records time of pressing and
g. In the STOP mode pressing allows to review the leap time queue. display it in the second line of a display. When lap queue gets
Next to the displayed time the position in queue is displayed eg. full the oldest result (at the beginning of a queue) is overwritten.
LAP3: 1:29:31 f. In the STOP mode pressing the LAP allows to review the lap
h. Suppress printing nonsignificant zeros time queue. Next to the displayed time the position in queue is
displayed eg. L3_1.29.31
g. RESET resets and stops time measuring if stopper is running.
Place in READY state to next measurement cycle
13. Simple Calculator 14. Lotto number generator
13.1. Required Hardware: 14.1. Required Hardware:
4x4 keyboard; LCD character display 7 seg. LED display; Push buttons;

13.2. Requirements: 14.2. Requirements


1. Service of matrix keyboard with 4x4 layout 1. Modes: Lotto (6 of 49), MiniLotto (5 of 42), MultiMulti (20 of 80), the
2. Arithmetic operations implemented for BCD numbers addition and game is selected with the Game button,
subtraction 2. Create random generator based on fast running timer and push but-
a. Custom arithmetic implementation for BCD numbers with 16 ton press by user
digits integer and 16 digits fractional parts a. Implement methodology of item drawing without return – each
3. Assure proper inputing of data drawn item is removed from set for next drawing
4. Operation result and inputed number is displayed on 16 positions b. Use limited run range of counter to reflect decreasing number of
of LCD with use of smart and user friendly printing that suppreses items
insignificant leading zeros and keep right adjusted number e.g. c. Cast value to a set of available items
___12.35 (in case of negative numbers minus sign should precede 3. One numbers is generated when you press the button Play
first significant digit) a. During number drawing the last draw value is presented and
5. Use parsing concept of context free grammar (see Wirth syntax dia- remaining number to draw
grams). Immediate parsing of entered symbols should be performed b. After completing the drawing present the ordered set of drawn
6. Implement error handling and notifications numbers along with its index in set
15. Microwave controller 16. Microwave controller wit LED dot matrix
15.1. Used Hardware: 16.1. Used Hardware:
7 seg. LED display; Push buttons, LEDs LED dot matrix display (MAX7219), LEDs, Pushbuttons

15.2. Requirements: 16.2. Requirements:


1. Pressetable timer with resolution of 1 sec and operating range from 1. Pressetable timer with resolution of 1 sec and operating range from
10 sec to 99min and 50 sec. 10 sec to 99min and 50 sec.
2. Time settings: 2. Time settings:
a. There are 3 keys defined +10 sec, +1min, +10min a. There are 3 keys defined +10 sec, +1min, +10min
b. Time wraps around during settings for each key e.g. 0:00 – 0:10 - b. Time wraps around e.g. 0:00 – 0:10 - …- 0:50 – 0:00
…- 0:50 – 0:00 for +10 seconds button c. There are not carry from currently set (incremented) position to
c. There are not carry from currently set (incremented) position to the more significant positions
the more significant positions 3. Operation Start and Stop buttons
3. Operations of Start and Stop buttons a. Pressing START in stop mode starts time counting only if the
a. Pressing START in stop mode starts time counting only if the preseted time is greater than 0:00
preseted time is greater than 0:00 b. Pressing START in operating mode increments the time by 1 min.
b. Pressing START in operating mode increments the time by 1 min. c. Pressing STOP in run mode stops operation
c. Pressing STOP in run mode stops operation d. Pressing STOP in stop mode clears the time to 0:00
d. Pressing STOP in stop mode clears the time to 0:00 4. Magnetron power control by PWM with base period of 20 sec in
4. Magnetron power control by PWM with base period of 20 sec in range from 10% to 100% with 5% step. Current power settings
range from 10% to 100% with 5% step. Current power settings should be displayed with LED bargraph.
should be displayed with LED bargraph. During settings power is 5. Time and power information displayed on 7-segment LCD display
displayed on 7-seg LED display other ways time is displayed 6. Safety: door opening detection (stops immediately)
5. Time and power information displayed on 7-segment LED display
6. Safety: door opening detection (stops immediately time counting
and switches of magnetron driver)
17. Microwave controller 18. Timer with clock on LCD
17.1. Used Hardware: 18.1. Used Hardware:
Rotary encoder. LCD display (HD44780); Push buttons, LEDS LCD display (HD44780); Push buttons, rotary encoder, LEDS

17.2. Requirements: 18.2. Requirements:


1. Presetable timer with resolution of 1 sec and operating range from 10 1. Real time clock with timer function that controls up to 4 devices ac-
sec to 99min and 50 sec. tivity independently
2. Time settings: a. Real time clock in 24 hour format with week days
a. There are 3 keys defined +10 sec, +1min, +10min b. Timers can operate in modes daily, weekly, in selected range of
b. Time wraps around e.g. 0:00 – 0:10 - …- 0:50 – 0:00 days e.g MON-FRI, MON-SAT, SAT-SUN. Implement timer ena-
c. There are not carry from currently set (incremented) position to ble field and option for once triggering.
the more significant positions c. Switching on can select any combination of devices that are sup-
3. Operation Start and Stop buttons posed to be switched on
e. Pressing START in stop mode starts time counting only if the d. Switching off time can select any combination of 4 devices that
presseted time is greater than 0:00 are supposed to be switched off.
f. Pressing START in operating mode increments the time by 1 min. e. Insert notification about firing the timer
g. Pressing STOP in run mode stops operation 2. Devices relay system modeled by LED indicators
h. Pressing STOP in stop mode clears the time to 0:00 3. Manual device switch on and off and device and status readout
4. Magnetron power control by PWM with base period of 20 sec in 4. Timer controlled selected device switch on and off
range from 10% to 100% with 5% step. The power is set using Rotary 5. Implement user friendly interface.
encoder.
5. Time and power information displayed on Alphanumeric LCD dis-
play
6. Safety: door opening detection (stops immediately)
19. Simulator of dweller activity 20. Simulator of dweller activity
Used Hardware:
LCD Display (HD44780), Push buttons, LEDs 20.1. Used Hardware:
Requirements: 7 seg. LED Display, Push buttons, LEDs
1. The device consists of Real Time Clock with settings function
2. The time of starting activity simulation, and a total period of activity 20.2. Requirements:
can be programmed. 1. The device consists of a Real Time Clock with settings function
3. In a period of activity 3 outputs should be randomly activated and 2. The Time of starting activity, and total period of activity can be
deactivated. After finishing the activity period all outputs are deac- programmed.
tivated. 3. In a Period of Activity four outputs should be randomly activated
4. All parameters: Time, Start activity time, period length should be and deactivated. After finishing the activity period all outputs are
displayed on LCD display deactivated.
4. All parameters: Time, Start Activity Time, Activity Period length
should be displayed on LED display (Push buttons switch the dis-
played information)
21. Clock with perpetual calendar based on 22. Thermometer with DS1621
PCF8583
22.1. Used Hardware:
21.1. Required Hardware: DS1621 module, LED display, pushbuttons
LCD display (HD44780), pushbuttons, RTC (PCF8583)
22.2. Requirements:
21.2. Requirements 1. Software implemented I2C communication with DS1621
1. Real time clock with calendar based on PCF8583 2. Temperature measurement
2. I2C communication implemented as set of software procedures a. Measurement interval set within of predefined set {1, 2, 5, 10, 15,
3. Extended setup procedure with navigation keyboard consisting 20, 30}
from for arrows (up, down, left, right) and two action keys OK and b. In order to achieve higher resolution the measurement is started
Cancel and terminated
4. Calculation of week day based on entered year (2010 – 2099) month 3. Temperature measurement result conversion with resolution of 0.1
and day deg. Requires of additional calculation with fractional count of tem-
5. Daylight save time option. Clock correction +1 hour when option is perature measurement – see data sheet of DS1621. Result of calcula-
on tion should be rounded (not truncated)
4. Calculation must be implement with use of fixe point arithmetic.
Using of float/double types is strictly prohibited
5. Recording of minimum and maximum value of temperature along
with time
a. Allow for reseting of this value
6. Information displayed on 7 segment LED display with brightness
regulation
23. Thermometer with DS18B21 24. Thermostat with DS18B21
23.1. Used Hardware: 24.1. Used Hardware:
DS18B21 sensor – on board, LED display, pushbuttons DS18B21 sensor – on board, LCD display, pushbuttons

23.2. Requirements: 24.2. Requirements:


1. Software implemented 1-Wire communication protocol with single 1. Software implemented 1-Wire communication protocol with single
slave device (no need to implement search algorithm – network slave device (no need to implement search algorithm – network
enumeration) enumeration)Temperature measurement and conversion with reso-
2. Temperature measurement with declared time interval. lution of 1/16 degree.
a. Implement waiting for end of conversion 2. Control of 4 independent channels
b. Measurement interval set within of predefined set {1, 2, 5, 10, 15, a. Temperature range from -20 to +70 Celsius degree with resolu-
20, 30} tion of 0.5 degree
3. Temperature presented with two fractional positions with rounding b. individual settings of switch on and switch off temperature
4. Calculation must be implement with use of fixed point arithmetic. c. protection against incorrect setting with hysteresis smaller than 1
Using of float/double types is strictly prohibited degree – report error to user during setting acceptance
5. Clock implementation with setup
6. Recording of minimum and maximum value along with time
7. Information displayed on 7 segment LED display with brightness
regulation
25. Thermometer with LM35 sensor 26. Thermostat with LM35 sensor
25.1. Used Hardware: 26.1. Used Hardware:
LM35 sensor, LED display, pushbuttons LM35, LCD display, pushbuttons

25.2. Requirements: 26.2. Requirements:


1. Software implemented 1-Wire communication protocol with single 1. Software implemented 1-Wire communication protocol with single
slave device (no need to implement search algorithm – network slave device (no need to implement search algorithm – network
enumeration) enumeration)Temperature measurement and conversion with reso-
2. Temperature measurement with declared time interval. lution of 1/16 degree.
a. Implement waiting for end of conversion 2. Control of 4 independent channels
b. Measurement interval set within of predefined set {1, 2, 5, 10, 15, a. Temperature range from -20 to +70 Celsius degree with resolu-
20, 30} tion of 0.5 degree
3. Temperature presented with two fractional positions with rounding b. individual settings of switch on and switch off temperature
4. Calculation must be implement with use of fixed point arithmetic. c. protection against incorrect setting with hysteresis smaller than 1
Using of float/double types is strictly prohibited degree – report error to user during setting acceptance
5. Clock implementation with setup
6. Recording of minimum and maximum value along with time
7. Information displayed on 7 segment LED display with brightness
regulation
27. Remote control receiver (RC-5 code) 28. Blackjack (21) game machine
27.1. Required Hardware: 28.1. Used Hardware:
IR receiver (on the board), LCD alphanumeric display (HD44780), push but- LCD display (HD44780); Push buttons, LEDS
tons, LEDs, Remote transmitter
28.2. Requirements
27.2. Requirements: 1. Game for one player only (the machine is a card dealer)
1. Implement algorithm decoding of the RC-5 code (HW/SW method) 2. Buttons: “RESET”, “NEW GAME”, “STAND”, “HIT” (The player
the period is measured using hardware timer the decoding is made keep his hand as it is (stand) or take more cards from the deck (hit)).
by software (Description of RC-05 can be found e.g. in the SAA3010 3. After pressing “NEW GAME” button 2 cards are automatically deal
data sheet) for player. Then depending on player choice next card is deal (HIT)
2. Device address should be a constant defined in program or dealer (machine) deals cards for himself knowing the player re-
3. Received code and other information (e.g. system bits state) should sults (STAND) , or player loose if his score is above 21.
be displayed on LCD 4. Chose algorithm for pseudo random card dealing.
4. Some chosen commands should be used for turning on/off LEDs 5. Results of consecutive games are counted. “RESET” clears all scores.
29. „MIND” game 30. 8xON/OFF outputs controlled using RS232 se-
rial interface
29.1. Required Hardware:
7 seg. LED display; Push buttons; 30.1. Used Hardware:
LEDs, Push buttons, RS232 port.
29.2. Requirements
1. Rules of the game: 30.2. Requirements
a. when you press the Start button on the display appears exempla- 1. The device is connected to a PC computers running terminal pro-
ry sequence of characters (spin reel from a specific set of e.g. four gram.
characters (numbers 1-4 or chars A, b, C, d), one character is dis- 2. The device receives serial data from PC. Each command is ended
played for about 1 to 5 sec., between displaying each character with LF character. The following commands should be recognized:
display is blank for about 1 sec.), the player should repeat se- a. ONi – (where i € <0-7> is output number) – Turn ON the output
quence of characters (using push buttons, one push button – one number i
character) without mistakes in a certain time, the game is over if b. OFFi - Turn OFF the output number i
player makes a mistake or time in each level of game is out. The c. ONALL - Turn ON all outputs.
result of the game (displayed after the end of the game) is unmis- d. OFFALL - Turn OFF all outputs
takably defeated levels, e. AT – Attention sends to the PC Information (eg. “Our great pro-
2. In each level of game number of characters to remember is increased ject v.1.05”)
3. The game can be interrupted at any time by pressing a Stop button. f. STATE – Reports the state of each device eg.
1 – ON<CR+LF>
2 – OFF<CR+LF>
3. Each received command should be confirmed by sending to PC ei-
ther OK if command is correct or ERR response if command was not
recognized except AT and STATE commands.
31. Melody generator and composer 32. Remote information table
31.1. Required Hardware: 32.1. Required Hardware:
LCD character display, push buttons, speaker with amplifier LCD display (HD44780); Push buttons, RS232 port

31.2. Rquirements 32.2. Requirements


1. Generation of sound in range of H – a3 (H- a-a1-a2-a3) with half tones 1. Real time clock
(a1 = 440Hz) 2. Serial communication with master computer with use of XML for-
2. Programmable melody consisting from at least 64 notes with pro- mat
grammable sound/pause and space between a. Frame format <msg>This is a message text</msg>
3. Programmable beat time expressed in notes per minute b. Handling of entity characters e.g. &lt; &gt;
4. Repetition of melody passage commands. 3. Display a clock time in upper line adjusted to the right
5. Examples stored in program memory 4. Display of received message
a. Message is left adjusted
b. longer message than display length are scrolled through the dis-
play until arrival of the new message
33. Remote light controller 34. Electronic dice
33.1. Required Hardware: 34.1. Required Hardware:
LEDs; Push buttons, RS232 port LCD display (HD44780) 4 lines; Push buttons

33.2. Requirements 34.2. Requirements


1. Serial communication with master computer. 1. Random number generation based on fast timer and user button
2. Communication through the terminal Press (use of rand() function is not allowed)
3. Lamps are individually controlled. Commands send to different 2. Configurable number of dices 1 or 2.
lamps are independent and processed in parallel. 3. Display of dice points arranged in appropriate form with use of cus-
4. Commands tom characters
fade <lamp> [<time>] - fade out a lamp within given interval of time 4. Pushing a button stars drawing. Animate changing dice points at
expressed in seconds, if interval omitted use default value of 10 sec. this time. Releasing the button shows the dice changing for several
light <lamp> [<time>] - light up a lamp within given interval of time seconds (3..4) and slowing down until it presents stable result.
expressed in seconds, if interval omitted use default value of 10 sec.
on <lamp>
off <lamp>
state – report current state of lamps (on or off)
! – report device information string
35. Voltmeter 36. Morse characters generator
35.1. Required Hardware: 36.1. Required Hardware:
7 seg. LED display; Push buttons, RS232, embedded ADC LCD display; Push buttons; RS232 interface; LED; buzzer

35.2. Requirements 36.2. Requirements:


1. Using built-in 10-bits ADC in configuration: free-running mode, in- 1. ASCII characters are sent to the system via RS232 interface (using
ternal voltage reference, division factor of prescaler 128, terminal program)
2. Average ADC results, ADC support using interrupt system, a. Implement FIFO buffer that allow to keep entire message
3. Modes: single measurement (triggered by push button), minimum 2. Generator converts character into Morse character and display it on
and maximum values measurement (with reset push button) LCD display, beeps and blinks using buzzer and LED.
4. Programmable measurement interval 1ms – 100ms 3. The Morse character lookup table must be stored in program
5. Average filtering 8,16,32 samples memory
6. Registration of voltage in memory up to 512 samples in ring register a. as concise as possible form (e.g. 16bits per character)
(form of queue with automatic overwriting of old items) b. remember to remap lower/upper case characters to avoid dupli-
7. Result transfer to PC by means of RS232 after pushing a button in cation
human readable form. c. filter out characters that are not represented by Morse code
8. Using of float/double types for calculations is prohibited 4. Setup function allow to declare time length of dot and dash
37. Ultrasonic distance meter 38. HD44780 LCD controlled by means of I2C bus
37.1. Required Hardware 38.1. Required Hardware
Ultrasonic distance module, Character LCD display, pushbuttons Character LCD display, PCF8574

37.2. Requirements 38.2. Requirements


1. Ultrasonic module controls and measurement 1. Implementation of programmatic I2C bus operation
a. Triggering of measurement a. Implementation of specific functionality that meets requirements
b. Response of time measurement of data transfer with HD44780 controller
c. Protection against range overflow, missing echo b. Use of busy flag in transfer
2. Programmable recalculation of time into distance in cm 2. Verification of operations by implementation of
a. time interval measurement a. Real time clock
b. distance declared by user b. Scrolled demonstration message
3. Normal operation mode
a. Continues distance measurement and display
4. Proximity detection and alarms
a. Declare set of 3 distances that are descending (d1 > d2 > d3)
b. Unit notifies a user about obstacle when object detected in first
range, warns about approaching when object closer than the sec-
ond settings and rises the alert when distance is shorter than
third settings.
39. Real time clock with I2C keyboard 40. Timer controlled with analog joystick
39.1. Required Hardware 40.1. Required Hardware
Character LCD display, PCF8574 Character LCD display, LED indicators, analog joystick

39.2. Requirements 40.2. Requirements


1. Implementation of simple keyboard accessed by means of I2C bus 1. Timer settings controller by means of analog joystick
a. Pushbuttons connected to PCF8574 controller a. Up-down – increment or decrement minutes in range from 0 - 99
b. Programmatic access to I2C bus b. Left-right – increment or decrement seconds in range 0 - 59
c. Implementation of keyboard service with queue c. Implement acceleration function that bounds the inclination of
2. Verification of operations by implementation of joystick with inc/dec speed
a. Real time clock with setup procedure controlled by means of d. implement respective dead range of joystick tilt that allows
pushbuttons avoiding accidental or undesired settings
e. Start/stop the timer with pushing the joystick
2. Timer operation
a. Setup procedure by means of joystick
b. Start/stop of time counting by means of joystick pushing down
c. During timer run the joystick inclination is not considered (does
not influence the time measurement process)
d. Time passing notification (reachin a 0:00 time) – notified by led
blinking

You might also like