EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Replies / Hi Ren,Thanks for sharing

Hi Ren,Thanks for sharing

|

Microcontroller › PIC › Novice at Microcontrollers › Hi Ren,Thanks for sharing

November 20, 2012 at 4:12 pm #8773
AJISH ALFRED
Participant

Hi Ren,

Thanks for sharing that much information. We will surely help you with the project.

You can connect the L293D directly to any of the digital pin of the controller. Go through the datasheet and you can find the sample circuit for connecting the motor. Pull up the pins which you intent to connect the switch in such a way that when you press the key the digital pin should receive logic 0 otherwise logic 1. Thats all about the hardware.

Now coming to the programming part wait till the digital pin goes low (happens when you press the key) and once low activate the pin in which the l293D is connected, add a delay. Now wait till the pin goes low again and if it does deactivate the L293D pin. 

Do all these in an infinite loop.

Expecting your doubts!

RSS Recent Posts

  • Refrigeration System Reliability in Harsh Aussie Conditions May 21, 2025
  • Chinese Tarrifs – 104%!?! May 21, 2025
  • can a AT89C51 be used as a rom? May 21, 2025
  • Telegram Based Alarm - Sensor cable protection May 21, 2025
  • An Update On Tarrifs May 21, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise