I’m building a robot by raspberry pi and arduino . I want it can charge automatic.I mean the robot can find the charger station by itself. But I don’t know what kind of sensor can make it true. Wifi and bluetooth not a good choose. So any ideas can make it true? Thank you!

  • 5
    $\begingroup$ I'm voting to close this question as off-topic because it is about robotics, not Arduino. $\endgroup$
    – Chris Stratton
    Jul 12, 2017 at 8:16
  • $\begingroup$ @ChrisStratton I'm sorry $\endgroup$
    – Cheng Jeiry
    Jul 12, 2017 at 9:21

1 Answer 1


This problem has been solved in automated commercial vacuum cleaners. However most articles on the subject simply state the cleaners find the infrared signal and follow it back to the charger. The details are missing. Regardless we can speculate.

Consider the charger station constantly emits a modulated infrared signal similar to that of a TV remote control. Consider the robot has an infrared receiver similar to that of a TV designed to detect the modulated infrared signal.

The problem, this will not work as the infrared receiver used in TVs and other entertainment equipment contains an Automated Gain Control (AGC) circuit which will compensate for weak signals making it impossible to tell which direction the signal is the strongest in. In other words, which direction the charger is in.

To solve this we need to use an infrared beam interrupter receiver. This is similar to the infrared receivers found in TV but with out the AGC circuit. They are designed to detect when an object is in the way.

Using an infrared beam interrupter receiver, we can rotate or oscillate the robot as it moves to find the direction in which the charger is in.

The more infrared beam interrupter receivers placed on the robot and pointed in slightly different directions, the less the robot has to rotate or oscillate to find the direction in which the charger is in.

  • 1
    $\begingroup$ I saw something about these a few years ago. The base station projected an infrared grid on the ceiling of the room, the robot had a camera mounted to the top which looked at the IR map. Using the map for guidance, it was able to find its way back to the base station. $\endgroup$
    – Matt
    Jul 12, 2017 at 14:05
  • $\begingroup$ That sounds very complex. Might have to use OpenCV or similar software to decode the patten on the ceiling. Hows about something extremely simple. If you like it, follow up with a comment and I can elaborate (BTW, do edit your question to get it off "hold".) Hows about simply putting pattens on the floor. Start with a simple line. And follow any tutorial regarding line following robots. $\endgroup$
    – st2000
    Jul 12, 2017 at 15:40
  • $\begingroup$ ya I'm interesting on it. But I don't know what is that mean(do edit your question to get it off "hold"). I'm new on stackoverflow.com. could you tell me how to do it? please. $\endgroup$ Jul 13, 2017 at 1:51
  • $\begingroup$ Looks like your question was migrated because it was not specifically a question about Arduinos. So, if the people in stackexchange Robotics are ok w/it, then you can leave it along. Just remember, the best questions are clearly stated and on subject with respect to the group. Both questions and answers can be edited in an effort to converge on the best solution. The ultimate goal is to have a search-able data base of well defined questions and informative answers. $\endgroup$
    – st2000
    Jul 13, 2017 at 3:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.