remote control relay broad

Discussion in 'The Projects Forum' started by kjn468512, Sep 22, 2015.

  1. kjn468512

    Thread Starter New Member

    Sep 22, 2015
    4
    0
    I have been working a remote control relay broad to drive a dc motor. I am using a sis2 chip to send signals to the relays trough 2 transistors My problem is that when send the signal to the relays they do not drive it in both directions. I am send you guys a schematic of what I am doing.
     
  2. MikeML

    AAC Fanatic!

    Oct 2, 2009
    5,450
    1,066
    I, for one, will not open a .zip file. Please post a .pdf
     
  3. joeyd999

    AAC Fanatic!

    Jun 6, 2011
    2,675
    2,722
    You included no schematic, but here is the code from your .zip file. Post it like this next time, with CODE tags.

    Code (Text):
    1. #include "IRremote.h"
    2.  
    3. int receiver = 11; // Signal Pin of IR receiver to Arduino Digital Pin 11
    4.  
    5. /*-----( Declare objects )-----*/
    6. IRrecv irrecv(receiver);           // create instance of 'irrecv'
    7. decode_results results;            // create instance of 'decode_results'
    8.  
    9. void setup()   /*----( SETUP: RUNS ONCE )----*/
    10. {
    11.   Serial.begin(9600);
    12.   Serial.println("IR Receiver Button Decode");
    13.   irrecv.enableIRIn(); // Start the receiver
    14.  
    15. }/*--(end setup )---*/
    16.  
    17.  
    18. void loop()   /*----( LOOP: RUNS CONSTANTLY )----*/
    19. {
    20.   if (irrecv.decode(&results)) // have we received an IR signal?
    21.  
    22.   {
    23.     translateIR();
    24.     irrecv.resume(); // receive the next value
    25.   }
    26. }/* --(end main loop )-- */
    27.  
    28. /*-----( Function )-----*/
    29. void translateIR() // takes action based on IR code received
    30.  
    31. // describing Remote IR codes
    32.  
    33. {
    34.  
    35.   switch(results.value)
    36.  
    37.   {
    38.  
    39.   case 0xFF629D: Serial.println(" FORWARD"); break;
    40.   case 0xFF22DD: Serial.println(" LEFT");    break;
    41.   case 0xFF02FD: Serial.println(" -OK-");    break;
    42.   case 0xFFC23D: Serial.println(" RIGHT");   break;
    43.   case 0xFFA857: Serial.println(" REVERSE"); break;
    44.   case 0xFF6897: Serial.println(" 1");    break;
    45.   case 0xFF9867: Serial.println(" 2");    break;
    46.   case 0xFFB04F: Serial.println(" 3");    break;
    47.   case 0xFF30CF: Serial.println(" 4");    break;
    48.   case 0xFF18E7: Serial.println(" 5");    break;
    49.   case 0xFF7A85: Serial.println(" 6");    break;
    50.   case 0xFF10EF: Serial.println(" 7");    break;
    51.   case 0xFF38C7: Serial.println(" 8");    break;
    52.   case 0xFF5AA5: Serial.println(" 9");    break;
    53.   case 0xFF42BD: Serial.println(" *");    break;
    54.   case 0xFF4AB5: Serial.println(" 0");    break;
    55.   case 0xFF52AD: Serial.println(" #");    break;
    56.   case 0xFFFFFFFF: Serial.println(" REPEAT");break;
    57.  
    58.   default:
    59.     Serial.println(" other button   ");
    60.  
    61.   }// End Case
    62.  
    63.   delay(500); // Do not get immediate repeat
    64.  
    65.  
    66. } //END translateIR
    67.  
    68.  
    69.  
    70. /* ( THE END ) */
    71.  
     
  4. kjn468512

    Thread Starter New Member

    Sep 22, 2015
    4
    0
    I would I go about doing that. I have never posted a pdf file
     
  5. MikeML

    AAC Fanatic!

    Oct 2, 2009
    5,450
    1,066
    I didn't expect code; I expected a schematic diagram. Joey showed you how to post code.
     
  6. kjn468512

    Thread Starter New Member

    Sep 22, 2015
    4
    0
    I am sorry but I do not understand what you are saying. I sent a schematic , but I sent it in the wrong format. Is that what you are saying.
     
  7. crutschow

    Expert

    Mar 14, 2008
    12,991
    3,227
    Joey stated there was only code in your zip file, no schematic.
     
  8. kjn468512

    Thread Starter New Member

    Sep 22, 2015
    4
    0
    Hi guys
    Well how do I put a pdf file on the forum.
     
  9. KeepItSimpleStupid

    Well-Known Member

    Mar 4, 2014
    1,138
    200
    Hint: The "Upload a file" button. Dunno the rules of the forum, but many forums will not allow posting of files when you first join.

    I have the options: "Post reply" "Upload a file" "My attachments" and "More Options..."

    You have a misspelling: "broad" should be spelled "board"
     
  10. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,386
    1,605
    As far as I remember you needs 10 posts here to upload files.

    Perhaps some kind moderator can help you there.
     
  11. cmartinez

    AAC Fanatic!

    Jan 17, 2007
    3,555
    2,519
    that explains the OP's difficulties...
     
Loading...