Hello guys, welcome to yet another project in this series. Today, we will be working with Arduino and an AI called GPT. In the previous video, we successfully created a circuit and used GPT to generate a code that made an LED blink. If you missed that video, you can find the link in the description below. In this video, we will take it a step further and add another LED to the circuit. We will instruct GPT to generate a code that will make both LEDs blink.
To start, let’s connect the second LED to pin 12 and ground. This will allow us to control both LEDs wirelessly. We can use a wireless connection module to replace the wires and keep our circuit neat and clean.
Once the connections are made, we can label the LEDs accordingly. The first LED connected to pin 13 will be labeled as ‘one’, and the second LED connected to pin 12 will be labeled as ’two’.
Now, let’s give an instruction to GPT. We want GPT to generate a code that will randomly blink these LEDs in an interesting pattern. We can include different patterns generated by GPT in our code.
After receiving the code from GPT, we can copy it to the Arduino IDE and compile it. Once the code is compiled successfully, we can upload it to the Arduino board.
Finally, we can run the code and see how the LEDs display the blinking pattern. If you want to customize the pattern, you can give specific instructions to GPT.
That’s it! With the help of GPT, we can easily generate code to control multiple LEDs and create unique blinking patterns. If you enjoyed this video, don’t forget to give it a thumbs up and subscribe to our channel for more exciting projects. Thank you for watching!