Page 142 - KEC Khaitan C8.2 Flipbook
P. 142

Mapping Emotions to LED Colors

                                                Emotion            LED Color
                                                Happy              Yellow
                                                Sad                Blue
                                                Angry              Red
                                                Neutral            White


                  Writing and Testing the AI Program

                     Create AI blocks for face detection.

                     Program LED control based on detected emotion.
                     Test real-time responses.


                  Integrating AI and Hardware

                  Combining Face Recognition AI and the Mood Lamp

                      Connect Arduino and NeoPixel LEDs to Pictoblox.
                     Run the AI script and verify the LED response.


                  Debugging and Troubleshooting
                  Common Issues and Fixes


                           Problem                   Cause                 Solution
                           LED not lighting          Loose connection      Check wiring
                           Wrong color displayed     Incorrect mapping Re-check AI script
                           AI not detecting face     Camera issue          Adjust lighting & camera position


                  Final Testing and Presentation
                     Test the Mood Lamp with various facial expressions.

                     Present the project and discuss possible improvements (e.g., adding sound effects).

                  By  merging face recognition AI with  Arduino-driven  LED effects, you’ve  built  an  interactive
                  Mood Lamp that can visually reflect someone’s emotional state. Whether you use a simple RGB
                  LED for quick color changes or a NeoPixel strip for a dazzling show, the result is a project that
                  merges human expression with light-based feedback, illustrating the powerful synergy of AI and
                  microcontroller technology.



                    Remember:  Facial  recognition transforms a simple  microcontroller  project  into  a

                    device that understands and reacts to emotional cues. By combining external AI tools with
                    Arduino-based lights—whether a basic RGB or a NeoPixel array—you create an engaging,
                    expressive system that bridges the gap between humans and machines.




                  140   Premium Edition-VIII
   137   138   139   140   141   142   143   144   145   146   147