16F84A used with SN75410NE


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2008
    Posts
    23

    Default 16F84A used with SN75410NE

    I am trying to make the micro move tow motors forward in a test until they get an input from a switch that gets pulled HIGH, and then I want it to reverse one motor, can anyone offer some simple code that I can compare to what I am doing, because I am stuck, I can get them to move and back up to one switch using the Button command but I want to have two switches essentially do the same thing and the button command wont work when i Do it twice, so I assume I need to change to a if else loop and if switch 1 or 2 =High, reverse motor one and stop motor 2, else forward motor 1 and 2, but the code I use for this logic doesnt work?? Can someone help please.

  2. #2
    Join Date
    Dec 2008
    Posts
    23


    Did you find this post helpful? Yes | No

    Default Button command

    Does anyone use the BUTTON command for an input?

  3. #3
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    For the simple application you have requested in post # 1, it is better using a pic with two pwm channels, in order to control also the speed of your dc motors. Pic16F84A has not pwm capability.

    Al.
    Last edited by aratti; - 29th January 2009 at 11:42.
    All progress began with an idea

Similar Threads

  1. Code works on 16F84A but not on 16F88?
    By pharaohamps in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 6th November 2009, 18:29
  2. ICSP using a 16F84a to program 24CXX
    By aftab in forum mel PIC BASIC
    Replies: 26
    Last Post: - 8th April 2007, 11:39
  3. 16F84A and Optrex LCD
    By coyotegd in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 17th October 2005, 16:08
  4. RS 485 using 16F84A
    By ngeronikolos in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 18th May 2005, 14:46
  5. what's similar to the 16f84a?
    By kenpo in forum General
    Replies: 11
    Last Post: - 18th February 2005, 18:26

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts