In this article, part 6 of a larger machine learning series, you will learn to train Wekinator to control the Arduino. We will train Wekinator to control the LEDs whenever we click on an orange or white box in the processing window.

We will give one input to the Wekinator that will be the value of a variable, and after training the Wekinator, the output will be received by processing, which will further send it to the Arduino where the LEDs will light up.



Catch up on the rest of the Wekinator Machine Learning series here:

Circuit Diagram

Connect pin 11 of Arduino to the positive lead of the orange LED and connect the negative lead of LED to the ground of Arduino through the 220 ohm resistor. Similarly, connect the positive lead of the white LED to pin 10 of Arduino and the negative lead of the LED to the ground of Arduino through the 220 ohm resistor.