01-16-2024, 10:52 AM
This simple experiment utilises the on-board RGB LED of the Arduino Nano 33 Sense BLE in order to demonstrate the effect of additive colour mixing (e.g. red and green perceived as yellow). The code loops through a number of possible RGB combinations (adjust the interval if you would like to speed up or slow down the rotation of colours, the default is 5 seconds). To observe the effect you could either project the light created by the LEDs on a piece of paper or even better use your phone's camera and adjust its exposure settings accordingly. A second experiment where the user can set the RGB combinations by hand has also been attached (manual mode).