Search Results - microcontroller

Home Forums Search Search Results for 'microcontroller'

Viewing 15 results - 16 through 30 (of 127 total)
  • Author
    Search Results
  • Sma7466
    Participant

    I made a transmitter and receiver using PIC 16F877A. It is designed for 8MHz and I am using zigbee module as transceiver. But I used 20MHz crystal while prototyping. It works fine but both the microcontroller should be powered simultaneously. (WHY ?)

    Then I changed the frequency to 20MHz and reburned the IC. Now it is not working in wireless mode. In wired mode it is too lag to blink the led at the receiver.

    Transmitting part consist of 3 switches and receiver section consists of 3 LEDs. Baud rate is 9600.

    Ligo George
    Keymaster

    You can follow the tutorial, Interfacing Keypad with PIC Microcontroller. I think you will be using an LCD also in this project. If so you can display a menu in the LCD. Based on the menu you can select the direction of motor rotation. You can create one menu to adjust the speed or duty cycle of the PWM. Enter the value of duty cycle (0 ~ 100%) using the keypad.

    #13580
    Ligo George
    Keymaster

    It is very easy to do. Simply follow our first two MPLAB XC8 Tutorials, if you want to do it without using any interrupts. The only thing that you need to take care is the LAT register. PIC 18F microcontrollers have LAT register to solve Read Modify Write problems. So for writing data (controlling LED) you need to use LAT register instead of PORT. But for reading data you can use PORT as before.

    Here is the logic.

    1. If switch 1 is pressed toggle the LED 1
    2. If switch 2 is pressed toggle the LED2
    3. If switch 3 is pressed toggle the LED3
    4. If switch 4 is pressed toggle the LED4

     

    hammed
    Participant

    Hi,

    I’m presently working on a project based on tutorials Interfacing DC Motor with PIC Microcontroller and DC Motor Speed Control using PWM. I need some help to modify the code so that a keypad can control both the speed and direction of the DC Motor. Thanks for always helping.

    Hammed.

    #13513
    Ligo George
    Keymaster

    Hi,

    Kindly attach your project files to investigate further. Check the following also.

    1. Make sure that you selected PIC 16F877A in the project settings. PIC 16F877 and 16F877A are different microcontrollers.
    2. You don’t need to check MCLR in the PICkit2 software
    3. You can uncheck Programmer >> Manual Device Select, PICkit2 will automatically detect the microcontroller. So you don’t need to select it manually.
    4. Make sure that the microcontroller you are using is PIC 16F877A not 16F877.
    5. If everything is correct, try using a new microcontroller ic.
    Nizar
    Participant

    Hi,

    I am a beginner in this field. I am using PIC 16F877A microcontroller for my project. Everything is working fine in Proteus but in real hardware I am not even able to write the program to the IC. Screenshot of the error is attached.

     

    #13467
    Ligo George
    Keymaster

    You can do that. Just need to read one by one. See below.

    1. Send trigger to first HC-SR04
    2. Start timer
    3. Listen for echo.
    4. Stop timer once you got the echo
    5. Convert timer value to distance (first distance)
    6. Send trigger to second HC-SR04
    7. Start timer
    8. Listen for echo
    9. Stop timer once you got the echo
    10. Convert timer value to distance (second distance)

    So it is easy. A microcontroller can do above steps very fastly, so it will appear to you that both sensors are reading simultaneously.

    #13461
    charmi pabari
    Participant

    How can I interface two HC-SR04 ultrasonic distance sensor with PIC 16F877A using a single timer (timer 1) ?

    #13460
    Ligo George
    Keymaster

    Can you please explain in details ?

    You can use a CCP module in Capture OR Compare OR PWM mode. It will work only in one mode at a time. You may use PIC microcontrollers with multiple CCP modules to use Capture and Compare mode together.

    #13451
    John Jason
    Participant

    Hi Ligo George,

    Thank you so much for your valuable feedback.

    As my project time is running out, i would like to check if i can just program where if i bring the RFID Key Fob near, the EM-18 sends signal 1 to the 18F4550 microcontroller and from there i can make it enable something. Is this possible? (means i do not need to worry if the RFID is legitimate or not)

    Once again thank you!

     

    John

    #13450
    Ligo George
    Keymaster

    Hi,

    Firstly MPLAB X IDE is a development environment while MPLAB XC8 is a compiler. So you can use MPLAB XC8 compiler with your MPLAB X IDE v3.20.

    Seems like you have some connection problems. LCD backlight will work even if the microcontroller program is wrong.

    Secondly in that project we are using PIC 16F877A, so that hex file won’t work for PIC 18F4550. So you need make necessary changes in the program and rebuild it for 18F4550.

    #13445
    John Jason
    Participant

    Referring to the article : Integrating EM-18 RFID Module with PIC Microcontroller

    I’m doing a project to make a prototype door lock when the RFID tag is detected by the EM-18.

    I am using MPLAB X IDE v3.20 to program. Realizing that the code only supports MPLAB XC8, i tried to upload the hex file straight to my PIC18F4550 without building it on my IDE software.

    However, the LCD is not displaying anything.

    Is there anyway i can get my LCD to work with the code?

    #13429
    Ligo George
    Keymaster

    You may use a small microcontroller for that, a very simple program will work for this.

    #13389
    Ligo George
    Keymaster

    Which part is not working ? Can you please elaborate ? You can refer the following tutorials also.

    We are also providing premium support, you can write to [email protected] for that.

    #13385
    ahmadtanveer
    Participant

    Hi,

    I want to generate SPWM using pic microcontroller. I found half of the code online. But Code is not complete. Can Anyone help me to complete this code?

     

Viewing 15 results - 16 through 30 (of 127 total)
>