Pico Board Scratch Projects:

**===================**

You are welcome to discuss the points in the hints given with the homework projects in your final report as much details as you think necessary. The marks (* **), (****), and (*** ****) represent my personal judgement for the efford/benefit required to solve a given problem. One can interpret them as the level of happiness promissed when one completes a solution.

0 - Algorithm implementation. Calculate pi via monte carlo.

1 - Design an electronic safe lock. Reading-out the potantiometer and the button, design an algorithm to enter the numbers between 0 and 100 using the board, to check whether the combination is correct and to initiate an action in case the combination matches, say, play a message telling that the safe is open or closed.

Homework project (**): Enter any number of integers using the board, then let the algorithm you are expected to design sort these numbers. Hint: Ascending or descending does not matter. Can one use bubble sort ?

2 - Design a 3x3 num pad by utilizing 4 resistance-reading ports named A, B, C and D. Map a 3x3 area and program the decoder.

Homework project ( *****): Do the same design but this time to map a 4x4 num pad and program the decoder. Hint: 4 ports read-out in binary (2^4) can address 16 different states, therefore having 4 ports must be enough to design a 4x4 num pad. How many numbers can be used in your design ?

3a - Read out the ports A, B, C, and D binarily and design a binary to decimal converter. 3b - Callibrate the resistance-reading ports A, B, C, and D and measure an unknown resistance based on the calibration curve.

Homework project (**): Utilizing whatever you can find at home, design and implement a simple piece of hardware which can be used to manually extract data points from a two dimensional plot printed on a paper. Program the needed software to interpret the data read-out from ports A, B, C, and D. Hint: What is the shape of the callibration curves of the ports ? How can you use those curves for the purpose ? How can you read (x,y) coordinates ? What is the requirement to keep the aspect ratio of the plotted data ? To paint your portrait on a canvas, would you hire a painter who is known to see things 10 times narrower than they actually are ? (if yes) What would you expect to see on the canvas after the painter finishes the job ?

4 - Make an angle measurement device. Callibrate the light sensor with the angle-box and associate the angle with the data read-out from the sensor.

Homework project #1 (**): Design a "solar" alarm clock and measure the sensitivity or time resolution of your solar clock. Hint: How can your solar clock work during the night ? Propose at least one method. If you set the alarm to, say 4 am, how can you make sure it will not make an error larger than a certain amount ?

Homework project #2 (*): Kandil (or candela) measurement. The producers of the so called "green" light bulbs claim that their product provides "the same" amount of light as a "non-green" bulb but consumes less. Using the light sensor, compare a 100 Watts non-green bulb with its counterpart 14 Watts green bulb; confirm or falsify their claim. Hint: Do you need to calibrate the light source ? (if yes) Does the calibration need to be linear ? (if yes) How can you ensure that your calibration is linear ?

5 - Reading out the microphone, clap your hands and start/stop the rndPi algorithm.

Homework project ( *****): You are given an .ogg file including mors code. Design and implement an algorithm which can decode the mors data read-out from the microphone. Play the file and run your algorithm to decode the message. Hint: How can one distinguish the duration of two signals ignoring the content ? Think about how we do it and try to abstract the natural algorithm we use, then "teach" your computer to do the same thing. Remember, if you can not "teach" something, that means you do not know it. We can read mors code, meaning that we know it, therefore you do not have any reason why you can not design the algorithm.

Summary

**===**

0 - 7 exercises done by instructors, 6 homeworks/labs left to participants

1 - Which ones are homework and which ones are labs to be decided

-- OzgurCobanoglu - 2009-09-23

Topic revision: r1 - 2009-09-23 - OzgurCobanoglu

Copyright &© 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.

or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback

or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback