<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Developers - theCorpora Support Forum				            </title>
            <link>https://thecorpora.com/community/developers/</link>
            <description>theCorpora Discussion Board</description>
            <language>en-GB</language>
            <lastBuildDate>Thu, 23 Apr 2026 14:26:07 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>Integration with React applicatioon</title>
                        <link>https://thecorpora.com/community/developers/integration-with-react-applicatioon/</link>
                        <pubDate>Wed, 10 Jan 2024 14:37:02 +0000</pubDate>
                        <description><![CDATA[Hello folks!I have an application written in React. The application consists in some great use cases like speech recognition, video calls...I&#039;m wondering if it is possible and how hard it is...]]></description>
                        <content:encoded><![CDATA[<p>Hello folks!<br /><br />I have an application written in React. The application consists in some great use cases like speech recognition, video calls...<br />I'm wondering if it is possible and how hard it is to integrate this application with the Q.bo.<br /><br />What I have in mind is to place my tablet on the Q.bo body and use the microfones, speakers, cameras... of the robot instead of the ones in the tablet<br />With the purpose of humanizing my application, so the final result would be the user basically talking with the Q.bo.<br /><br />I didn't found any content about that in the forum, and I'm just willing to know if this type of integrations are possible before I acquire the Q.bo.<br /><br />Thank you so much for your time and help,<br />Rodrigo</p>]]></content:encoded>
						                            <category domain="https://thecorpora.com/community/developers/">Developers</category>                        <dc:creator>rodrigobonatti</dc:creator>
                        <guid isPermaLink="true">https://thecorpora.com/community/developers/integration-with-react-applicatioon/</guid>
                    </item>
				                    <item>
                        <title>HAPPY 2021</title>
                        <link>https://thecorpora.com/community/developers/happy-2021/</link>
                        <pubDate>Wed, 30 Dec 2020 19:33:10 +0000</pubDate>
                        <description><![CDATA[I would like to close this year 2020 with a small gift to the forum community by posting test software for beginner programmerswhich in some way can be of help for an application teaching on...]]></description>
                        <content:encoded><![CDATA[<p>I would like to close this year 2020 with a small gift to the forum community by posting test software for beginner programmers<br />which in some way can be of help for an application teaching on the use of QBO.one<br />They are little tricks that in some way improve, in my opinion, the homologous programs in the / opt / qbo / * directory<br />All the proposed software runs on a directory located in "/ home / pi / QBO / QBO_BETA_0" and does not need any dependencies.<br />In particular I point out a test version for "Video Motion Detection", a<br />"face control tracker", I also added an "italian talker" as an example for the generation of a ROS node.<br />There are also programs that can replace facial search that should be more performing for PI3, compared to those present in the v3.0 beta for developers<br />which I believe have many problems with functioning.<br />I wish everyone a happy new year.</p>]]></content:encoded>
						                            <category domain="https://thecorpora.com/community/developers/">Developers</category>                        <dc:creator>romeo</dc:creator>
                        <guid isPermaLink="true">https://thecorpora.com/community/developers/happy-2021/</guid>
                    </item>
				                    <item>
                        <title>Some other way to get community support ? Chat ?</title>
                        <link>https://thecorpora.com/community/developers/some-other-way-to-get-community-support-chat/</link>
                        <pubDate>Mon, 09 Dec 2019 21:18:13 +0000</pubDate>
                        <description><![CDATA[Hello,I&#039;ve been browsing that forum for some time and every time I get angry by the lack of information and the time everything takes to load. I&#039;m wondering if we could set up some other way...]]></description>
                        <content:encoded><![CDATA[<p>Hello,</p><p>I've been browsing that forum for some time and every time I get angry by the lack of information and the time everything takes to load. I'm wondering if we could set up some other way to discuss between QBO users ? Maybe start a slack channel or IRC channel ? A wiki would also be a good fit for this kind of project. Not sure where to host it though.</p><p>Would people be interested in this ?</p><p>I have so many questions, on how to set up eyelids (well... definitely not priority), to how to use the additional microphones, to fix my current microphone that just hears static whatever I try....</p><p>Anyway ! Let me know if some of you are interested and I'll see what I can host.</p><p>Regards</p><p> </p>]]></content:encoded>
						                            <category domain="https://thecorpora.com/community/developers/">Developers</category>                        <dc:creator>Harut</dc:creator>
                        <guid isPermaLink="true">https://thecorpora.com/community/developers/some-other-way-to-get-community-support-chat/</guid>
                    </item>
				                    <item>
                        <title>Query about the Q.bo One Javascript Support</title>
                        <link>https://thecorpora.com/community/developers/query-about-the-q-bo-one-javascript-support/</link>
                        <pubDate>Sat, 10 Aug 2019 15:36:57 +0000</pubDate>
                        <description><![CDATA[Hi,I&#039;m currently an IT Professional updating my skills having learned HTML 4 and earlier version CSS support in high school and college during late 1990s and early 2000s. I&#039;m working on a be...]]></description>
                        <content:encoded><![CDATA[<p>Hi,</p><p>I'm currently an IT Professional updating my skills having learned HTML 4 and earlier version CSS support in high school and college during late 1990s and early 2000s. I'm working on a becoming a web developer and noticed that Q.bo One supports JavaScript. I'm wondering whether the JavaScript support is based on ECMA or the actual JavaScript language? Cause I'm currently learning this (ECMA) for my web development. Are currently wondering whether I would be able to use this knowledge to develop for your robotics platform?</p><p>Thank you for your time and attention in this matter.</p><p>Kind Regards,</p><p>MrGrymReaper</p>]]></content:encoded>
						                            <category domain="https://thecorpora.com/community/developers/">Developers</category>                        <dc:creator>MrGrymReaper</dc:creator>
                        <guid isPermaLink="true">https://thecorpora.com/community/developers/query-about-the-q-bo-one-javascript-support/</guid>
                    </item>
				                    <item>
                        <title>Ported to python 3.7.3</title>
                        <link>https://thecorpora.com/community/developers/ported-to-python-3-7-3/</link>
                        <pubDate>Sun, 04 Aug 2019 13:16:14 +0000</pubDate>
                        <description><![CDATA[I believe I have ported the base code to Python 3.x (in my case 3.7.3). Did someone else succeeded in doing this?I had to ran the following commands to make Qbo start in Python 3.x... in sho...]]></description>
                        <content:encoded><![CDATA[<p>I believe I have ported the base code to Python 3.x (in my case 3.7.3). Did someone else succeeded in doing this?</p><p>I had to ran the following commands to make Qbo start in Python 3.x... in short the 'print("...")' and 'except (error) as e:' (and some special stuff for snowboy) HotwordDetector in snowboydecoder). I am stuck now on Audio in QboTalk (which I posted in another <a href="http://thecorpora.com/community/raspberry-pi-3-model-b/raspberry-pi-4-model-b-audio/#post-544" target="true">thread</a>).</p><pre> # Adapt for Python 3<br />sed -i 's/python2/python3/g' /opt/qbo/Start.py<br />sed -i 's/python /python3 /g' /opt/qbo/scripts/QBO_PiFaceFast.sh<br />sed -i 's/except (IOError, ImportError), e:/except (IOError, ImportError) as e:/g' /opt/qbo/web/panel/views/moves_views.py<br />sed -i 's/import thread/import _thread/g' /opt/qbo/PiFaceFast.py<br />sed -i 's/print"\(.*\)$/print("\1)/g' /opt/qbo/PiFaceFast.py<br />sed -i 's/print "\(.*\)$/print("\1)/g' /opt/qbo/PiFaceFast.py<br />sed -i 's/ThreadedDetector/HotwordDetector/g' /opt/qbo/PiFaceFast.py<br />sed -i 's/snowboythreaded/snowboydecoder/g' /opt/qbo/PiFaceFast.py<br />sed -i 's/print "\(.*\)$/print("\1)/g' /opt/qbo/assistants/QboDialogFlowV2.py<br />sed -i 's/python/python3/g' /opt/qbo/assistants/QboDialogFlowV2.py<br />sed -i 's/python2/python3/g' /opt/qbo/assistants/QboGAssistant.py<br />sed -i 's/python/python3/g' /opt/qbo/assistants/QboMyCroft.py<br />sed -i 's/python2/python3/g' /opt/qbo/assistants/QboTalk.py<br />sed -i "s/print '\(.*\)$/print('\1)/g" /opt/qbo/assistants/QboTalk.py<br />sed -i 's/print "\(.*\)$/print("\1)/g' /opt/qbo/assistants/QboTalk.py<br />sed -i 's/python2/python3/g' /opt/qbo/assistants/QboTalkMycroft.py<br />sed -i 's/python2/python3/g' /opt/qbo/assistants/QboWatson.py<br />sed -i 's/print "\(.*\)$/print("\1)/g' /opt/qbo/assistants/QboWatson.py<br />sed -i 's/print"\(.*\)$/print("\1)/g' /opt/qbo/controller/QboController.py<br />sed -i 's/print "\(.*\)$/print("\1)/g' /opt/qbo/controller/QboController.py</pre>]]></content:encoded>
						                            <category domain="https://thecorpora.com/community/developers/">Developers</category>                        <dc:creator>chrisbuy</dc:creator>
                        <guid isPermaLink="true">https://thecorpora.com/community/developers/ported-to-python-3-7-3/</guid>
                    </item>
				                    <item>
                        <title>Instructions to videocall with your Q.bo One</title>
                        <link>https://thecorpora.com/community/developers/instructions-to-videocall-to-your-q-bo-one/</link>
                        <pubDate>Sat, 22 Jun 2019 19:42:36 +0000</pubDate>
                        <description><![CDATA[In attachment the instructions to videocall with your Q.bo One.Warning: Do make a backup of your SD card before attempting to try this (or be prepared to reinstall Q.bo One all over again ;-...]]></description>
                        <content:encoded><![CDATA[<p>In attachment the instructions to videocall with your Q.bo One.</p><p><strong>Warning:</strong> Do make a backup of your SD card before attempting to try this (or be prepared to reinstall Q.bo One all over again ;-)  ).  The UV4L WebRTC (might) interphere(s) with OpenCV used for face recognition. Investigating further...</p><div id="wpfa-4039" class="wpforo-attached-file"><a class="wpforo-default-attachment" href="//thecorpora.com/wp-content/uploads/wpforo/default_attachments/1561304958-install.pdf" target="_blank" rel="noopener">install.pdf</a></div>]]></content:encoded>
						                            <category domain="https://thecorpora.com/community/developers/">Developers</category>                        <dc:creator>chrisbuy</dc:creator>
                        <guid isPermaLink="true">https://thecorpora.com/community/developers/instructions-to-videocall-to-your-q-bo-one/</guid>
                    </item>
				                    <item>
                        <title>Speech Recognition not finding the QBO&#039;s microphone</title>
                        <link>https://thecorpora.com/community/developers/speech-recognition-not-finding-the-qbos-microphone/</link>
                        <pubDate>Tue, 28 May 2019 14:34:15 +0000</pubDate>
                        <description><![CDATA[Hi,I am trying to setup the QBO for speech recognition using Python3&#039;s speech_recognition library but seem to have stumbled over a hurdle which I can&#039;t get over as of yet. I am trying to fin...]]></description>
                        <content:encoded><![CDATA[<p>Hi,</p><p>I am trying to setup the QBO for speech recognition using Python3's speech_recognition library but seem to have stumbled over a hurdle which I can't get over as of yet. I am trying to find at least one of the in-built microphones using the speech_recognition's function:</p><p>sr.Microphone.list_microphone_names() </p><p>But it is returning the following output:</p><div>Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &amp;alsaPeriodFrames, &amp;dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 924</div><div>Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &amp;alsaPeriodFrames, &amp;dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 924</div><div>ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front</div><div>ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear</div><div>ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe</div><div>ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side</div><div>ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21</div><div>ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21</div><div>ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40</div><div>ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41</div><div>ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50</div><div>ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51</div><div>ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71</div><div>ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958</div><div>ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958</div><div>ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958</div><div>ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi</div><div>ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi</div><div>ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem</div><div>ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem</div><div>ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline</div><div>ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline</div><div>ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'</div><div>ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory</div><div>ALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory</div><div>ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa</div><div>ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'</div><div>ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory</div><div>ALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory</div><div>ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa</div><div>ALSA lib pcm_hw.c:1713:(_snd_pcm_hw_open) Invalid value for card</div><div>ALSA lib pcm_hw.c:1713:(_snd_pcm_hw_open) Invalid value for card</div><div>ALSA lib pcm_hw.c:1713:(_snd_pcm_hw_open) Invalid value for card</div><div>ALSA lib pcm_hw.c:1713:(_snd_pcm_hw_open) Invalid value for card</div><div>ALSA lib pcm_hw.c:1713:(_snd_pcm_hw_open) Invalid value for card</div><div>ALSA lib pcm_hw.c:1713:(_snd_pcm_hw_open) Invalid value for card</div><div>Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &amp;alsaPeriodFrames, &amp;dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 924</div><div>Cannot connect to server socket err = No such file or directory</div><div>Cannot connect to server request channel</div><div>jack server is not running or cannot be started</div><div>JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock</div><div>JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock</div><div>Microphone with name "<span style="text-decoration: underline">bcm2835 ALSA: IEC958/HDMI (hw:0,1)</span>" found for `<span style="text-decoration: underline">Microphone(device_index=0)</span>`</div><div>Microphone with name "<span style="text-decoration: underline">dmix</span>" found for `<span style="text-decoration: underline">Microphone(device_index=1)</span>`</div><div> </div><div>The underlined being the two microphone devices it found but upon further inspection, I found out that these are sound output devices which obviously do not suit my needs as I need to take voice input.</div><div> </div><div>Upon further research online I found that the microphone required is called: 'dmicQBO_sv'. Is there a way to find it or do I need to install anything to make it work?</div><div> </div><div>P.S. I am running on Python 3.5.2 and have the latest versions of speech_recognition and PyAudio installed. Moreover, I have upgrade to the latest version of Raspbian available right now.</div><div> </div><div>P.S.2 I have tried my code on another QBO device and the microphone mentioned above was still not found.</div><div> </div><div>Thanks in Advance.</div>]]></content:encoded>
						                            <category domain="https://thecorpora.com/community/developers/">Developers</category>                        <dc:creator>SrKleRMT</dc:creator>
                        <guid isPermaLink="true">https://thecorpora.com/community/developers/speech-recognition-not-finding-the-qbos-microphone/</guid>
                    </item>
				                    <item>
                        <title>Connecting to Q.bo</title>
                        <link>https://thecorpora.com/community/developers/connecting-to-q-bo/</link>
                        <pubDate>Wed, 22 May 2019 17:03:42 +0000</pubDate>
                        <description><![CDATA[Hi, I plugged in an hdmi and mouse and keyboard to the qbo and when I powered it on there was no video output. Q.bo was indeed on as the red led lit up. Any suggestions?]]></description>
                        <content:encoded><![CDATA[<p>Hi, I plugged in an hdmi and mouse and keyboard to the qbo and when I powered it on there was no video output. Q.bo was indeed on as the red led lit up. Any suggestions?</p>]]></content:encoded>
						                            <category domain="https://thecorpora.com/community/developers/">Developers</category>                        <dc:creator>MaharshiJ</dc:creator>
                        <guid isPermaLink="true">https://thecorpora.com/community/developers/connecting-to-q-bo/</guid>
                    </item>
				                    <item>
                        <title>Beginner Topics Mouth LED Matrix</title>
                        <link>https://thecorpora.com/community/developers/beginner-topics-mouth-led-matrix/</link>
                        <pubDate>Fri, 29 Mar 2019 23:05:22 +0000</pubDate>
                        <description><![CDATA[The QBO mouth is a 5 X 4 led matrix.  I found a website that lets you select the led pattern and it gives you the hexidecimal value.  There are two small issues:The rows are in reverse order...]]></description>
                        <content:encoded><![CDATA[<p>The QBO mouth is a 5 X 4 led matrix.  I found a website that lets you select the led pattern and it gives you the hexidecimal value.  There are two small issues:</p><ol><li>The rows are in reverse order.  So row four of the website is equal to row one of the QBO led matrix. </li><li>The website returns a value something like 000000001b1f0e04 and you will have to replace leading zeros with 0x.  So the website value will be  000000001b1f0e04  and you will have to change it to 0x1b1f0e04.</li></ol><p>Both of these issues are minor.  I just thought that I would mention them since this post is for beginners.</p><p><a href="https://xantorohara.github.io/led-matrix-editor/" target="true">https://xantorohara.github.io/led-matrix-editor/</a></p><p>Using the website editor you can select your pattern and use the value returned with QboCmd.py SetMouth function.</p><p> </p><p><span style="text-decoration: underline;color: #993366"><strong>Here is some sample code so you can play with it:</strong></span></p><p><span style="color: #ff6600">import</span> time<br /><span style="color: #ff6600">import</span> serial <span style="color: #ff0000">#handles the serial ports</span><br /><span style="color: #ff6600">import</span> QboCmd <span style="color: #ff0000">#holds some commands we can use for Qbo</span></p><p><span style="color: #ff0000">#set up ports for communicating with servos</span><br />port = '/dev/serial0'<br />ser = serial.Serial(port, baudrate=115200, bytesize = serial.EIGHTBITS, stopbits = serial.STOPBITS_ONE, parity = serial.PARITY_NONE, rtscts = False, dsrdtr =False, timeout = 0)<br />QBO = QboCmd.Controller(ser)</p><p>print("all")<br /><span style="color: #ff0000">#ALL LEDs value from website 000000001f1f1f1f  remember replace leading zeros with 0x</span><br />QBO.SetMouth(0x1f1f1f1f)  <br /><span style="color: #ff0000">#Pause</span><br />time.sleep(1)</p><p>print("oval")<br /><span style="color: #ff0000">#oval value from website 000000000e11110e  remember replace leading zeros with 0x</span><br />QBO.SetMouth(0x<span style="color: #000000">e11110e)</span><br /><span style="color: #ff0000">#Pause</span><br />time.sleep(1)</p><p>print("smile")<br /><span style="color: #ff0000">#smile -value from website  00000000110e0000  remember replace leading zeros with 0x</span><br />QBO.SetMouth(0x<span style="color: #000000">110e0000</span>)<br /><span style="color: #ff0000">#Pause</span><br />time.sleep(1)</p><p>print("sad")<br /><span style="color: #ff0000">#sad value from website  00000000000e1100  remember replace leading zeros with 0x</span><br />QBO.SetMouth(0x<span style="color: #000000">0e1100</span>)<br /><span style="color: #ff0000">#Pause</span><br />time.sleep(1)</p><p>print("serious")<br /><span style="color: #ff0000">#serious website value 00000000001f1f00  remember replace leading zeros with 0x</span><br />QBO.SetMouth(0x<span style="color: #000000">1f1f00)</span><br /><span style="color: #ff0000">#Pause</span><br />time.sleep(1)</p><p>print("love")<br /><span style="color: #ff0000">#love wesite value 000000001b1f0e04  remember replace leading zeros with 0x</span><br />QBO.SetMouth(0x<span style="color: #000000">1b1f0e04</span>)</p><p> </p>]]></content:encoded>
						                            <category domain="https://thecorpora.com/community/developers/">Developers</category>                        <dc:creator>BabySiss</dc:creator>
                        <guid isPermaLink="true">https://thecorpora.com/community/developers/beginner-topics-mouth-led-matrix/</guid>
                    </item>
				                    <item>
                        <title>Beginner Topics Moving QBO head</title>
                        <link>https://thecorpora.com/community/developers/beginner-topics-moving-qbo-head/</link>
                        <pubDate>Fri, 22 Mar 2019 23:58:56 +0000</pubDate>
                        <description><![CDATA[I thought I would start a thread for those of us just learning Python and trying to learn how to program our new robot. Just a note I am programming directly on my raspberry pi. I have a HDM...]]></description>
                        <content:encoded><![CDATA[<p>I thought I would start a thread for those of us just learning Python and trying to learn how to program our new robot. Just a note I am programming directly on my raspberry pi. I have a HDMI monitor and a keyboard and mouse hooked up to my Qbo. Secondly I am not using anything fancy to write my code right now. I am just using the PYTHON 2 IDLE that came pre-installed. One more thing to note the python code supplied with your Qbo is written in python 2.7.</p><p>Now on to some simple coding nothing fancy here folks. Inside of the /home/pi/Documents/Python projects is a file called QboCmd.py. This is an important file for us mere beginners. With in the file there are commands that we can use to control our Qbo.</p><p>Let’s just start with the controlling head movement. The head moves both along the X axis (left and right) and the Y axis (up and down).</p><p>First thing we need to import some files. Importing the files allows us to use the code with in those files. So what this means for us beginners is that someone really smart person wrote the hard stuff and we get to cheat off of them. We don’t need to re-invent the wheel. LOL</p><p><span style="color: #ff9900">import</span> time<br /><span style="color: #ff9900">import</span> serial <span style="color: #ff0000">#handles the serial ports</span><br /><span style="color: #ff9900">import</span> QboCmd <span style="color: #ff0000">#holds some commands we can use for Qbo</span></p><p><br /><span style="color: #ff0000">#set up ports for communicating with servos</span><br />port = '/dev/serial0'<br />ser = serial.Serial(port, baudrate=115200, bytesize = serial.EIGHTBITS, stopbits = serial.STOPBITS_ONE, parity = serial.PARITY_NONE, rtscts = False, dsrdtr =False, timeout = 0)<br />QBO = QboCmd.Controller(ser)</p><p><br />print("Start Positon")<br /><span style="color: #ff0000">#Set a start position</span> <br />QBO.SetServo(1,511, 100)#Axis,Angle,Speed<br />QBO.SetServo(2,450,100)#Axis,Angle,Speed<br />time.sleep(1)</p><p>print("Left Positon")<br /><span style="color: #ff0000">#Move the head to the left</span><br />QBO.SetServo(1,725, 100)#Axis,Angle,Speed<br /><span style="color: #ff0000">#Pause</span><br />time.sleep(1)</p><p>print("Start Positon")<br /><span style="color: #ff0000">#move it back to starting point</span><br />QBO.SetServo(1,511, 100)#Axis,Angle,Speed<br /><span style="color: #ff0000">#Pause</span><br />time.sleep(1)</p><p>print("Right Positon")<br /><span style="color: #ff0000">#Move the head to the right</span><br />QBO.SetServo(1,290, 100)#Axis,Angle,Speed<br /><span style="color: #ff0000">#Pause</span><br />time.sleep(1)</p><p>print("Start Positon")<br /><span style="color: #ff0000">#move it back to starting point</span><br />QBO.SetServo(1,511, 100)#Axis,Angle,Speed<br /><span style="color: #ff0000">#Pause</span><br />time.sleep(1)</p><p><span style="color: #ff0000">#moving the head up and down along Y axis</span></p><p>print("Up Positon")<br /><span style="color: #ff0000">#Move the head to the left</span><br />QBO.SetServo(2,530, 100)#Axis,Angle,Speed<br /><span style="color: #ff0000">#Pause</span><br />time.sleep(1)</p><p>print("Start Positon")<br /><span style="color: #ff0000">#move it back to starting point</span><br />QBO.SetServo(2,450,100)#Axis,Angle,Speed<br /><span style="color: #ff0000">#Pause</span><br />time.sleep(1)</p><p>print("Down Positon")<br /><span style="color: #ff0000">#Move the head to the right</span><br />QBO.SetServo(2,400, 100)#Axis,Angle,Speed<br /><span style="color: #ff0000">#Pause</span><br />time.sleep(1)</p><p><br />print("Start Positon")<br /><span style="color: #ff0000">#move it back to starting point</span><br />QBO.SetServo(2,450,100)#Axis,Angle,Speed<br /><span style="color: #ff0000">#Pause</span><br />time.sleep(1)</p><p> </p>]]></content:encoded>
						                            <category domain="https://thecorpora.com/community/developers/">Developers</category>                        <dc:creator>BabySiss</dc:creator>
                        <guid isPermaLink="true">https://thecorpora.com/community/developers/beginner-topics-moving-qbo-head/</guid>
                    </item>
							        </channel>
        </rss>
		