• Join over 1.2 million students every month
  • Accelerate your learning by 29%
  • Unlimited access from just £6.99 per month
Page
  1. 1
    1
  2. 2
    2
  3. 3
    3
  4. 4
    4
  5. 5
    5
  6. 6
    6
  7. 7
    7
  8. 8
    8
  9. 9
    9
  10. 10
    10
  11. 11
    11
  12. 12
    12
  13. 13
    13
  14. 14
    14
  15. 15
    15
  16. 16
    16
  17. 17
    17
  18. 18
    18

Electronics CW2

Extracts from this document...

Introduction

Lottery Number Generator

Will Epps

2007 AS Project

The Lottery Number Generator.

Aim:

I have designed this project for a family member who is rubbish at decisions. She is a big fan of the national lotteries. But can never choose what numbers to choose for her tickets. A way to stop this, would be to create a number generator, on which she can press a button, and a random number will be shown on the screen.

Research (I):

In order to design a circuit that helps people choosing lottery number. I need to find out more about the lottery itself.

From the website http://www.national-lottery.co.uk

I have gathered some basic information on the lotteries.

The most common is called “lotto”. It consists of 6 numbers, and a ‘bonus ball’ (a seventh number). All picked at random. People with matching balls win money. The more matching numbers, the more money you win.

There are many other games, but all run off the same principle. That matching numbers win you money.

The balls range from the numbers 1 to 49. And only appear once each. The odds of matching all your numbers, are somewhere in the region of one in fifteen million.

The numbers u choose are printed onto a ticket, via a machine, then given to you. Winning numbers must be returned to a machine that registers tickets. Large sums of money are often paid in form of cheques.

So I am looking to design something that creates random numbers. To be put onto tickets.

Specification:

...read more.

Middle

7                0                1                1                1

8                1                0                0                0

9                1                0                0                1

10                0                0                0                0

11                0                0                0                1

This truth table can be used to find which pins create the correct reset.

EG’s.

Reset on 3 -

A+B = 3

Reset on 9 -

A+D = 9

………

Decoder:

image18.png

This chip Is called a 4511 BCD to 7 seg Decoder.

This chip converts the logic states of the outputs of the 4510, to a display.

This chip only powers common cathode displays, as the output pins go high.

The A, B, C, and D output pins of the 4510 are connected to the A, B, C, and D inputs of the 4511.

The pins, a, b, c, d, e, f, and g are then connected to the corresponding pins on the 7 seg display.

I have got the table below from http://www.doctronics.co.uk/4511.htm

BCD inputs

segment outputs

display

D

C

B

A

a

b

c

d

e

f

g

0

0

0

0

1

1

1

1

1

1

0

image19.png

0

0

0

1

0

1

1

0

0

0

0

image20.png

0

0

1

0

1

1

0

1

1

0

1

image21.png

0

0

1

1

1

1

1

1

0

0

1

image22.png

0

1

0

0

0

1

1

0

0

1

1

image23.png

0

1

0

1

1

0

1

1

0

1

1

image24.png

0

1

1

0

0

0

1

1

1

1

1

image08.png

0

1

1

1

1

1

1

0

0

0

0

image09.png

1

0

0

0

1

1

1

1

1

1

1

image10.png

1

0

0

1

1

1

1

0

0

1

1

image11.png

If the input goes above “1001” The output pins all go low… and the 7 seg doesn’t light.

Simple 4510 & 4511 Circuit Diagram:

image12.jpg

7 Seg Display:

image13.png

This is what will display the numbers.

...read more.

Conclusion

But shows the number 00.

Has a long battery life of over 3 hours.

Limitations and Modifications:

My circuit wasn’t perfect as the number 00 was shown. I have tried to think of ways this could be removed. But I couldn’t think of a way to do it. Unless I used PIC’s. A program could be written to remove the 00 signal. But as I have no experience in PIC program writing. I am not going to look further into this idea. Like I say I have no knowledge of PIC systems. But if I could remove the binary signal (A,B,C,D corresponding outputs) 0000 from the string of codes, the number 00 wouldn’t show. And would skip to 1000. This would show 01.

Other than that I wouldn’t change the circuit. It met all my specifications. And worked well.

Evaluation Of Final System:

Again what I said in my assessment and modifications sections. The circuit works very well. Has met all of my needs. And I can think of only one thing that could be improved. I cannot follow the modification through. As I don’t know anything about PIC programming.

image02.png

Specification:

Must generate a number and show          image16.png

Generate numbers from 1 to 49.                     image16.png

With the numbers showing faster than the human eye can see to choose them.                 image16.png

Therefore making it impossible to choose numbers.                 image16.png

Must operate from a 9V battery, as these are commonly available.        image16.png

Must consume as little power as possible, otherwise battery life will be short. So have current consumption of less than 200mA.                image16.png

Report:

Some information used from…

Ian Kemps - coursework guidelines

www.doctronics.com – chip layouts, and 4511 logic truth table.

http://www.national-lottery.co.uk

...read more.

This student written piece of work is one of many that can be found in our AS and A Level Electrical & Thermal Physics section.

Found what you're looking for?

  • Start learning 29% faster today
  • 150,000+ documents available
  • Just £6.99 a month

Not the one? Search for your essay title...
  • Join over 1.2 million students every month
  • Accelerate your learning by 29%
  • Unlimited access from just £6.99 per month

See related essaysSee related essays

Related AS and A Level Electrical & Thermal Physics essays

  1. Peer reviewed

    Experiment: Decay of Charge in a Capacitor

    4 star(s)

    t = 6.28. Maximum error on ?t = 0.4 s. Percentage error on ?t = . Time Constant Percentage error on time constant ? = 6.12% + 0.429% = 6.55%. Maximum error on ? = 48.16.55% = 3.2 ?F approximately.

  2. The Resolving Power Of The Eye

    The rounding through calculations and movement of head when measuring were also constant throughout the equipment. Random errors were mainly the condition i.e. tiredness of the human being tested and the time of day as well as the darkness or light intensity outside as cloudy weather means darker conditions in the lab.

  1. Electrical Resonance - Research and rationale.

    Accuracy and sensitivity For my results I will aim to record values up to 3 decimal points and keep this consistent throughout my results. Sensitivity of the apparatus and measuring equipment shouldn't be a concern as the equipment is mainly electronic devices that have already been calibrated and are accurate to an appropriate degree.

  2. Characteristics of Ohmic and Non Ohmic Conductors.

    supply has to be applied to the circuit. The connections can be anyway, positive and negative or negative and positive. We should still get a straight line through the origin. This is one of the characteristics of ohmic conductors. The rheostat will be used to vary the current.

  1. Plotting the decay curve of charge in a capacitor

    And a 1010? internal resistor was connected up across the inputs of the electrometer. By the equation, It is the theoretical value of the half life. The percentage error between the theoretical value of the half life and the experimental value in method A: The percentage error between the theoretical

  2. Sensors cwk. The aim of this coursework is to construct a potential divider circuit ...

    to LDR Light Intensity (in arbitrary units) Voutput (volts) 0.10 1 0.74 0.20 1/4 1.47 0.30 1/9 2.08 0.40 1/16 2.48 0.50 1/25 2.84 0.60 1/36 3.21 0.70 1/49 3.40 0.80 1/64 3.46 0.90 1/81 3.60 1.00 1/100 3.70 1.10 1/121 3.80 1.20 1/144 3.90 1.30 1/169 4.00 1.40 1/196 4.07 1.50 1/225 4.13 1.60 1/256 4.18

  1. silicon project

    Glass can be made into a great variety of shapes and is used to make window glass, containers, and insulators, among many other uses. * Abrasives - Silicon carbide is one of the most important abrasives. * Semiconductor - Ultrapure silicon can be doped with arsenic, boron, gallium, or phosphorus

  2. How does changing the distance from a light source affect the power output of ...

    Error (from standard deviation) 7 0.22 60 0.060 7 0.20 60 0.060 7 0.22 60 0.060 7 0.22 61 0.061 7 0.22 61 0.061 Average 0.216 60.2 0.0602 0.0130 0.0005 Distance from Bulb / cm �0.1cm Potential Difference / V �0.02V Current / mA � 2mA Current / A �0.002A Ave Power/W (Pd / V * Current / A)

  • Over 160,000 pieces
    of student written work
  • Annotated by
    experienced teachers
  • Ideas and feedback to
    improve your own work