It will be displayed in Cornell Career Fair Showcase!!
It will also be displayed in Cornell ECE showcase!!
This is a propeller displayer with infinite mirror effect. I believe this is the first one in the world! It can display texts, time and music spectrum with different colors. This project is embedded with an arduino, a raspberry Pi and a bluetooth Uart module. This is my ECE 5725 Design with Embedded System final project.
This is project is to show a new idea to display something. I designed this prototype because I am crazy about the infinite mirror trick and music visualization. And recently, I saw some cool propeller displayer project on the Youtube. So, I decide to make this project for my class Final Project. It is a prototype and a verification of my idea. After building this project, I found the effect of it is really good! So, maybe this project can give other people who love these elements a reference. And we can build something more fancy!
The whole system can be divided into three main subsystems: the Propeller Displayer, the Infinity Mirror, the Raspberry Pi3 Control Module.
Figure 1: the hardware design
The propeller clock module, the primary display screen of the system, is consisted of the following main hardware components:
1. A 12V motor, which is attached under the base board and fixed by a motor holder to the base board, is utilized to rotate the proto board.
2. Here the proto board is a PCB board that is used to hold the other major components, including the Adafruit Dotstar LED strip, the Arduino Pro mini, the Hall sensor, and the Bluetooth to UART module.As for these components on the protoboard, a Dotstar LED strip with 8 LEDs will be used to display the content while rotating.
3. Arduino pro mini will be used to control the LED strip display and communicate with the Raspberry Pi3 to control the whole system.
4. A wireless Bluetooth to UART converter will be used to transmit the control signal from Raspberry Pi 3 to Arduino.
5. A hall sensor, which is fixed on the board, together with a magnet, which is fixed on the regular mirror surface, is used to detect the starting point and refresh the display screen.
6. A DC motor control module is planned to be connected with the board and control the rotating speed of the board( which was removed in the end as it introduced unstability to the motor rotating speed). In this module, balancing of the propeller clock will be our major challenge.
7. The primary power supply of the propeller displayer module is achieved with the help of a 12V 600mA wireless charging module. Three main power supply techniques were tried out thoroughly (explained in the next part), we choose the inductive charging system due to its lightweight and space-saving features.
Figure 2: the protoboard
The infinity mirror adds a bonus mesmerizing visual effect for the whoe system. This module contains a special one-way mirror, a regular mirror, and a baseboard. All mirrors will be laser cut to be round-shaped. The special top mirror (the one-way mirror) is 50% reflective and 50% transmissive; the mirror in the middle (under the rotating board and on top of the 12V motor of the propeller clock) is a normal mirror that reflects the light. The normal mirror is used to reflect the LED screen display and will be installed in between the rotating board and the 12V motor. The displayed message will bounce back and forth between the two mirrors. With some lights escaping from the top mirror, the reflected displaying will become less and less each time. In this way, the gradually dimming illusion can be observed as hundreds of depths.
Figure 3: the infinity mirror
In order to control the display messages of the propeller displayer and achieve the automation of the whole system, Raspberry pi 3 is used to communicate with the propeller clock module.Raspberry Pi sends the commands to Arduino and the Arduino will control the LED strip to display the different patterns.
I used the socket library to transmit the messages between Raspberry Pi and Arduino. I designed a simple communication protocol between these two device which includes sending message, receiving message, cleaning the buffer and response to make sure the communication is robust.
For text display. The Arduino stored the char library. And it stores some defaults string. Arduino displays the texts according to the commands from Raspberry Pi.
For time display. The Raspberry will get the current time and send it to the Arduino. The Arduino will display the time. And raspberry pi will send the update signal to the Arduino to update the time.
For music spectrum display. Raspberry Pi will decode the music and generate the music spectrum. For each frame, raspberry Pi will send 8 number which means the magnitude of 8 different frequency range. Arduino receives the signal and update each frame. Because the baud rate restriction, we can only display some simple patterns. I will work on other communication
Figure 4: software design flow chart
The test and redesign steps for the major components of the system were conducted as follows:
The propeller displayer was the main display screen for the whole system. It utilizes persistence of vision theory to display the illusion of stable patterns floating in the air, thus it requires demanding rotation balance skills, which does not fall within our familiar expertise.
The protoboard system was even not balanced when we set up the initial system and began the rotation test. We first changed the Li-ion battery position as initially we put the battery on one side of the rotating board. As the battery is definitely the heaviest part on the board, we put it to the center hoping to improve. But as the battery module itself was not symmetric, we still cannot balance the system. We searched several solutions on Internet, and removed our power supply system for the propeller clock off-board (explained in power redesign module), then the board itself can be balanced.
Then the led strip was added, the rotating clock could not maintain balance again. One possible reason may be that the LED strip is too soft to keep in position when the motor was rotating at a high speed(around 1800 rpm). As for this factor, we thought of using structure wood to support the led strip. Another possible reason for the unbalance introduced by the led strip is that the LED strip was mounted only on one side, we need to add one similar structure to the other side to balance during rotating. In the end, we found a more stiff material to hold the LED strip and use four wires to hold the whole system, structured like a bridge. We also added some coins to balance the weight and adjust carefully the distance. Finally, the whole system was successfully balanced with all components.
The redesign of the charging system has gone through a Li-ion battery to a slip ring, then to inductive wireless charging module. At first, a rechargeable Li-ion battery will be used to charge the propeller clock module. Following our initial charging system design, we successfully recharge the Li-ion battery using the lab power supply equipment, and modified the Li-ion battery boost module, added a switch to control the power and added a charging circuit, in the end, we successfully have 5V output. But as the cumbersomeness of the battery made balancing rotating board so difficult, we removed it and tried slip ring to power the rotary part.
We made a slip ring to replace the Li-ion battery with the following steps:
The finished part picture is shown as below:
Figure 5: slip ring charging for propeller clock
The finished slip ring worked mostly OK except the motor became hot after some time when rotating. We suspect it’s mainly because of the insulation(the tape and glue) when fixing the slip ring on the motor. Also the slip ring will increase the resistance of the rotation part, thus the rotating board will become somewhat unstable.To combat this problem, we experimented inductive charging module to power the propeller displayer system, and tested the set with oscilloscope and assembled it on the system. This is a lightweight and stable solution that we finally choose to use for our project.
Figure 6: inductive charging module
The Bluetooth to UART communication module is an essential part of the system communication and controlling. We initially used the module HC-06 to test the communication between the two microcontrollers, but we cannot get the desired reply from the serial to the Raspberry Pi monitor. To debug, we first checked all the hardware and made sure that the circuit is correctly connected. Then, we checked the connection between our computer Bluetooth connection and the module. The HC-06 module could connect to the computer correctly. We then did research on the internet and found similar bugs related to the HC-06 module, so we switched to HC-05 module instead. Using HC-05 module, the testing program could be uploaded successfully. We were also able to achieve the bi-directional communication between Raspberry Pi 3 and Arduino pro mini: the command could be sent to Arduino from Raspberry Pi 3; Raspberry Pi 3 could receive and display the reply information from Arduino. Finally, we redesigned the connector between the Bluetooth module and the Arduino pro mini to make it more compact and easier to balance on the rotating board.
Initially when Raspberry Pi 3 communicated the with Arduino pro mini, the reply from the Arduino was not correct. After some research we figured out that a time lapse need to be added between sending the command and receiving the reply. Otherwise, the reply will not be prepared, then the receiving buffer would not have the full reply. That’s the reason that the reply displayed on the screen was not correct. Then, after figuring out the bugs, we see the result! Awesome!
At first, the character displaying effect on the propeller displayer is similar with the picture shown below(left): the shortest distance between the led light spot was separated around 4-5 centimeters. To improve the displaying effect, we reduced the delay time and finally delete the delay time between the two status(light on and off) entirely, but it didn’t work.
So, we suspected that the effect of the fastest updating rate may just be like this. We then searched the document of the dotstar led strip on internet and found that the updating rate could be super fast: for Arduino, the PWM rating could be 8MHZ, which is the clock rate. If that is true, we were supposed to get a better POV effect than the displayed effect. We then figured it might be the software problem. As we were using the Adafruit library previously, twe tried the Fastled library to see the display effect. It worked! The displaying effect with the new library is much better, shown in the picture below(middle).
With the new library, we could display the characters on screen better, but we want to display messages more precise and mimic the real-world display. So we tried to change the software SPI to hardware SPI by changing the connection within the system and got an even better display effect as shown in the picture below(right).
Figure 7: display optimization
Based on the third solution, we successfully displayed the character “ECE5725” on our system.
The main objectives outlined in the initial project plan were achieved successfully. We have finished the propeller displaying function, the infinity mirror displaying part, the music spectrum displaying module, control function. The few bumps happened mainly when we tried to balance the whole system, trying out the charging systems, displaying music spectrums.
The Propeller Displayer: the rotating propeller clock requires state-of-art soldering, delicate assembly of all the components on a small board, creative balancing ideas, numerous testing, failures, and improvements along the way.
The Infinity Mirror: The optical effects of the infinity mirror, combined with the propeller clock display, is a unique display system originated from creativity and passion.
The Raspberry Pi 3 Control Module: the Raspberry Pi3 control program is versatile in that it can be expanded to include more display modes by just including the corresponding display messages and switching functions.
Overall, this project allowed us to devote time exploring a cool project that we felt would be expanded to a real stunning product in real lives.
For the future work of this project, we planed the below functions: the system can receive music signals from mobile phone, a special equipment to control the display depth of the infinity mirror can be designed, so that more display effect choices can be set. We also want to add more interactive functions to this displayer like a touch screen or voice control. All in all, in the end we want our product to achieve touch screen, voice control and displaying depth control functions. We will continue to finish all these functions after this course.
In terms of the contributions, BeiTong focused on the hardware hacking and software design, while Qian focused on the software testing and the beginning of display program . We tested different techniques for balancing the system together, and BeiTong built the music spectrum display program part. This brilliant idea was brought up by Beitong Tian, and he contributed a lot of his prior expertise and experience on Embedded Operating Systems.
|Motor 12V with Copper head||10||Amazon|
|Bluetooth to Uart Converter||7.5||Amazon|
|Inductive Charging Module||10||Amazon|
|Raspberry Pi 3||35||Provided in lab|
|Arduino pro mini||6.5||Provided in lab|
|Adafruit Dotstar LED strip||5||Amazon|
|Proto board||0||Provided in lab|
|Motor holder||0||3D printed in RPL|
|Infinity mirror Base||0||Recycled|