GPS + RF433 Not working together.

  • @rafitc99 said in GPS + RF433 Not working together.:

    library it's not waiting for Serial.available()

    did you try manual waiting? Instead of delay, you can use mills, so the background works will keep run.

  • @salmanfaris said in GPS + RF433 Not working together.:

    @rafitc99 said in GPS + RF433 Not working together.:

    library it's not waiting for Serial.available()

    did you try manual waiting? Instead of delay, you can use mills, so the background works will keep run.

    Let me try.

  • @salmanfaris

    did you try manual waiting? Instead of delay, you can use mills, so the background works will keep run.

    Not working. Same problem.

  • @salmanfaris It's worked. 😇 Thank you @salmanfaris for your replies.

    Actually a small change in void loop is the solution

    void loop(){
        // Set buffer to size of expected message
        uint8_t buf[1];
        uint8_t buflen = sizeof(buf);
        // Check if received packet is correct size
      if (vw_get_message(message, &messageLength)) // non-blocking
        Serial.print("Potentiometer: ");
          received_number = message[i];
          if(received_number == 1){

    Used two simple if instead of Nested IF. idk what is the problem of first code. Also if I add any delay() inside void getGpsData() function, showing same problem.

  • @rafitc99
    Remember one thing...
    For all you guys who work with software serial or hardware serial...

    First and most important thing is while working with software serial... In loop remember that softwareSerial never generate interrupt while it receives any data as you can say triggers if condition... When it's turn comes it checks otherwise if condition will bypass so your target or trigger cannot be achieved....

    For hardware serial always prefer to use interrupt method to get data for each character you can receive simultaneously loops runs any function or not... It's surely you can get all the data from serial... Although mcu runs any kinds of task it leaves and goes on serial interrupt...

    So it's my experience and suggestions to all you guys to remeber this thing...

    If you all.come across the situations that there is no provision to use hardware serial and you need to use softwareSerial then remember that your loop must have intelligence to get the data from softwareserial by if condition which does not effect other functions in loop.. kindly for RF functions which must be used in loop that can't be avoided by any delay functionality... So Millis can be helpful or timer interrupt can help you...


Log in to reply

Recent Posts

  • Very much informative!!!!

    read more
  • If you are using raspberry pi as one of your main computers and have separate monitor, keyboard and mouse, then you might be tired of copy and pasting terminal commands and codes while doing projects with raspberry pi, because running chromium-browser and reading tutorial will pi slower and using a sperate keyboard and mouse use our workbench space too.

    recently I read a blog Share your keyboard and mouse between computers with Barrier by Gordon Hollingworth which is cool.

    In that blog, he mentioned a software called barrier, it's a software that will allow you to use a single keyboard and mouse to control multiple computers by physically turning a dial on the box to switch the machine you're controlling at any given moment. The barrier does this in software, allowing you to tell it which machine to control by moving your mouse to the edge of the screen, or by using a keypress to switch focus to a different system.

    Follow these to share your computer keyboard and mouse with the raspberry pi

    First, we need setup raspberry pi

    Step 1: Download and Install Raspberry Pi OS on SD Card

    Step 2: Connect raspberry pi to the wi-fi network

    Step 3: Install barrier, for that open your terminal (Ctrl + T) and paste or enter the following

    sudo apt install barrier

    Then click enter.

    Step 4: Setup barrier, Open barrier by typing barrier on the terminal, if you successfully installed the barrier you can see like this.


    Select option Client (Use another computer's mouse and keyboard) and Select Auto config option too, also note the Screen name, which we need for the server.

    That's all next we need to set up the desktop/laptop computer.

    Step 5: Download and Install barrier on desktop or laptop computer (The Server), download link

    Step 6: Set up the barrier by selecting Server and position your monitor on barrier software. 004.png

    To Position, the screen clicks the configure server.


    Here, to drag and drop the monitor icon to the desired position you need on the grid.


    double click the screen and set the screen name, you can obtain the screen name from the raspberry pi barrier client. (See Step 4)


    after setup, it should be like this. Then click OK


    in the following screen, click Apply and Just wait few seconds then try to move the mouse to the corner. Yes, It should work.

    read more
  • @rafitc99 Looks cool, Thanks for sharing. 👍

    read more
  • This is a speaker call for MakerChat by MakerGram. MakerChat is a webinar series where makers from different domain sharing their expertise with other fellow makers. MakerGram is an Open Community Platform for Makers and hardware enthusiasts to empower them by promoting learning, sharing and collaboration.




    read more
  • The Challenge

    Do you think you can come up with some interesting ideas revolving around Amazon Alexa? What if we could help you build that idea into a reality. Tell us about your idea and the best one wins an Amazon Alexa Echo Dot.

    🧲 Bonus points for those solutions involving Covid-19 or promoting social-distancing.


    Application - The application starts on 26th June 2020. Closing - The registration will end on 17th July 2020. Results - The results declared by last week of July

    For Registration:


    read more