Color-translate
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
In addition to an Arduino board, the project requires an RGB sensor, an OLED screen, and a vibration motor.
Example Codes and Libraries
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
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
Test the hardware separately and in the customized codes