# Random R-Pi RP2040 Pico Thought Experiments

**URL:** <https://forum.core-electronics.com.au/t/random-r-pi-rp2040-pico-thought-experiments/13988>\
**Category:** Projects\
**Created:** [5 May 2022 10:38 UTC](https://forum.core-electronics.com.au/t/random-r-pi-rp2040-pico-thought-experiments/13988 "2022-05-05T10:38:55Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Victor153764](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/victor153764/32/6595_2.png) [@Victor153764](https://forum.core-electronics.com.au/u/Victor153764)\
**Post date:** [5 May 2022 10:38 UTC](https://forum.core-electronics.com.au/t/random-r-pi-rp2040-pico-thought-experiments/13988/1 "2022-05-05T10:38:55Z")

</div>

Hi Everyone,

Slowly making my way up the R-Pi RP2040 Pico learning curve by Mini Thought Experiments to gain a better understanding… learning by doing and problem solving when things don’t work first time.

---

<div class="post-metadata">

**Author:** ![Victor153764](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/victor153764/32/6595_2.png) [@Victor153764](https://forum.core-electronics.com.au/u/Victor153764)\
**Post date:** [5 May 2022 10:44 UTC](https://forum.core-electronics.com.au/t/random-r-pi-rp2040-pico-thought-experiments/13988/2 "2022-05-05T10:44:23Z")

</div>

Running two I2C channels to compare the data from dual PicoDev QMC6310 Magnetometers

 ![IMG_20220505_111218613](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/a/ae1509e4463787e5ac42fd1f0f4b125c4a89265a.jpeg)

 ![2022-04-28-103113_1920x1080_scrot](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/e/e9d75d4ed8fb6ea1e1b009f4fdd5b38739a64f42.png)

---

<div class="post-metadata">

**Author:** ![Victor153764](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/victor153764/32/6595_2.png) [@Victor153764](https://forum.core-electronics.com.au/u/Victor153764)\
**Post date:** [5 May 2022 10:56 UTC](https://forum.core-electronics.com.au/t/random-r-pi-rp2040-pico-thought-experiments/13988/3 "2022-05-05T10:56:20Z")

</div>

Revisiting BASIC (after a few decades!) using PicoMite BASIC on a R-Pi Pico

 ![PicoMite_LEDs](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/d/de3c580599e561085ab3245536c762657900bca6.jpeg)

references:

1. [Geoff Graham - PicoMite Project Page](https://geoffg.net/picomite.html)
2. [Explaining Computers YouTube](https://youtu.be/Cxmjy1nz6MM)
3. [Hackaday Article 24-Nov-2021](https://hackaday.com/2021/11/24/picomite-gives-your-pico-a-basic-with-all-the-features/)

Also uses a 4 LED board that can connect directly into an Extender board

 ![LED_Board](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/6/6251e0d4ba33353976bf5027be55be3e15de32bd.jpeg)

---

<div class="post-metadata">

**Author:** ![Victor153764](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/victor153764/32/6595_2.png) [@Victor153764](https://forum.core-electronics.com.au/u/Victor153764)\
**Post date:** [5 May 2022 11:18 UTC](https://forum.core-electronics.com.au/t/random-r-pi-rp2040-pico-thought-experiments/13988/4 "2022-05-05T11:18:49Z")

</div>

Previous work with @James46717

[sparkfun-micropressure-sensor-and-piicodev-unified-python-library](https://forum.core-electronics.com.au/t/sparkfun-micropressure-sensor-and-piicodev-unified-python-library/12483)

---

<div class="post-metadata">

**Author:** ![Victor153764](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/victor153764/32/6595_2.png) [@Victor153764](https://forum.core-electronics.com.au/u/Victor153764)\
**Post date:** [5 May 2022 16:26 UTC](https://forum.core-electronics.com.au/t/random-r-pi-rp2040-pico-thought-experiments/13988/5 "2022-05-05T16:26:52Z")

</div>

Ooops!

Re-routing the I2C PiicoDev cable from the Left connector (that has been used up to now) of an OLED SSD1306 module to the Right connector (for the first time) I managed to “wipe off” the socket…

 ![IMG_20220501_074348334_HDR](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/9/91030ec67994bfcb8084d8f66c2aafaad5c5037f.jpeg)

Ho Hum - Time to practice using the soldering iron with the Very Small Tip!  
Hope the solder will re-flow(?)

---

<div class="post-metadata">

**Author:** ![Liam120347](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/liam120347/32/5003_2.png) [@Liam120347](https://forum.core-electronics.com.au/u/Liam120347)\
**Post date:** [5 May 2022 21:48 UTC](https://forum.core-electronics.com.au/t/random-r-pi-rp2040-pico-thought-experiments/13988/6 "2022-05-05T21:48:34Z")

</div>

Hi Victor,

I’ve got a couple tips for hand soldering those connectors, First tack on one of the side mechanical connections, make sure the connector is flush(with it tacked you only have to reheat and push it down), then the other mechanical connection. Finally use a ton of solder to get the other 4 electrical pins soldered down - it doesn’t matter if there are any shorts, to remove them I get a solder sucker between the PCB and connector so there’s a bit of a gap.

Hope that helps if you have soldered if already!

---

<div class="post-metadata">

**Author:** ![Michael](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/michael/32/3545_2.png) [@Michael](https://forum.core-electronics.com.au/u/Michael)\
**Post date:** [5 May 2022 23:10 UTC](https://forum.core-electronics.com.au/t/random-r-pi-rp2040-pico-thought-experiments/13988/7 "2022-05-05T23:10:17Z")

</div>

> [@Victor153764](#):
>
> […] I managed to “wipe off” the socket…

What a doozy… Perhaps the connector body can be glued down first with eg. super glue before soldering - to provide the mechanical strength.

> [@Victor153764](#):
>
> Running two I2C channels to compare the data from dual PicoDev QMC6310 Magnetometers

This is great 😃 it’s really pleasing to see this (more advanced) feature of PiicoDev being used by makers. Even more pleasing to see the two sensors agree so closely 👌

---

<div class="post-metadata">

**Author:** ![Victor153764](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/victor153764/32/6595_2.png) [@Victor153764](https://forum.core-electronics.com.au/u/Victor153764)\
**Post date:** [6 May 2022 11:04 UTC](https://forum.core-electronics.com.au/t/random-r-pi-rp2040-pico-thought-experiments/13988/8 "2022-05-06T11:04:49Z")

</div>

> [@Michael](#):
>
> > [@Victor153764](#):
> >
> > […] I managed to “wipe off” the socket…
> 
> What a doozy… Perhaps the connector body can be glued down first with eg. super glue before soldering - to provide the mechanical strength.

Thank you for the guidance - I was wondering if super glue would be OK to improve things  
I might flow a little glue under the other connector just in case.

> [@Michael](#):
>
> > [@Victor153764](#):
> >
> > Running two I2C channels to compare the data from dual PicoDev QMC6310 Magnetometers
> 
> This is great 😃 it’s really pleasing to see this (more advanced) feature of PiicoDev being used by makers. Even more pleasing to see the two sensors agree so closely 👌

The results were interesting - where I am considering a more careful re-run of the calibration process when I get further into the project. Rotating each sensor with all the cables isn’t that easy!.

I was wondering if there was a reference to more detail on the calibration process? - as there appear to be alternative schemes (such as 3 axis 90 **°** flips) suggested for other I2C magnetometer sensors.

---

<div class="post-metadata">

**Author:** ![Victor153764](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/victor153764/32/6595_2.png) [@Victor153764](https://forum.core-electronics.com.au/u/Victor153764)\
**Post date:** [7 May 2022 20:37 UTC](https://forum.core-electronics.com.au/t/random-r-pi-rp2040-pico-thought-experiments/13988/9 "2022-05-07T20:37:57Z")

</div>

> [@Victor153764](#):
>
> OLED SSD1306 module […] I managed to “wipe off” the socket…

Super Glue worked really well - was able to position the socket in its original position and then reflow. Worked first time!

Thank you @Liam120347 & @Michael for the suggestions.

---

<div class="post-metadata">

**Author:** ![Michael](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/michael/32/3545_2.png) [@Michael](https://forum.core-electronics.com.au/u/Michael)\
**Post date:** [8 May 2022 23:14 UTC](https://forum.core-electronics.com.au/t/random-r-pi-rp2040-pico-thought-experiments/13988/10 "2022-05-08T23:14:39Z")

</div>

> [@Victor153764](#):
>
> I was wondering if there was a reference to more detail on the calibration process? - as there appear to be alternative schemes (such as 3 axis 90 **°** flips) suggested for other I2C magnetometer sensors.

3D calibration is supported by the PiicoDev calibration function too. Take a peek inside the calibration `.log` file and you ought to see z data in there.  
In the tutorials, we focus on calibrating on the 2D plane since it’s a little easier for beginners to perform, and you can make a compass work most easily.

Our calibration method currently looks for the `max` and `min` for each axis and places the `zero` at the mid point between these points.

---

<div class="post-metadata">

**Author:** ![Victor153764](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/victor153764/32/6595_2.png) [@Victor153764](https://forum.core-electronics.com.au/u/Victor153764)\
**Post date:** [14 May 2022 06:46 UTC](https://forum.core-electronics.com.au/t/random-r-pi-rp2040-pico-thought-experiments/13988/11 "2022-05-14T06:46:36Z")

</div>

Thank you Michael…

Following your explanation I re-discovered The Factory video

[Calibrating Magnetometers & Raw Data Applications - More than a Compass](https://youtu.be/5S36KBI_TpI)

where you explore the magnetometer data with Peter  
…with the data plot to illustrate the “why” and the “what” of the calibration process.

 ![image](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/f/fc2f2b15b70787903134e7c7b4b149e22af1ee00.jpeg)

… So I had already seen the answer to my future question  
(wish my mind was better at storing and recalling such things!  
Information overload and “Not seeing the wood for all the trees” 🤔 )

🙂
