Home Made Garbage

POV Display Using SPRESENSE

お父ちゃん お父ちゃん  2019.5.6 
ホーム
電子工作
Raspberry Pi
IOT
WEB

I made a full color POV display using SPRESENSE and DotStar LED tape.

Constitution

LED tape, SPRESENSE and reflectance sensor are mounted on the rotating part, and LED tape uses DotStar. Using the wireless charging module, the power supply to the rotating part was carried out wirelessly.

One AA battery was used for the motor and three AA batteries for the wireless power supply to the rotating part.

Parts

POV Display Device

The motor was fixed with metal fittings and the handle was made with black wood, and the battery socket and power supply on/off slide switch were fixed.

 

The rotating part is completely independent as follows.

 

I used two Dotstar LED tapes. 29 cells LED tape is controlled by SPI4. 28 cells LED tape is controlled by SPI5.

 

I spread a milky film for the diffusion of light.

 

Voltage-Level Translator TXB0104 is used to convert the logic level of SPRESENSE from 1.8V to 5V.

 

I used the wireless charge module for power supply to the LED rotating part. It is only placed in the face-through the transmission coil to the rotation axis of the motor without almost processing.

Arduino IDE Code

The following libraries are used for Dotstar.
 https://github.com/adafruit/Adafruit_DotStar

Adafruit_DotStar_SPI5.h is a modification of Adafruit_DotStar.h to use SPI5.

When a reflectance sensor detects a marker, it decreases the output, so it detects it in the attachinterrupt and measures the time it takes to interrupt processing by one lap.

It switches the LED blink by dividing the time of one lap by 150. LED display patterns are stored as an array in graphics.h.

Display Graphic Data Creation Method (Python)

Create POV display data “graphics.h” in Python Code. Display data can be created from GIF or still images.

Test GIF File

I used the following GIF file. The number of frames is 16.

Operation

 

 

Holographic display could be easily realized using SPRESENSE with two SPI outputs at high speed.

 

Related Posts

コメントはこちらから

メールアドレスが公開されることはありません。コメントのみでもOKです。

This site uses Akismet to reduce spam. Learn how your comment data is processed.