In the previous post we have seen the developing of the software for the LED's sequential lighting using Stateflow. In this article we will explore the circuit diagram for the LED's sequential lighting and software deployment parts.
Schematic for Arduino and LED's Sequential Lighting
Following is the circuit diagram for the LED's sequential lighting using Arduino.
Arduino digital pin 3 is connected to the Red LED anode, digital pin 4 is connected to the Green LED anode and digital pin 5 is connected to the Yellow LED's anode. All the LED's cathodes are connected to the ground via a resistor. This resistor is used as current limiting resistor to limit the current draw from Arduino and saving the micro-controller from frying up.
Software deployment to Arduino from Simulink
Following video presents the steps required to prepare the Simulink model for code generation for the Arduino board. The steps for the code generation are same as the steps explained in this article
Demo for the LED's Sequential Lighting using Arduino
The following video shows the demo of the article on the Arduino Mega hardware, you can see the working of software created in earlier article
I hope you enjoyed the LED's sequential lighting demo in this article and in our next article we will explore the potentiometer interfacing with Arduino.
You can checkout how the LED's Sequential Lighting can be implemented using C programming language and Arduino IDE in this article.

No comments:
Post a Comment