<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Blog on Felipe Lira</title><link>https://www.felipelira.com/blog/</link><description>Recent content in Blog on Felipe Lira</description><generator>Hugo</generator><language>en-US</language><copyright>Copyright © 2025, Felipe Lira.</copyright><lastBuildDate>Mon, 06 Jan 2025 21:43:00 +0000</lastBuildDate><atom:link href="https://www.felipelira.com/blog/index.xml" rel="self" type="application/rss+xml"/><item><title>PCB Design Part 1</title><link>https://www.felipelira.com/lira-plc-pcb-prt1/</link><pubDate>Mon, 06 Jan 2025 21:43:00 +0000</pubDate><guid>https://www.felipelira.com/lira-plc-pcb-prt1/</guid><description>&lt;h3 id="disclaimer"&gt;Disclaimer&lt;/h3&gt;
&lt;p&gt;This project includes images of assemblies that use third-party components from Phoenix Contact. The electronic housing shown in the images is a product of Phoenix Contact and is used here for reference and demonstration purposes only. All product names, logos, and brands are property of their respective owners.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="pcb-design"&gt;PCB Design&lt;/h2&gt;
&lt;p&gt;We&amp;rsquo;ve arrived at the part I like the most: turning this:&lt;/p&gt;
&lt;p&gt;&lt;img src="../images/unrouted-pcb.png" alt="unrouted-pcb"&gt;&lt;/p&gt;
&lt;p&gt;Into this:&lt;/p&gt;
&lt;p&gt;&lt;img src="../images/routed-pcb.png" alt="routed-pcb"&gt;&lt;/p&gt;
&lt;p&gt;Below, I explain the step-by-step process I used and how I organized my ideas.&lt;/p&gt;</description></item><item><title>Schematic Design Part 2</title><link>https://www.felipelira.com/lira-plc-sch-prt2/</link><pubDate>Sat, 28 Dec 2024 20:27:00 +0000</pubDate><guid>https://www.felipelira.com/lira-plc-sch-prt2/</guid><description>&lt;p&gt;Now I&amp;rsquo;ve finalized the latest modifications to the schematic. The Modbus circuit was challenging to design in the most cost-effective way, but I believe I&amp;rsquo;ve found a good combo that still maintains the capabilities of an isolated RS485 interface IC.&lt;/p&gt;
&lt;h3 id="modbus-rtu"&gt;Modbus RTU&lt;/h3&gt;
&lt;p&gt;I&amp;rsquo;m using a robust IC, the THVD1520, with additional protection, and the ISO6742 as a digital isolator. This setup is cheaper than using an isolated RS485 IC directly since the ISO6742 becomes more affordable when purchased in quantities of 10 or more.&lt;/p&gt;</description></item><item><title>Schematic Design Part 1</title><link>https://www.felipelira.com/lira-plc-sch-prt1/</link><pubDate>Sat, 14 Dec 2024 18:48:00 +0000</pubDate><guid>https://www.felipelira.com/lira-plc-sch-prt1/</guid><description>&lt;h3 id="microcontroller-selection"&gt;Microcontroller Selection&lt;/h3&gt;
&lt;p&gt;I&amp;rsquo;ll start the schematic by choosing the microcontroller.&lt;/p&gt;
&lt;p&gt;Its selection is essential to determine power supply, analog circuit, and communication.&lt;/p&gt;
&lt;p&gt;It must be supported by the Autonomy software, so let&amp;rsquo;s check which models are &lt;a href="https://autonomylogic.com/docs/2-4-physical-addressing"&gt;supported&lt;/a&gt; and study their availability and prices:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Arduino Opta - Uses the STM32H747 microcontroller at $20. No chance.&lt;/li&gt;
&lt;li&gt;esp32 - More affordable, but I&amp;rsquo;m paying for Wi-Fi, which I don&amp;rsquo;t need right now.&lt;/li&gt;
&lt;li&gt;esp8266 (node-mcu board) - A $4 board with everything I need and USB programming. However, it&amp;rsquo;s limited in terms of possible inputs and outputs.&lt;/li&gt;
&lt;li&gt;Mega / Due - Has far more features than I need.&lt;/li&gt;
&lt;li&gt;MKR Series - Wi-Fi and lots of features.&lt;/li&gt;
&lt;li&gt;Nano Every - €15 for a single board.&lt;/li&gt;
&lt;li&gt;RP2040 - A strong candidate, its board costs around $6 but has limited IO.&lt;/li&gt;
&lt;li&gt;STM32F103CB (Blue Pill) - The best candidate so far. It has plenty of IOs, and I can buy it for $3 in Brazil.&lt;/li&gt;
&lt;li&gt;STM32F411CE (Black Pill) - More expensive than the Blue Pill.&lt;/li&gt;
&lt;li&gt;Uno, Leonardo, Nano, Micro, Zero - Atmel microcontrollers are usually more expensive with fewer features.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Therefore, I will use the Blue Pill&amp;rsquo;s microcontroller for the development of the Lira-CLP.&lt;/p&gt;</description></item><item><title>Project: Lira-PLC</title><link>https://www.felipelira.com/lira-plc-start/</link><pubDate>Wed, 11 Dec 2024 22:25:00 +0000</pubDate><guid>https://www.felipelira.com/lira-plc-start/</guid><description>&lt;p&gt;&lt;em&gt;Updated: 14 Dec, 2024&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I was browsing Mercado Livre the other day looking for a USB-RS485 converter when I came across a mini PLC for panels. At that moment, I thought: this would be a great project to publish on this site.&lt;/p&gt;
&lt;p&gt;And so, it is with pleasure that I begin my first public project: the Lira-PLC.&lt;/p&gt;
&lt;p&gt;The idea is to make it a completely open-source project while showcasing the entire journey of developing a product like this, from conception to testing and improvements.&lt;/p&gt;</description></item></channel></rss>