Qwen Local AI Powered PiDog

I am working on a new project. My main aim is to isolate Brain/Body functions so the Pi is only responsible for simple hardware calls and the logic and intelligence managed by a network PC So far I have written

Module Ochestrator

Initialization and Test script

Hardware cleanup script

XMLRPC Server allowing global control of Robot_Hat hardware by all modules, API methods built from existing SDK native commands with capacity for custom commands. (Body)

Voice Module that Converts Speech to Text. Processes it using wifi link to PC with GPU AI model. Then sends text to Kokoro also hosted on PC, finally sending the WAV to robot to play. (Brain)

Personality module, has a dictionary of words mapped to actions. STT response from AI is filtered for keywords and fires the mapped action off the XMLRPC server.

Here is my github.

If this interests you I could perhaps write a how to guide.

1 Like

Thank you very much for sharing this project with the SunFounder community, and for the effort you have put into PiDog. Separating the Brain and Body so that the Raspberry Pi only handles hardware calls while the LLM and TTS run on a GPU-equipped PC is a very clear approach. Wrapping Robot HAT over XMLRPC, the voice pipeline (STT → PC-side model → Kokoro TTS → WAV sent back to the robot for playback), and the keyword-to-action Personality mapping are all valuable ideas worth referencing — it is clear you have put a lot of careful work into this.

Our official tutorials currently focus mainly on online LLM solutions, and your local-LLM implementation is a different and interesting approach. You have already shared this in the forum, and we believe it will be helpful to many users who want to try local LLMs. If customers ask us about similar setups in the future, we may point them to your post.

Thank you again for sharing, and we look forward to seeing more of your work in the community.

Thankyou for your kind comments.

The architecture at a high level looks like this.

I am currently working on a readme, that can walk someone through setting this up, currently the git is tailored to my system, but I am working on making the files more generic. It also works on even the smallest graphics card. (4gb)

I am also working on the room scan module and this will be my next git push.

I have now generalized the config and created a setup script with readme. All now live in github.

Let me know if you test it. I tried to incorporate any linux OS as the AI Server. And any GPU model.

I also added the room mapping module. Although this is brand new and not tested thoroughly. Be careful if you try it.

1 Like

Thanks for the update! Generalizing the config, adding the setup script and readme, and making the AI Server work across any Linux distro and GPU model is a real help to the community. We’ve noted your repository and description and passed them to our technical team for evaluation — feel free to reach out anytime if you’d like specific technical feedback.