<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mohsen Faraji on Medium]]></title>
        <description><![CDATA[Stories by Mohsen Faraji on Medium]]></description>
        <link>https://medium.com/@mosn?source=rss-abef6bd0af29------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*kbWMaNybWXw_2_Du5DvHzQ.jpeg</url>
            <title>Stories by Mohsen Faraji on Medium</title>
            <link>https://medium.com/@mosn?source=rss-abef6bd0af29------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 01:48:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mosn/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Orca Slicer Layers Issue on ELEGOO Centauri Carbon]]></title>
            <link>https://medium.com/its-the-forge/orca-slicer-layers-issue-on-elegoo-centauri-carbon-9bf0a528cbf9?source=rss-abef6bd0af29------2</link>
            <guid isPermaLink="false">https://medium.com/p/9bf0a528cbf9</guid>
            <category><![CDATA[elegoo]]></category>
            <category><![CDATA[orca-slicer]]></category>
            <category><![CDATA[3d-printing]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[centauri-carbon]]></category>
            <dc:creator><![CDATA[Mohsen Faraji]]></dc:creator>
            <pubDate>Tue, 07 Apr 2026 00:05:18 GMT</pubDate>
            <atom:updated>2026-04-07T00:05:18.263Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Y_m4WGalv6vikk-m.jpeg" /></figure><p>After getting my new CC printer and using ELEGOO Slicer for a while, I was reviewing other slicers and decided to go with the Orca Slicer because it will give me more options and can be useful for me. Also, Elegoo Slicer has the same interface but with more limited options, so why not?</p><h3>Regretting the Orca Slicer??!!!</h3><p>So, I decided to use the slicer for 1 week, and I must say that yeah, it was much better for me to use the Orca, because:</p><ul><li>It has more frequent updates</li><li>Strong community that helps solve issues</li><li>More presents and filament profiles</li><li>More tools for customising the models</li><li>More settings and options to tinker with</li></ul><p>Also, I can be sure that I can use it in the future for other printers that I purchase. But it has a deal-breaking issue with it, and that was: <strong>“WILL NOT SHOW LAYERS PROGRESS AND NOT WORKING TIMELAPS!!!”</strong> on my ELEGOO Centauri Carbon.</p><h3>Let me explain more about the issue:</h3><p>I tried different options but couldn’t find the issue. I tried different ways of G-Code generation, layer setting, way of uploading files, and more. So, I started digging into the internet and finally found an answer and a <a href="https://www.reddit.com/r/elegoo/comments/1mjr3wp/comment/n7d7n7l/">conversation</a> about it on Reddit, which I will describe more about it in detail.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8uBfEx8RZjsgBvd_.jpeg" /></figure><h3>What is the problem?</h3><p>Mainly the problem which I faced is coming to the way that Elegoo Carbon handle layer, it need to be told when a layer is done to go for next layer with having the total number of layer this can cause not showing the layer progress on display and also not working time-laps camera in result. Because the time-laps will capture a photo at the end of each layer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CJdkKwRCPP4GAgGm.jpeg" /></figure><p>So because of that I was like it can be because of the default G-code which Elegoo Slicer is creating has some more data which the Orca Slicer will not generate.</p><p>Because of that I was searching in internet and experimenting different setting which came to this solution which I mentioned above in a conversation. You can solve the issue by the soltion which we have in following.</p><h3>How solve it?</h3><p>After investigating, I found that the issue comes from the default machine G-code defined in Orca for the ELEGOO CC. The problem is that some lines are missing in both the default start G-code and the layer change G-code.</p><ul><li>One line was missing in “Machine start G-code”</li><li>One line was missing in “Machine change G-code”</li></ul><p><em>Note: In the images, the left side shows the Orca default settings, and the right side shows the settings from ElegooSlicer.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WlEZU1pZDny2XDmb.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SnufMr0GGQN51u0N.png" /></figure><h3>Solution</h3><p>To fix this problem, go to the printer settings in Orca Slicer, then open the <strong>“Machine G-Code”</strong> tab and follow the steps below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*s_UY_hMB9vE7nk9i.png" /></figure><p>Step1: Add this line to the end of default <strong>“Machine start G-code”</strong>:</p><pre>;LAYER_COUNT:[total_layer_count]<br>;LAYER:0<br>SET_PRINT_STATS_INFO TOTAL_LAYER=[total_layer_count]</pre><p>Step 2: Then go to <strong>“Machine change G-code”</strong> and add this code there:</p><pre>;LAYER:{layer_num+1}<br>SET_PRINT_STATS_INFO CURRENT_LAYER={layer_num + 1}</pre><p>This is full <strong>updated G-code file</strong> for convenience, which is working fine for me.</p><p><em>Machine start G-code:</em></p><pre>;;===== date: 20240520 =====================<br>;printer_model:[printer_model]<br>;initial_filament:{filament_type[initial_extruder]}<br>;curr_bed_type:{curr_bed_type}<br>M400 ; wait for buffer to clear<br>M220 S100 ;Set the feed speed to 100%<br>M221 S100 ;Set the flow rate to 100%<br>M104 S140<br>M140 S[bed_temperature_initial_layer_single]<br>G90<br>G28 ;home<br>M729 ;Clean Nozzle<br>M190 S[bed_temperature_initial_layer_single]<br><br><br>;=============turn on fans to prevent PLA jamming=================<br>{if filament_type[initial_no_support_extruder]==&quot;PLA&quot;}<br>    {if (bed_temperature[initial_no_support_extruder] &gt;50)||(bed_temperature_initial_layer[initial_no_support_extruder] &gt;50)}<br>    M106 P3 S255<br>    {elsif (bed_temperature[initial_no_support_extruder] &gt;45)||(bed_temperature_initial_layer[initial_no_support_extruder] &gt;45)}<br>    M106 P3 S180<br>    {endif};Prevent PLA from jamming<br>{endif}<br><br>;enable_pressure_advance:{enable_pressure_advance[initial_extruder]}<br>;This value is called if pressure advance is enabled<br>{if enable_pressure_advance[initial_extruder] == &quot;true&quot;}<br>SET_PRESSURE_ADVANCE ADVANCE=[pressure_advance] ;<br>M400<br>{endif}<br>M204 S{min(20000,max(1000,outer_wall_acceleration))} ;Call exterior wall print acceleration<br><br><br>G1 X{print_bed_max[0]*0.5} Y-1.2 F20000<br>G1 Z0.3 F900<br>M109 S[nozzle_temperature_initial_layer]<br>M83<br>G92 E0 ;Reset Extruder<br>G1 F{min(6000, max(900, filament_max_volumetric_speed[initial_no_support_extruder]/0.5/0.3*60))} <br>G1 X-1.2 E10.156 ;Draw the first line<br>G1 Y98.8 E7.934<br>G1 X-0.5 Y100 E0.1<br>G1 Y-0.3 E7.934<br>G1 X{print_bed_max[0]*0.5-50} E6.284<br>G1 F{0.2*min(12000, max(1200, filament_max_volumetric_speed[initial_no_support_extruder]/0.5/0.3*60))} <br>G1 X{print_bed_max[0]*0.5-30} E2<br>G1 F{min(12000, max(1200, filament_max_volumetric_speed[initial_no_support_extruder]/0.5/0.3*60))} <br>G1 X{print_bed_max[0]*0.5-10} E2<br>G1 F{0.2*min(12000, max(1200, filament_max_volumetric_speed[initial_no_support_extruder]/0.5/0.3*60))} <br>G1 X{print_bed_max[0]*0.5+10} E2<br>G1 F{min(12000, max(1200, filament_max_volumetric_speed[initial_no_support_extruder]/0.5/0.3*60))} <br>G1 X{print_bed_max[0]*0.5+30} E2<br>G1 F{min(12000, max(1200, filament_max_volumetric_speed[initial_no_support_extruder]/0.5/0.3*60))} <br>G1 X{print_bed_max[0]*0.5+50} E2<br>;End PA test.<br><br><br>G3 I-1 J0 Z0.6 F1200.0 ;Move to side a little<br>G1 F20000<br>G92 E0 ;Reset Extruder<br>;LAYER_COUNT:[total_layer_count]<br>;LAYER:0<br>SET_PRINT_STATS_INFO TOTAL_LAYER=[total_layer_count]</pre><p><em>Machine change G-code:</em></p><pre>;LAYER:{layer_num+1}<br>SET_PRINT_STATS_INFO CURRENT_LAYER={layer_num + 1}</pre><p>After updating all of these codes, layer progress bar and timelapse, all start working as intended. This allows you to keep using Orca Slicer with full functionality and flexibility, without needing to switch back to Elegoo Slicer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IuanxCyTCD5Jw1Ez.jpeg" /></figure><h3>Let’s Connect ☺️</h3><p>I hope this helps! I’m sharing my experience and findings on my blog, and you can follow me through <a href="https://forge.mosn.me/newsletter">📰 newsletters</a>. You can also subscribe to my <a href="https://www.youtube.com/channel/UC3pFrJCbA9GuHs5uEkexgdw">▶️ YouTube channel</a> to find more helpful content.</p><p>Don’t forget to leave your comments and feedback 🤝</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9bf0a528cbf9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/its-the-forge/orca-slicer-layers-issue-on-elegoo-centauri-carbon-9bf0a528cbf9">Orca Slicer Layers Issue on ELEGOO Centauri Carbon</a> was originally published in <a href="https://medium.com/its-the-forge">The Tinkerer</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why I can’t get this sh*t done?]]></title>
            <link>https://mosn.medium.com/why-i-cant-get-this-sh-t-done-dae66408a2dc?source=rss-abef6bd0af29------2</link>
            <guid isPermaLink="false">https://medium.com/p/dae66408a2dc</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[personal]]></category>
            <category><![CDATA[adhd]]></category>
            <dc:creator><![CDATA[Mohsen Faraji]]></dc:creator>
            <pubDate>Sat, 01 Mar 2025 12:57:15 GMT</pubDate>
            <atom:updated>2025-03-01T12:57:15.619Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Pablo Escobar Meme: What It Is And Where It Came From — @daily_dot" src="https://cdn-images-1.medium.com/max/1024/1*MhAMB-_zr89EdPRpAJwPiw.jpeg" /></figure><p>I was talking with my therapist about why I can’t get my things done and always feel behind in my life. I started by talking about my ADHD and some of its related characteristics, like Black-and-white thinking, all-or-nothing thinking, and so on. So I was explaining myself and my feelings, which is why I have a roller-coaster feeling about productivity. Sometimes, I’m very productive, and other times, I&#39;m very useless.<br>This makes my life very frustrating. I know the reality of life; for example, there is some difference between expectations and reality. There is an expectation of other people around me, which may mean they will not experience this roller coaster and have more of this straight line in their thoughts.</p><blockquote>Check out this <a href="http://mosn.me/blog/2025/03/01/why-i-cant-get-this-done/?ref=medium"><strong>🔗 link</strong></a> if you can access the full story.</blockquote><p>So she asked, “What is the thing that makes you feel this difference?”</p><p>The first thing on my mind was creating an example to explain the process in my mind that will prevent me from doing stuff that I want.</p><h4>What is the difference here?</h4><p>In my observation there are two types of people, imagine there is a pail of LEGO blocks without any structure, most people will have a quick thinking about what they want then will start putting blocks without planing about what will come next in details, but for me it will start with looking at the table of blocks for a long time and planing every move (What will be the final shape that will be made? What is the steps? What will take me? What time takes for me? and lots of endless questions…) and at the end, I will have pot of thought without any real result but the other type will have a result which is can be not perfect but at least there is something.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ImsqPBlI8SoXZifgYVDDqg.jpeg" /><figcaption>Illustration by <a href="https://medium.com/u/766c9c2e3b2e">Royahaghgoo</a></figcaption></figure><p>Then I remember a the story in my work, which my mindset with a Whole Picture view alongside an Actionable version mindset of my college made the project go with success because it was balanced, But also there was a project which gone only with action and failed at the end and my mindset picture and failed at the start.</p><p>This is very hard to process, which you think about it but you can’t do it very well. For example, I know I must have both these qualities in myself to create a balance. Mosn#1 is the version who sees the whole picture and thinks about every move and overthinks it and sees all or nothing; Mosn#2 is the version who does actions and puts the first block without thinking about the very unknown. But I can’t achieve the #2 version because I don’t know how they do it and what their mindset is.</p><p>“Actually, you know their mindset, but you are synced with #1 version, so with more experience on that, you will not get yourself chance for the #1 version” my therapist said at that moment. It was the moment which I realised oh, sh*t maybe there is the exactly my whole picture version seige the actionable version and make it impossible for me, and It’s like (You don’t know every thing about this version, you should know it more, ...). So I had all tools and should try the second version by mimicking my college, and try it for a while.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uMgfKCPntYcGb3DSPVMNXw.jpeg" /><figcaption>My notes on session</figcaption></figure><p>And here we go, this is the first post that I decided to write in this way, and maybe it doesn’t reach my standards 🫠 but at least I did it and I know this is huge step for me.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dae66408a2dc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Keeping Your Raspberry Pi Cool: A Temperature Manager Tool]]></title>
            <link>https://medium.com/its-the-forge/keeping-your-raspberry-pi-cool-a-temperature-manager-tool-c287f620d081?source=rss-abef6bd0af29------2</link>
            <guid isPermaLink="false">https://medium.com/p/c287f620d081</guid>
            <category><![CDATA[raspberry-pi]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[engeenering]]></category>
            <category><![CDATA[raspberry-pi-4]]></category>
            <category><![CDATA[case]]></category>
            <dc:creator><![CDATA[Mohsen Faraji]]></dc:creator>
            <pubDate>Sat, 30 Nov 2024 12:17:41 GMT</pubDate>
            <atom:updated>2024-12-04T08:39:53.739Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve been using a Raspberry Pi 4 as a home lab server for quite some time. Initially, I used an Argon NEO Case, which provides passive cooling, but it wasn’t enough. So, I 3D printed a custom case with a fan to cool it (<a href="https://youtu.be/Xdq1x2gxGKU?si=_BZ6yyUJuUjHTmcm">watch this video</a>). But, as always, it still wasn’t enough! So, I got to work designing temperature management and monitoring for the RPi, and here is what I’ve done.</p><h3>What is the idea?</h3><p>Let’s talk about what I wanted to create. My idea was to stick with the NEO case but modify it to support a small OLED to display vital information about the RPi, such as network status, temperatures, etc., alongside a fan with speed control to adjust airflow based on system temperatures.</p><p>In the following sections, you will learn about the hardware and software I created for it.</p><blockquote>If you can’t read this here, it’s also available on my blog: <a href="https://forge.mosn.me/keeping-your-raspberry-pi-cool-a-temperature-manager-tool"><strong>My Forge Blog</strong></a>. 😊</blockquote><h3>Hardware</h3><p>The first step was figuring out the hardware. I decided to go with a 128×64px OLED with an SSD1306 driver and a 5V fan with a DRV8833 motor controller.</p><ul><li>128×64px OLED SSD1306 — I2C protocol</li><li>Miniature 5V fan</li><li>DRV8833 Dual Motor Driver</li><li>Raspberry Pi 4</li></ul><p>After testing the right configuration with the software (we’ll discuss that later), I created the schematic to connect everything to the RPi 4. This is how I connected everything to the Raspberry Pi GPIO:</p><figure><img alt="Diagram of a Raspberry Pi 4 connected to a motor controller, OLED display, and DC fan. Various colored wires represent different connections between the components." src="https://cdn-images-1.medium.com/max/1024/0*-NGvShJirXzh2aLb.png" /><figcaption>Schematic Diagram</figcaption></figure><p>DRV8833 Driver ←→ Rasberry Pi</p><pre>DRV8833 Driver ←→ Rasberry Pi Connections<br><br>+---------+---------------------+<br>| DRV8833 | Raspberry Pi 4 GPIO |<br>+---------+---------------------+<br>| AIN1    | GPIO13              |<br>| AIN2    | GPIO12              |<br>| VM      | 5V (Pin #4)         |<br>| GND     | GND (Pin #6)        |<br>| STBY    | GPIO27              |<br>+---------+---------------------+</pre><p>5V Fan ←→ DRV8833 Driver</p><pre>5V Fan ←→ DRV8833 Driver Connections<br><br>+-------------+----------------+<br>|   5V Fan    | DRV8833 Driver |<br>+-------------+----------------+<br>| 5V (RED)    | AIO1           |<br>| GND (BLACK) | AIO2           |<br>+-------------+----------------+</pre><p>OLED (SSD1306) ←→ Raspberry Pi</p><pre>OLED (SSD1306) ←→ Raspberry Pi Connections<br><br>+----------------+---------------------+<br>| OLED - SSD1306 | Raspberry Pi 4 GPIO |<br>+----------------+---------------------+<br>| VCC            | 3v3 (Pin #1)        |<br>| SDA            | GPIO2               |<br>| SCL            | GPIO3               |<br>| GND            | GND (Pin #9)        |<br>+----------------+---------------------+</pre><p>As you can see in the diagram and tables above, this is how to connect the hardware. After this configuration, it’s time to move on to the case and decide where to place the hardware.</p><h3>3D Case</h3><p>As mentioned earlier, I’m using an <a href="https://argon40.com/products/argon-neo-case-for-raspberry-pi-4">Argon NEO Case</a>, which has an aluminum shell with two parts, one of which can be removed (as shown in the image below). I planned to modify the top shield to contain the hardware.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*pRzW8wIclRiphQrg.jpeg" /></figure><p>I started by measuring the case and designing a 3D file for it to be printed. The plan was to assemble the OLED and fan, where the data would be displayed on the OLED, and the fan would direct airflow from the top and push it out through the rear of the shield via designed grids.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fiycXOMAq8GtQ00I.jpeg" /></figure><p>After sending the design to the 3D printer, this was the final version of the case (on the left). It was time to assemble everything and try installing it on the Raspberry Pi.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GONTA0wdK_8eXq5Z.jpeg" /></figure><p>You can access the 3D design files through this link: <a href="https://www.printables.com/model/1085113-rascase-raspberry-pi-argon-neo-case-add-on">3D Designed Files</a></p><p><a href="https://www.printables.com/model/1085113-rascase-raspberry-pi-argon-neo-case-add-on">https://www.printables.com/model/1085113-rascase-raspberry-pi-argon-neo-case-add-on</a></p><h3>Assembling</h3><p>Now that everything was ready for final assembly, I first soldered some wires with connector headers to make connecting to the RPi easier. Then, I fixed the components to the 3D-printed part and glued two magnets to the new case to keep it closed. You can use some electrical tape on the circuits to prevent short-circuiting and damage to the components.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CF1_W-WZuSukYVlE.jpeg" /></figure><h3>Software</h3><p>For the software side, I used Python to code a script that would be added to the boot services and run automatically on system boot. This way, if your system shuts down or restarts, the system states will be preserved — especially useful if you’re running your Raspberry Pi headless.</p><h4>Getting Started</h4><p>First, clone the files from the <a href="https://github.com/mosnfar/raspi-temp-manager">RasPi Temp Manager GitHub repository</a>:</p><pre>git clone https://github.com/mosnfar/raspi-temp-manager.git</pre><p>To run this script, you need the following libraries: `gpiozero`, `Pillow` (PIL), and `adafruit_ssd1306`, which are not built-in on the Raspberry Pi. To install them, navigate to the repository directory (<em>cd raspi-temp-manager</em>) and run:</p><pre>pip install -r requirements.txt</pre><blockquote>Note: If you’re using a newer version of Python, please install the libraries globally (not within a virtual environment).</blockquote><p>Next, copy the essential files (such as fonts and boot logos) into the desired directory. First, create a directory named “temp\_manager” at `<em>/usr/local/share/</em>` using:</p><pre>mkdir -p /usr/local/share/temp_manager</pre><p>Then, use the following commands to copy files from the repo directory to that location:</p><pre>cp ./fonts/lucan.ttf /usr/local/share/temp_manager<br>cp ./images/raspberrypi_logo_inverted.bmp /usr/local/share/temp_manager</pre><h4>Test Configurations</h4><p>Before moving on, there’s a chance the connections might not be correct or all the libraries might not be installed. I wrote a test tool to help debug these issues and ensure everything is in place. Before proceeding, you can run `test_`[`config.py`](<a href="http://config.py/">http://config.py</a>), which will check:</p><ul><li>Required libraries installation</li><li>I2C connection</li><li>Fan connection</li><li>Essential files</li></ul><p>To run the test, use the following command:</p><pre>python test_config.py</pre><h4>Boot Setup</h4><p>If there are no errors, let’s configure the script to run on boot. First, copy the script file into `<em>/usr/local/bin/</em>`:</p><pre>sudo cp ./source/temp_manager.py /usr/local/bin/</pre><p>Next, create a service for the script by running:</p><pre>sudo nano /etc/systemd/system/temp_manager.service</pre><p>Then, add the following content to the service file and save it:</p><pre>[Unit]<br>Description=Temperature Manager<br>After=network.target<br>[Service]<br>ExecStart=/usr/bin/python3 /usr/local/bin/temp_manager.py<br>Restart=always<br>[Install]<br>WantedBy=multi-user.target</pre><p>After saving the file, enable and start the service with these commands:</p><pre>sudo systemctl enable temp_manager.service<br>sudo systemctl start temp_manager.service</pre><h3>Hooray!</h3><p>Everything is now configured correctly. You can test it by running a stress test on the CPU with this command: `<em>stress -c 4 -t 900s</em>`.</p><p>Here’s the final view of the project:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7aRLRt6NbjROk1zP.jpeg" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FcTe1wpACoGw%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DcTe1wpACoGw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FcTe1wpACoGw%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/95bc37d9c8c09f35e98c2f30103e9334/href">https://medium.com/media/95bc37d9c8c09f35e98c2f30103e9334/href</a></iframe><h3>Let’s Connect ☺️</h3><p>I hope this helps! I’m sharing my experience and findings on my blog, and you can follow me through <a href="https://forge.mosn.me/newsletter"><strong>📰 newsletters</strong></a>. You can also subscribe to my <a href="https://www.youtube.com/channel/UC3pFrJCbA9GuHs5uEkexgdw"><strong>▶️ YouTube channel</strong></a><strong> </strong>to find more helpful content.</p><p>Don’t forget to leave your comments and feedback 🤝</p><p>Resources — Here are some of the articles and content that I learned from them:</p><ul><li><a href="https://www.hackster.io/iotengineer22/raspberry-pi-and-drv8833-test-6e4981">Raspberry Pi and DRV8833 T</a><a href="https://www.youtube.com/channel/UC3pFrJCbA9GuHs5uEkexgdw">est</a></li><li><a href="https://www.youtube.com/channel/UC3pFrJCbA9GuHs5uEkexgdw">Raspberry P</a><a href="https://www.instructables.com/Raspberry-Pi-Monitoring-System-Via-OLED-Display-Mo/">i Monitoring System Via OLED Display Module</a></li><li><a href="https://randomnerdtutorials.com/raspberry-pi-pwm-python/">Raspberry Pi: PWM Outputs with Python (Fading LED)</a></li><li><a href="https://electricdiylab.com/how-to-control-dc-motor-with-drv8833/">How to Control DC motor with DRV8833</a></li><li><a href="https://gpiozero.readthedocs.io/en/stable/api_output.html#gpiozero.PWMOutputDevice">GPIOZero PWMOutputDevice</a></li><li><a href="https://static.raspberrypi.org/files/education/posters/GPIO_Zero_Cheatsheet.pdf">GPIO ZERO CHEATSHEET</a></li><li><a href="https://core-electronics.com.au/guides/stress-testing-your-raspberry-pi/">Stress Testing Your Raspberry Pi</a></li><li><a href="https://www.studiopieters.nl/raspberry-pi-4-model-b-pinout/">Pi® 4 Model B pinout</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c287f620d081" width="1" height="1" alt=""><hr><p><a href="https://medium.com/its-the-forge/keeping-your-raspberry-pi-cool-a-temperature-manager-tool-c287f620d081">Keeping Your Raspberry Pi Cool: A Temperature Manager Tool</a> was originally published in <a href="https://medium.com/its-the-forge">The Tinkerer</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Working with Figma on iPad]]></title>
            <link>https://mosn.medium.com/working-with-figma-on-ipad-ce5ad4316534?source=rss-abef6bd0af29------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce5ad4316534</guid>
            <category><![CDATA[ipad]]></category>
            <category><![CDATA[figma]]></category>
            <category><![CDATA[design]]></category>
            <dc:creator><![CDATA[Mohsen Faraji]]></dc:creator>
            <pubDate>Sat, 19 Oct 2024 03:09:49 GMT</pubDate>
            <atom:updated>2024-10-19T03:09:49.103Z</atom:updated>
            <content:encoded><![CDATA[<p>If you are a designer, there are often situations in which you should change designs on the way or in travel. In these cases, always having a laptop with you is a headache, especially if you do backpacking adventures like me.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z3eiBKPWwhrUU_qYP96Jzg.jpeg" /><figcaption>iPad with Mouse and Keyboard</figcaption></figure><p>But I often carry an iPad with me, which is lighter and more compact. Yep, as designer we don’t use only figma, there are other tools like Notion, G Suite, … which are our tools, but most of them are workable on iPad, but the story is different about Figma. So I had the idea of working with Figma on iPad and I face a lot of challenges because the formal Figma app for iPad doesn’t support editing and you can only view the files and prototypes which is sucks.</p><p>In this note, I want to share my foundings and tell you how I solved my problem. There are multiple methods to access Figma on this device but every one of them have some flaws and advantage which will be review in the following.</p><h3>Method 1: Use Figma App</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PN8D9hjI5UgiqxrM.png" /></figure><p>Figma has a native application for both <a href="https://itunes.apple.com/app/figma-mirror/id1152747299">iOS</a> and <a href="https://play.google.com/store/apps/details?id=com.figma.mirror">Android</a> also a separate app for <a href="https://apps.apple.com/us/app/figjam/id6443663594">FigJam on iPad </a>which has been more tailored for touch screen but the Figma app does not support file editing and you can only do:</p><ul><li>Browse the files and view them</li><li>Comment on files and review comments</li><li>View and use the prototypes</li><li>Mirroring designed and check real-time changes</li></ul><p>So, If you want to do the work which is listed above, easy, to use the app on your iPad and FigJam app on iPad is awesome and I use it very frequently, However, most of us need to edit files but there is no option to edit Figma files on this method.</p><h3>Method 2: Use a browser to use Figma</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*52URCavBMwtB3h5w.png" /></figure><p>Since Figma is web-based, you can access it through any browser on your iPad, allowing you to edit files. However, installing and using custom fonts is near impossible for the web on an iPad.</p><p>On newer iPads, running iPadOS, you can install custom fonts using tools like iFont or through the built-in settings (Settings -&gt; General -&gt; Fonts). But even after installing fonts, browsers like Safari or Chrome can’t access them, and the Figma web app won’t list them. Figma only supports Google Fonts and a few other popular fonts by default. If you’re using Figma’s Organization plan, you can import custom fonts organization-wide, which might solve this issue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*q-hjJhh6v54L4Dk8.png" /></figure><p>If your design files only use Google Fonts, this method works fine. But if your files rely on custom fonts, you won’t be able to edit text or text-related elements. You can still move objects and perform other tasks, but text editing will be off-limits.</p><h3>Method 3: Use Figurative Software</h3><p>A third-party app called <a href="https://itunes.apple.com/app/id1510607687"><strong>Figurative</strong></a> offers a solution to the limitations of the official Figma app. It’s a <strong>free app</strong> for iPad that allows you to install custom fonts and provides better support for Apple Pencil, keyboard, and mouse interactions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*U7NMz-x5WYHtuC3h.png" /><figcaption><em>Source: </em><a href="https://figurative.design/?ref=mosn.me"><em>https://figurative.design</em></a></figcaption></figure><h4>How to use it?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*J3c8q-4tAGuBbQ6s.png" /></figure><p>After downloading and opening Figurative, you’ll need to log in to your Figma account. Then, click on more options (…) at the top-right corner to access the menu, which includes a basic guide on using Figurative. To <a href="https://figurative.design/ios-fonts/">install custom fonts</a>, you’ll need to download an additional app called <a href="https://apps.apple.com/us/app/id1205074470">Fontcase</a>. Follow the steps in Fontcase to install the necessary font profiles, and you’ll be able to edit text with custom fonts in your Figma files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yz9ForS091K6ZKUw.png" /></figure><h3>Conclusion</h3><p>I use Figurative (Method 3) to edit Figma files on my iPad, but it’s important to remember that the iPad has limited resources, and iOS’s resource management can cause issues when editing large files or publishing them. You might run into RAM-related problems. For this reason, I don’t recommend using an iPad as your primary design tool, but as a backup device, it can be extremely handy.</p><p>I hope my experiences helped you! 🤗<br>If you enjoyed the article, be sure to <strong>clap</strong> 👏 and <strong>follow 📰 </strong>for more updates.<br>And don’t forget to check out my <a href="http://figma.com/@mosnfar">Figma</a> and <a href="https://github.com/mosnfar">GitHub</a> for more of my work!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce5ad4316534" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google Signal Broke GA4 Server Measurement Protocol !!!]]></title>
            <link>https://mosn.medium.com/google-signal-broke-ga4-server-measurement-protocol-3257d241453a?source=rss-abef6bd0af29------2</link>
            <guid isPermaLink="false">https://medium.com/p/3257d241453a</guid>
            <category><![CDATA[google-signals]]></category>
            <category><![CDATA[google-analytics]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[google-analytics-4]]></category>
            <category><![CDATA[user-data]]></category>
            <dc:creator><![CDATA[Mohsen Faraji]]></dc:creator>
            <pubDate>Sun, 15 Sep 2024 08:35:15 GMT</pubDate>
            <atom:updated>2024-09-19T14:37:41.456Z</atom:updated>
            <content:encoded><![CDATA[<p>We use <strong>Google Analytics 4</strong> (GA4) for user tracking and send certain user events through the <a href="https://developers.google.com/analytics/devguides/collection/protocol/ga4">GA4 Measurement Protocol</a> using HTTP requests from our servers. However, we suddenly stopped receiving any events for a while. After investigating, we discovered that <strong>Google Signals</strong> was the cause. BUT HOW?</p><p>Yeah, that was exactly my reaction. Let’s dive into how this happened and why.</p><h3>What was the problem?</h3><p>First, let me explain how the <strong>GA4 Measurement Protocol</strong> works. When you set up a data stream in GA4, you can activate an option in the stream settings that provides you with an API secret key. This key allows you to send custom events to GA4 via HTTP requests.</p><figure><img alt="Screenshot showing GA4 Web Stream Setting" src="https://cdn-images-1.medium.com/max/1024/1*o0CNEKe6-kxuOMQZvd3hag.png" /></figure><figure><img alt="Screenshot showing measurement protocol API secrets setting" src="https://cdn-images-1.medium.com/max/1024/1*Dwmt133xJ7TKaCkoQyhXtg.png" /></figure><p>We used an HTTP request like the one below, which triggered an event in GA4, just as you would send events using <strong>Tag Manager</strong> or other methods (<a href="https://developers.google.com/analytics/devguides/collection/protocol/ga4#architecture">more info here</a>). You can also create sample requests with <a href="https://ga-dev-tools.google/ga4/event-builder/">this GA Event Builder tool</a>.</p><pre>curl --location &#39;https://www.google-analytics.com/mp/collect?measurement_id=G-xxxx&amp;api_secret=xxxx&#39; \<br>--header &#39;Content-Type: application/json&#39; \<br>--data &#39;{<br>  &quot;client_id&quot;: &quot;OUR_CUSTOM_UUID_FOR_OUR_USERS&quot;,<br>  &quot;user_id&quot;: &quot;OUR_CUSTOM_UUID_FOR_OUR_USERS,<br><br>  &quot;non_personalized_ads&quot;: false,<br>  &quot;events&quot;: [<br>    {<br>      &quot;name&quot;: &quot;OUR_EVENT_NAME&quot;,<br>      &quot;params&quot;: {<br>        &quot;PARAMETERS_1&quot;: &quot;VALUE&quot;,<br>        &quot;PARAMETERS_2&quot;: &quot;VALUE&quot;<br>      }<br>    }<br>  ]<br>}&#39;</pre><p>Suddenly, we noticed that events for that specific name were no longer being recorded. This was a very strange issue.</p><figure><img alt="Screen shot of Event Drop in GA4" src="https://cdn-images-1.medium.com/max/1024/1*hq81bRxIvBe4Tj1dO2wOcg.png" /></figure><p>We began investigating, initially thinking that something in our backend code had changed, but there were no modifications. Frustrated, I searched online but found no relevant information. However, I thought that something might have changed in the analytics setup. I checked the GA4 <strong>Property Change History</strong> (Admin → Property → Property Change History), and found that on the exact date when the events stopped, <strong>Google Signals</strong> was activated by one of our team members (it’s inactive by default).</p><figure><img alt="Screen shot of Google Analytics property change history related to Google Signal" src="https://cdn-images-1.medium.com/max/1024/1*MMRcZVGxgNZwVF20bRuHtg.png" /></figure><h3>How to solve it?</h3><p>At first, I thought that simply disabling <strong>Google Signals</strong> would solve the problem. But after disabling it, the issue persisted. I began to dig deeper and found threads like <a href="https://support.google.com/analytics/thread/165884853/traffic-drop-due-to-activation-of-google-signals?hl=en">this one</a>, but they were not helpful for our specific case.</p><p>I revisited the change history and noticed something important: once you deactivate <strong>Google Signals</strong>, some settings do not revert. Specifically, the <strong>“User-provided-data collection for User-ID”</strong> remains active. This change, as seen below, cannot be undone.</p><figure><img alt="Screen shot showing change details for user id setting" src="https://cdn-images-1.medium.com/max/1024/1*9a21dUoPwS82bBLC6ZQAVA.png" /></figure><p>This was a new lead. After further research, I discovered that the <strong>“user_id”</strong> and <strong>“client_id”</strong> parameters in our event calls were causing the issue. Let me explain.</p><p>According to Google documentation for <a href="https://support.google.com/analytics/answer/9213390">User-ID</a> and <a href="https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference?client_type=gtag#payload_post_body">Event Payload</a> also this article “<a href="https://louder.com.au/2023/11/14/unveil-ga4-user-insights-user-id-client-id-and-google-signals-compared/">Unveil GA4 user insights: User ID, Client ID, and Google signals compared</a>” from LOADER, I understand which because Google Signal is more focused on privacy and can work between a variety of Google Ads tools it’s required to generate its own created user-id to can track better.</p><p>According to Google’s documentation on <a href="https://support.google.com/analytics/answer/9213390">User-ID</a> and <a href="https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference?client_type=gtag#payload_post_body">Event Payload</a>, as well as <a href="https://louder.com.au/2023/11/14/unveil-ga4-user-insights-user-id-client-id-and-google-signals-compared/">this article</a> from <strong>Louder</strong>, <strong>Google Signals</strong> prioritizes privacy. It can work across various Google Ads tools and requires its own generated user ID to track users effectively.</p><figure><img alt="Some part of GA Measurement Protocol document about payload" src="https://cdn-images-1.medium.com/max/1024/1*jETV8jw_S4iBGAnHW_oJdA.png" /></figure><figure><img alt="User ID Comparisons — Copywrite: louder.com.au" src="https://cdn-images-1.medium.com/max/1024/1*wXBGMPcXeJ74usKYorum9A.png" /><figcaption>User ID Comparisons — <a href="https://louder.com.au/">Copywrite: louder.com.au</a></figcaption></figure><h4>Final Solution</h4><p>To resolve this issue, we updated our HTTP request for event calls by removing the <strong>“user_id”</strong> parameter, allowing GA4 to generate it automatically. We also sent our custom <strong>customer ID</strong> through <strong>user properties</strong> in the event payload, as shown below:</p><pre>curl --location &#39;https: //www.google-analytics.com/mp/collect?measurement_id=G-xxxx&amp;api_secret=xxxx&#39; \<br>--header &#39;Content-Type: application/json&#39; \<br>--data &#39;{<br>  &quot;client_id&quot;: &quot;OUR_CUSTOM_UUID_FOR_OUR_USERS&quot;,<br><br>  &quot;non_personalized_ads&quot;: false,<br>  &quot;user_properties&quot;: {<br>    &quot;domestic_user_id&quot;: {<br>      &quot;value&quot;: &quot;OUR_CUSTOM_UUID_FOR_OUR_USERS&quot;<br>    }<br>  },<br>  &quot;events&quot;: [<br>    {<br>      &quot;name&quot;: &quot;OUR_EVENT_NAME&quot;,<br>      &quot;params&quot;: {<br>        &quot;PARAMETERS_1&quot;: &quot;VALUE&quot;,<br>        &quot;PARAMETERS_2&quot;: &quot;VALUE&quot;,<br>      }<br>    }<br>  ]<br>}&#39;</pre><p>Hooray! 🎉 Our event records started flowing again.</p><p>Thanks for reading! 🤗<br>If you enjoyed the article, be sure to <strong>clap</strong> 👏 and <strong>follow 📰 </strong>for more updates.<br>And don’t forget to check out my <a href="http://figma.com/@mosnfar">Figma</a> and <a href="https://github.com/mosnfar">GitHub</a> for more of my work!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3257d241453a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stream Raspberry Pi Camera Feed to Cloud]]></title>
            <link>https://medium.com/its-the-forge/stream-raspberry-pi-camera-feed-to-cloud-63ba3b7678bd?source=rss-abef6bd0af29------2</link>
            <guid isPermaLink="false">https://medium.com/p/63ba3b7678bd</guid>
            <category><![CDATA[raspberry-pi]]></category>
            <dc:creator><![CDATA[Mohsen Faraji]]></dc:creator>
            <pubDate>Thu, 04 Apr 2024 09:31:09 GMT</pubDate>
            <atom:updated>2024-04-04T09:37:45.188Z</atom:updated>
            <content:encoded><![CDATA[<p>Connecting a camera to a Raspberry Pi through the on-board camera port or USB port can assist in capturing images or videos. This setup can serve various purposes. In this repository, you can find a prebuilt shell script designed to facilitate continuous image streaming to online cloud services such as Google Drive for Linux-operated Raspberry Pi.</p><h3>Use Cases</h3><ul><li>Online Stream of Camera</li><li>Frame Capture for Time-lapse</li></ul><h3>How to use</h3><p>First, you should install dependencies like ‘ffmpeg’, ‘rclone’. To do it use the command below:</p><pre>sudo apt update &amp;&amp; sudo apt install ffmpeg rclone</pre><p>After that, you should configure your cloud service, which here we continue with the Google Drive option. I suggest to use this two complete tutorials for proper configuration:</p><ul><li><a href="https://www.baeldung.com/linux/google-drive-guide#2-rclone">Google Drive by rclone on Bealdung</a></li><li><a href="https://rclone.org/drive/">Official rclone Google Drive Document</a></li></ul><p>But simply to do that start with rclone, you should use the command below and follow the given instructions:</p><pre>rclone config</pre><p>Now, You should have a directory on your local device to sync Google Drive with it. Here we create a directory named “<em>/home/user/path/to/</em>”, to do this you can use this command:</p><pre>mkdir /home/user/path/to</pre><p>So, Time<strong> to configure a webcam or camera</strong>. Here I’m using a USB webcam but if you want to use the on-board Raspberry Pi camera follow <a href="https://www.codeinsideout.com/blog/pi/set-up-camera/#record-h264-video">this link</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cZvx0PJdbQHO4c6wlJcgxA.png" /><figcaption>USB webcam connected to Raspberry Pi 4</figcaption></figure><p>Connect the USB webcam to Raspberry Pi and find the hardware directory, which is “/dev/video0” in this example.</p><p>Awesome, All essential parts are configured. Now the script is ready for use. <br>Download the script file to your local machine:</p><pre>curl -L https://raw.githubusercontent.com/mosnfar/raspberrypi4-camera-to-cloud/main/run.sh -o ./run.sh</pre><p>Before using the script you should change some variables in the script to work correctly. Use “<em>nano run.sh”</em> to open text editor then go to ‘Configure global variables’ section and change the variable.</p><pre>…<br><br># Configure global variables<br><br>DRIVE_ADD=&quot;drive:/parentfolder/subfolder&quot; #rclone given address for drive main folder and subfolder<br><br>STORE_DIR=&quot;/home/user/path/to/&quot; #Local directory which will link to drive<br>LOG_DIR=&quot;/home/user/path/for/log/&quot; #Directory to store log for command<br><br>CAMERA_ADD=&quot;/dev/video0&quot; #Hardware directory for Video Input<br><br>DAY_OF_STORAGE=2 #Maximum date for storage - e.g. 2 days<br>MAX_STORAGE_SIZE=200000000 #Maximum size for storage - e.g. 200000000 Byte -&gt; 200 MB<br><br>INTERVAL_DELAY=10 #Interval between taking frames - e.g. 10 seconds<br><br>MAX_RETRIES=10 #Times to rclone try<br><br>…</pre><p>You should change these variables:</p><h4>Essential Variables</h4><p>Should change this before running this script according to your configuration.</p><p><strong>DRIVE_ADD</strong>: The address to which you configure Google Drive with rclone command.<br><strong> <br>STORE_DIR</strong>: This directory will be connected to Drive and sync with it.<br> <br><strong>LOG_DIR</strong>: Where you want to store your system script logs and errors.<br> <br><strong>CAMERA_ADD</strong>: Hardware address of video input (webcam|camera) to use.<br> <br><strong>DAY_OF_STORAGE</strong>: By this variable, you can configure how many days should store the content.<br> <br><strong>MAX_STORAGE_SIZE</strong>: This variable manages Drive capacity and prevents extending from Google storage limit.<br> <br><strong>INTERVAL_DELAY</strong>: This is the gap time between taking frames.</p><h4>Additional Variables</h4><p>If you customize the script more, you can change this too.</p><p><strong>MAX_RETRIES</strong>: This variable defines how many times should rclone try.</p><p>Now everything is done and you should add “<em>run.sh</em>” command to system jobs to be run on every reboot. To do that use this command:</p><pre>sudo chmod +x run.sh &amp;&amp; (crontab -l ; echo &quot;@reboot /real/path/to/run.sh&quot;) | crontab - &amp;&amp; crontab -l</pre><p>And its better to reboot your system.</p><p>🎉 It’s Done. All is ready.</p><h3>Find More</h3><p>I hope this helps you. You can subscribe to my youtube channel or my blog to find out more stuff that help you.</p><ul><li><a href="https://www.youtube.com/channel/UC3pFrJCbA9GuHs5uEkexgdw">itsMosnBuild</a></li><li><a href="https://build.mosn.me/">itsMosnBuild</a></li></ul><p>RESOURCES:</p><ul><li><a href="https://raspberrypi-guide.github.io/electronics/using-usb-webcams">Using USB Webcam</a></li><li><a href="https://www.baeldung.com/linux/google-drive-guide#2-rclone">Use rclone for Google Drive</a></li><li><a href="https://rclone.org/drive/">rclone, Google Drive</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63ba3b7678bd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/its-the-forge/stream-raspberry-pi-camera-feed-to-cloud-63ba3b7678bd">Stream Raspberry Pi Camera Feed to Cloud</a> was originally published in <a href="https://medium.com/its-the-forge">The Tinkerer</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to run MicroPython on Raspberry Pi Pico via VS Code?]]></title>
            <link>https://medium.com/its-the-forge/how-to-run-micropython-on-raspberry-pi-pico-via-vs-code-41d7316f5f73?source=rss-abef6bd0af29------2</link>
            <guid isPermaLink="false">https://medium.com/p/41d7316f5f73</guid>
            <category><![CDATA[micropython]]></category>
            <category><![CDATA[raspberry-pi-pico]]></category>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[vscode-extension]]></category>
            <category><![CDATA[raspberry-pi]]></category>
            <dc:creator><![CDATA[Mohsen Faraji]]></dc:creator>
            <pubDate>Fri, 17 Nov 2023 19:19:33 GMT</pubDate>
            <atom:updated>2024-01-02T13:44:25.155Z</atom:updated>
            <content:encoded><![CDATA[<p>A lot of tutorials to develop and run MicroPython on Raspberry Pico use an IDE called <a href="https://thonny.org/">Thonny</a>; even original <a href="https://projects.raspberrypi.org/en/projects/getting-started-with-the-pico">Raspberry Pi Foundation tutorials</a>. Thonny is a great simple IDE for getting the job done, especially for someone who started recently. But for me is a little inconvenient because for most of my other projects, I use VS Code and even I can connect it to Github easily. So here we will talk about how to connect Pico to VS Code.</p><figure><img alt="A Raspberry Pi Pico connected to VS Code" src="https://cdn-images-1.medium.com/max/1024/1*XyBRLYxvanZu_AW0GE8Q_g.jpeg" /><figcaption>A Raspberry Pi Pico connected to VS Code</figcaption></figure><h3>Extentions</h3><p>So, Let’s start with essential things. You need <a href="https://code.visualstudio.com/">VS Code</a> and extentions which I mentioned below:</p><ul><li>MicroPico — <em>(</em><a href="https://marketplace.visualstudio.com/items?itemName=paulober.pico-w-go"><em>Link</em></a><em>)</em></li><li>Pylance — <em>(</em><a href="https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance"><em>Link</em></a><em>)</em></li><li>Python — <em>(</em><a href="https://marketplace.visualstudio.com/items?itemName=ms-python.python"><em>Link</em></a><em>)</em></li><li>IntlliCode — <em>(</em><a href="https://marketplace.visualstudio.com/items?itemName=VisualStudioExptTeam.vscodeintellicode"><em>Link</em></a><em>)</em></li></ul><figure><img alt="MicroPico extension on VS Code" src="https://cdn-images-1.medium.com/max/1024/1*oFfY-Eqqqcn0XqjUM8QocA.png" /><figcaption>MicroPico extension on VS Code</figcaption></figure><p>After installing those extensions you should configure the project and connecting Pico.</p><h3>Setup MicroPython</h3><p>Now connect your Pico to computer through a USB cable.</p><figure><img alt="Raspberry Pi Pico is connected to Computer" src="https://cdn-images-1.medium.com/max/1024/1*6UD4vnyhR8obWBeiUeEFPw.jpeg" /><figcaption>Raspberry Pi Pico is connected to Computer</figcaption></figure><p>So, let’s drag and drop MicroPython firmware (UF2) files into Raspberry Pi Pico.</p><p>First, you should download files from <a href="https://micropython.org/download/">MicroPython site</a>:</p><ul><li><a href="https://micropython.org/download/RPI_PICO/">For Raspberry Pi Pico</a></li><li><a href="https://micropython.org/download/RPI_PICO_W/">For Raspberry Pi Pico W</a></li></ul><p>After downloading the suitable UF2 files for your Pico, Open file manager on your system and there is an external device mounted with “RPI-RP2” name. Now drag and drop your UF2 files into to mounted folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/991/1*y0RykyX1aKwoa1123pDc_g.png" /><figcaption>Pico mounted to computer</figcaption></figure><p>After that pico will be detached automatically, now we are ready to go back into VS Code.</p><p>If there was any problem you can read more about it on Raspberry Pi site.</p><p><a href="https://www.raspberrypi.com/documentation/microcontrollers/micropython.html#drag-and-drop-micropython">Raspberry Pi Documentation - MicroPython</a></p><h3>Configure Project</h3><p>Here you should create or select a folder where you want your MicroPython files and Pico files to be stored.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n3ntPeWXUrHniT-MGe44hA.png" /><figcaption>Folder for Pico Project</figcaption></figure><p>After that should press “⌘ Command + Shift + P” on Mac and “Ctrl + Shift + P” on Windows to open “Show and Run Commands” in VS Code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a5i4GVNCGZ05qVulXH6rKA.png" /><figcaption>Show and run commands option at VS Code</figcaption></figure><p>Then type “MicroPico: Configure project” and press “Enter”</p><p>Si Vola 🥳, Here you can see some hidden files added to folder and can see “Pico Connected” on left-bottom.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5nckJGoRQmRp_wRQ7nqY5Q.png" /><figcaption>Configured Pico project</figcaption></figure><p>To open Pico main folder click on “Toggle Pico-W-FS” at bottom and now you can see files on Pico and create new files on Pico directly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YecfPJMjNT0Hmz9C0R5OAQ.png" /><figcaption>Raspberry Pi Pico main folder</figcaption></figure><p>To run a code on Pico you can use “Run” action at the bottom of IDE or use Run commands option that we used to configure project and use a command called “MicroPico: Remote &gt; Run Current file on Pico”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mXiDXBd_CXNneOCnQrxURQ.png" /><figcaption>Running blinking LED code on Pico</figcaption></figure><p>Also you can sync your local files by “Upload project to Pico” or “Download project from Pico”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TEeUHjQ2ez98HVhp2R0iFg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wtdwNzW-4D55DbpkRAuCaw.png" /><figcaption>Sync project to Pico</figcaption></figure><p>There is a lot more stuff about using VS Code and MicroPico which I hope to write more about 😊✌️; But for now, you can see more about MicroPico settings on this <a href="https://marketplace.visualstudio.com/items?itemName=paulober.pico-w-go">link</a> also use “MicroPico: List all Commands” to see all useful commands.</p><p>Also don’t forget subscribe to my youtube channel, I’m going to talk more about this stuff there 🤟</p><p><a href="https://www.youtube.com/@itsmosn">itsMosnBuild</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41d7316f5f73" width="1" height="1" alt=""><hr><p><a href="https://medium.com/its-the-forge/how-to-run-micropython-on-raspberry-pi-pico-via-vs-code-41d7316f5f73">How to run MicroPython on Raspberry Pi Pico via VS Code?</a> was originally published in <a href="https://medium.com/its-the-forge">The Tinkerer</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Case Study: Re-design a Startup Product]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/design-bootcamp/case-study-re-design-a-startup-product-c153582c1ef8?source=rss-abef6bd0af29------2"><img src="https://cdn-images-1.medium.com/max/1920/1*5qeNgruAUHBp4s0EAqsOcQ.jpeg" width="1920"></a></p><p class="medium-feed-snippet">In this time, we re-designed whole DADSUN products, services, and business structure then built the platform to improve users&#x2019; experience&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/design-bootcamp/case-study-re-design-a-startup-product-c153582c1ef8?source=rss-abef6bd0af29------2">Continue reading on Bootcamp »</a></p></div>]]></description>
            <link>https://medium.com/design-bootcamp/case-study-re-design-a-startup-product-c153582c1ef8?source=rss-abef6bd0af29------2</link>
            <guid isPermaLink="false">https://medium.com/p/c153582c1ef8</guid>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[product-design]]></category>
            <category><![CDATA[user-experience]]></category>
            <category><![CDATA[service-design]]></category>
            <category><![CDATA[ux]]></category>
            <dc:creator><![CDATA[Mohsen Faraji]]></dc:creator>
            <pubDate>Thu, 30 Sep 2021 21:40:42 GMT</pubDate>
            <atom:updated>2021-10-05T00:29:24.571Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Case study: Creating a Startup Product]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/design-bootcamp/case-study-of-creating-startup-product-c9053a023237?source=rss-abef6bd0af29------2"><img src="https://cdn-images-1.medium.com/max/1920/1*IYT_FmroggCrejaJ4xQ-Qw.jpeg" width="1920"></a></p><p class="medium-feed-snippet">If you were needed a lawyer, probably you figure out how much is hard finding a suitable lawyer that can reach you to your purpose. We&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/design-bootcamp/case-study-of-creating-startup-product-c9053a023237?source=rss-abef6bd0af29------2">Continue reading on Bootcamp »</a></p></div>]]></description>
            <link>https://medium.com/design-bootcamp/case-study-of-creating-startup-product-c9053a023237?source=rss-abef6bd0af29------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9053a023237</guid>
            <category><![CDATA[product-design-process]]></category>
            <category><![CDATA[user-research]]></category>
            <category><![CDATA[user-expreience]]></category>
            <category><![CDATA[product-design]]></category>
            <category><![CDATA[case-study]]></category>
            <dc:creator><![CDATA[Mohsen Faraji]]></dc:creator>
            <pubDate>Sat, 25 Sep 2021 20:59:29 GMT</pubDate>
            <atom:updated>2021-09-30T21:42:52.727Z</atom:updated>
        </item>
    </channel>
</rss>