MakerGram Logo

    MakerGram

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Tags
    • Users
    • Groups
    1. Home
    2. shahidpk
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 8
    • Best 2
    • Controversial 0
    • Groups 3

    shahidpk

    @shahidpk

    Electronics engineer

    2
    Reputation
    18
    Profile views
    8
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    shahidpk Unfollow Follow
    PCB Designers Raspberry Pi Hackers Arduino Lovers

    Best posts made by shahidpk

    • Need Help on EM-18 reader module and arduino ||Want to read RFID continuously/ periodically

      i am working with arduino and EM-18 Reader module. i have a code for reading different cards. But,it reads the card once and return the card data. i want to read the same card continuously or periodically using that module to detect the presence of the card on the reader module to do a specific task. simply, i want to get a high signal on a pin as long as there is a right a right card in the reader range .and the signal should be low if the card is away from the range of the reader.
      i have a code to read a card. for the operation that i mentioned above, what changes should i make in that code . or please provide a proper code. please Help !!!!!

      char input[12];                        
      int Number;
      
      void setup() {                       
        Serial.begin(9600);                                       
      }
      
      void loop() {                         
        if(Serial.available())             
        {
          int count = 0;
          while(Serial.available() && count < 12)
          {
            input[count] = Serial.read();
            count++;
            delay(5);
          }
          if(input[0] == '6' && input[1] == 'D' && input[2] == '0' && input[3] == '0' &&
             input[4] == '9' && input[5] == '4' && input[6] == 'D' && input[7] == '4' &&
             input[8] == '8' && input[9] == '1' && input[10] == 'A' && input[11] == 'C' )  //if the card id read is 6D0094D481AC
          {
            Number=1;                    
            Serial.println("GROUP 1"); 
          }
          else if(input[0] == '6' && input[1] == 'D' && input[2] == '0' && input[3] == '0' &&
             input[4] == '9' && input[5] == '4' && input[6] == 'D' && input[7] == '6' &&
             input[8] == 'F' && input[9] == 'F' && input[10] == 'D' && input[11] == '0' )    //if the read card id is 6D0094D6FFD0
          {
            Number=2;                   
            Serial.println("GROUP 2");
          }
           else if(input[0] == '6' && input[1] == 'D' && input[2] == '0' && input[3] == '0' &&
             input[4] == '9' && input[5] == '4' && input[6] == '9' && input[7] == 'C' &&
             input[8] == 'B' && input[9] == 'B' && input[10] == 'D' && input[11] == 'E' )
          {
            Number=3;
            Serial.println("GROUP 3");
          }
           else if(input[0] == '6' && input[1] == 'D' && input[2] == '0' && input[3] == '0' &&
             input[4] == '9' && input[5] == '4' && input[6] == 'B' && input[7] == '5' &&
             input[8] == 'E' && input[9] == 'B' && input[10] == 'A' && input[11] == '7' )
          {
            Number=4;
            Serial.println("GROUP 4");
          }
           else if(input[0] == '6' && input[1] == 'D' && input[2] == '0' && input[3] == '0' &&
             input[4] == '9' && input[5] == '4' && input[6] == 'C' && input[7] == '0' &&
             input[8] == '2' && input[9] == '3' && input[10] == '1' && input[11] == 'A' )
          {
            Number=5;
            Serial.println("GROUP 5");
         }
        }
      }
      

      😕 please Help

      posted in Arduino
      S
      shahidpk
    • RE: Need Help on EM-18 reader module and arduino ||Want to read RFID continuously/ periodically

      @kowshik1729 i am working on it. When vcc is reconnecting the module re-reads the card. It take about 1 seconds maximum to read it.

      posted in Arduino
      S
      shahidpk

    Latest posts made by shahidpk

    • RE: Need Help on EM-18 reader module and arduino ||Want to read RFID continuously/ periodically

      @kowshik1729 a simple npn transistor such as BC547 is enough for this.No need of MOSFET. EM-18 module draws 50mA current. I already tried it. But, No luck. I think, any changes are needed in my code.

      posted in Arduino
      S
      shahidpk
    • RE: Need Help on EM-18 reader module and arduino ||Want to read RFID continuously/ periodically

      @salmanfaris i have tried in all my ways... when power on in the absence of card. Shows no card. And led connected to indicate it is low(set by program on arduino pin 3). When card is placed it reads card and led light up. BUT it stay on always till power off. And once the card is placed. Then there is any change if card is removed. I noticed that by placing an led on tx pin of module, there is always a high signal from module. And when card is placing a small blink is seen. I think data stream. 😌😓

      posted in Arduino
      S
      shahidpk
    • RE: Need Help on EM-18 reader module and arduino ||Want to read RFID continuously/ periodically

      @kowshik1729 i am working on it. When vcc is reconnecting the module re-reads the card. It take about 1 seconds maximum to read it.

      posted in Arduino
      S
      shahidpk
    • RE: Error in burning bootloader to Atmega328P || NEED HELP!!!

      @manthan555 Thanks

      posted in Arduino
      S
      shahidpk
    • Error in burning bootloader to Atmega328P || NEED HELP!!!

      i brought an ATmega328P MCU with arduino bootloader.And programmed it few times. Worked without any error. But, once i tried to upload a program to it, it won't upload. and i checked the blinking of 13 rd pin won't blinking when reset. So, i thought bootloader is missing and tried to upload bootloader. But get some error. Help please. Error message given below

      Arduino: 1.8.12 (Linux), Board: "Arduino Uno"
      
      /snap/arduino/7/hardware/tools/avr/bin/avrdude -C/snap/arduino/7/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -P/dev/ttyACM0 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xDE:m -Ulfuse:w:0xFF:m 
      
      avrdude: Version 6.3-20190619
               Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
               Copyright (c) 2007-2014 Joerg Wunsch
      
               System wide configuration file is "/snap/arduino/7/hardware/tools/avr/etc/avrdude.conf"
               User configuration file is "/home/shahid/snap/arduino/7/.avrduderc"
               User configuration file does not exist or is not a regular file, skipping
      
               Using Port                    : /dev/ttyACM0
               Using Programmer              : stk500v1
               Overriding Baud Rate          : 19200
               AVR Part                      : ATmega328P
               Chip Erase delay              : 9000 us
               PAGEL                         : PD7
               BS2                           : PC2
               RESET disposition             : dedicated
               RETRY pulse                   : SCK
               serial program mode           : yes
               parallel program mode         : yes
               Timeout                       : 200
               StabDelay                     : 100
               CmdexeDelay                   : 25
               SyncLoops                     : 32
               ByteDelay                     : 0
               PollIndex                     : 3
               PollValue                     : 0x53
               Memory Detail                 :
      
                                        Block Poll               Page                       Polled
                 Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
                 ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
                 eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
                 flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
                 lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
                 hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
                 efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
                 lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
                 calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
                 signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
      
               Programmer Type : STK500
               Description     : Atmel STK500 Version 1.x firmware
               Hardware Version: 2
               Firmware Version: 1.18
               Topcard         : Unknown
               Vtarget         : 0.0 V
               Varef           : 0.0 V
               Oscillator      : Off
               SCK period      : 0.1 us
      
      avrdude: AVR device initialized and ready to accept instructions
      
      Reading | Error while burning bootloader.
      ################################################## | 100% 0.02s
      
      avrdude: Device signature = 0x00ff00
      avrdude: Expected signature for ATmega328P is 1E 95 0F
               Double check chip, or use -F to override this check.
      
      avrdude done.  Thank you.
      

      when i connect an external supply during bootloader burning the device signature shows as 0x00ff00. and when i connect power to ic from arduino uno 5v pin the device signature is 0x000000😕 😕 😕

      posted in Arduino
      S
      shahidpk
    • RE: Need Help on EM-18 reader module and arduino ||Want to read RFID continuously/ periodically

      @kowshik1729 yup. I had seen it somewhere

      posted in Arduino
      S
      shahidpk
    • RE: Need Help on EM-18 reader module and arduino ||Want to read RFID continuously/ periodically

      @salmanfaris ok, lemme try

      posted in Arduino
      S
      shahidpk
    • Need Help on EM-18 reader module and arduino ||Want to read RFID continuously/ periodically

      i am working with arduino and EM-18 Reader module. i have a code for reading different cards. But,it reads the card once and return the card data. i want to read the same card continuously or periodically using that module to detect the presence of the card on the reader module to do a specific task. simply, i want to get a high signal on a pin as long as there is a right a right card in the reader range .and the signal should be low if the card is away from the range of the reader.
      i have a code to read a card. for the operation that i mentioned above, what changes should i make in that code . or please provide a proper code. please Help !!!!!

      char input[12];                        
      int Number;
      
      void setup() {                       
        Serial.begin(9600);                                       
      }
      
      void loop() {                         
        if(Serial.available())             
        {
          int count = 0;
          while(Serial.available() && count < 12)
          {
            input[count] = Serial.read();
            count++;
            delay(5);
          }
          if(input[0] == '6' && input[1] == 'D' && input[2] == '0' && input[3] == '0' &&
             input[4] == '9' && input[5] == '4' && input[6] == 'D' && input[7] == '4' &&
             input[8] == '8' && input[9] == '1' && input[10] == 'A' && input[11] == 'C' )  //if the card id read is 6D0094D481AC
          {
            Number=1;                    
            Serial.println("GROUP 1"); 
          }
          else if(input[0] == '6' && input[1] == 'D' && input[2] == '0' && input[3] == '0' &&
             input[4] == '9' && input[5] == '4' && input[6] == 'D' && input[7] == '6' &&
             input[8] == 'F' && input[9] == 'F' && input[10] == 'D' && input[11] == '0' )    //if the read card id is 6D0094D6FFD0
          {
            Number=2;                   
            Serial.println("GROUP 2");
          }
           else if(input[0] == '6' && input[1] == 'D' && input[2] == '0' && input[3] == '0' &&
             input[4] == '9' && input[5] == '4' && input[6] == '9' && input[7] == 'C' &&
             input[8] == 'B' && input[9] == 'B' && input[10] == 'D' && input[11] == 'E' )
          {
            Number=3;
            Serial.println("GROUP 3");
          }
           else if(input[0] == '6' && input[1] == 'D' && input[2] == '0' && input[3] == '0' &&
             input[4] == '9' && input[5] == '4' && input[6] == 'B' && input[7] == '5' &&
             input[8] == 'E' && input[9] == 'B' && input[10] == 'A' && input[11] == '7' )
          {
            Number=4;
            Serial.println("GROUP 4");
          }
           else if(input[0] == '6' && input[1] == 'D' && input[2] == '0' && input[3] == '0' &&
             input[4] == '9' && input[5] == '4' && input[6] == 'C' && input[7] == '0' &&
             input[8] == '2' && input[9] == '3' && input[10] == '1' && input[11] == 'A' )
          {
            Number=5;
            Serial.println("GROUP 5");
         }
        }
      }
      

      😕 please Help

      posted in Arduino
      S
      shahidpk