You are a math lover. Do you need a new desk toy? Do we have your project. There’s nothing but an Arduino and a Seven Segment LED module, [Cristiano Monteiro] has assembled a small device that will always slowly pass through the number of pi… Or until you get tired of looking at it and decide to use these parts for other purposes.
In terms of hardware, we really can’t exaggerate how simple this project is. An ordinary four digit LED display is connected to the Arduino nano and plugged into the computer to obtain power. [Cristiano] uses a test board here, but you can also easily connect the two devices together with four female to female jumpers. We think this is a good project for anyone who wants to gain practical experience in PCB design.
The real magic lies in the software, [Cristiano] released it under the license of MIT. It is far from ideal to calculate pi as atmega328 P on such a resource limited chip, but by transplanting the C + + algorithm developed by Xavier Gourdon (Pascal Sebah) and [Pascal Sebah] to calculate the low memory of the nth decimal number of π, he can pull it apart, although the speed is very slow.
Now, if you have better hardware, such as a pair of Xeon processors and 96 GB of ram, you can calculate trillions of bits of PI, but it doesn’t look as cool as this little guy blinks.