Color-translate

by zrx2q15 in Workshop > Home Improvement

173 Views, 0 Favorites, 0 Comments

Color-translate

artifact_worn.png

Color-translate

This instructable explains how to map RGB readings into texts and vibration, and output to a screen and a vibration motor using Arduino. The translator classifies the colors nearby, generates corresponding texts that associate with the detected color, and vibrates according to the color.

Hardware Components

motor_pic.jpeg
oled_screen_pic.jpeg
vibration_motor_pic.jpeg

In addition to an Arduino board, the project requires an RGB sensor, an OLED screen, and a vibration motor.

Example Codes and Libraries

install-gfx-library-adafruit.png
install-ssd1306-adafruit-library.png
螢幕快照 2021-02-12 下午6.11.24.png

Color Recognition Module Example Code:

https://github.com/YahboomTechnology/croco_color/t...

Oled Display Example Code:

https://randomnerdtutorials.com/guide-for-oled-dis...

Vibration Motor Example Code:

Include Adafruit GFX and SSD1306 Libraries

Customize Code

螢幕快照 2021-02-11 下午11.29.49.png
螢幕快照 2021-02-11 下午11.29.34.png

vibrate_mode() maps the rgb readings into color range, and returns a mode of vibration.

word_data maps the rgb readings into color range, and returns a random word that corresponds to the detected color.

Testing Codes and Sensors

螢幕快照 2021-02-12 下午6.20.32.png
螢幕快照 2021-02-12 下午6.24.36.png

Test the hardware separately and in the customized codes

Wiring & Physical Forms

final_form_testing_2.png
final_form_testing.png
artifact_worn.png
artifact_worn_2.png
WechatIMG181.jpeg
WechatIMG182.jpeg