Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 4 - Newtons Luminescent Cradle You are a hot shot at a big time company because of all the experience you got from Build

Problem 4 - Newtons Luminescent Cradle

  • You are a hot shot at a big time company because of all the experience you got from Build Team. You need some trinkets for your desk, but you want them to be unique. You really like the trinket called Newtons Cradle, but being the hot shot you are, the physical device is trivial. You decide to make a Newtons cradle made of LEDs instead.

  • In its resting state an LED on the end of a line of 5 LEDs is illuminated. When a button is pressed and released, analogous to pulling back one of the balls on a normal Newtons Cradle and releasing it, the light bounces to each LED and goes back and forth across the 5 LEDs. However, you want it to be very similar to a normal Newtons Cradle and the bouncing stops at some point. Have the bouncing of light slow down and eventually stop on one of the LEDs on the end. You can assume that the button will only be pressed if the light is not bouncing.

    • Hint: It will be much easier if you store your leds pins in an array.

    • Optional challenge: If you have completed this problem, try to control the bouncing of lights using a sine function.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Filing And Computer Database Projects

Authors: Jeffrey Stewart

2nd Edition

007822781X, 9780078227813

More Books

Students also viewed these Databases questions

Question

Identify several examples of ethical investing and SRI.

Answered: 1 week ago