Electrical System

The electrical system consists of several parts, each essential to the main functionality of the project.

Motor

We chose a stepper motor and Raspberry Pi Adafruit Motor Hat for ease of use and a possible expansion into different rotation patterns that we could not accomplish with a simple DC motor.

The motor hat is powered directly from the Meanwell power supply, as the Pi cannot safely source enough current to power the motor. 

LEDs

To implement the LEDs, we used a FadeCandy NeoPixel LED driver and a Raspberry Pi.

We chose to use a FadeCandy for this project because it provides a more straightforward and comprehensive way to interface with the NeoPixel strips. The Raspberry Pi runs a Python script which utilizes the FadeCandy server and its corresponding Open Pixel Control library.

Both the LEDs and the FadeCandy board we used were already owned by a member of the team.

Power

Of course, all these components have to be powered somehow. We determined each component's maximum current draw, then chose a Meanwell power supply that could supply enough current for everything at 5 volts.

➢ ​​The motor hat and motor together draw about 1.5A at maximum.
➢ The laser draws about 50mA at maximum.
➢ The speaker amplifier draws about 50mA at maximum.
➢ If we set all 32 LEDs to full brightness, they would draw about 2A.
➢​ If we were to power the Raspberry Pi from the power supply, it would draw about 3A
For a hypothetical total of about 6.6A.

For an abundant safety factor, we decided on a Meanwell single-output power supply that could supply 10A at 5V and powered the FadeCandy board, motor hat, laser, and speaker amplifier directly from that output in parallel.

Due to us not wanting to accidentally power-cycle the Pi without shutting it down properly first, we chose to use a separate wall plug to power the Pi in this prototype.