Skip to main content

Posts

Showing posts with the label arduino

Interfacing of L293D with arduino. Full working

 Hello guys,     This is my first blog ever, dedicated to all of my students facing difficulties while interfacing Arduino with L293D.     Will keep it short and simple to define the wiring, with no further fancy theories to confuse you all.  Step by step procedure is mentioned. 1) Please do the proper wiring of BreadBoard, from the mid it is not connected so this image will show you how exact the wiring should be. this is much needed so that your Vcc (5V) and GND (-ive) must be connected without any issues. 2) Make sure the wiring is done as per the proper connection. Consider for this time that our L293D has 2 sections mean right section and left section, and the 2 center pins are GND always!   the below picture is of the wiring, if you'll wire properly everything will be smooth .  3)   The code: Code is as simple as LED blink code, you have 4 pins, each pin should be declared as OUTPUT in setup and while in loop keep the alternate 2 pins high and the other 2 low   for example