Saturday, December 28, 2019

Lessons from MRR ESPA: Heated bed and power

In this post, I will write about the lessons I learnt when designing the MRR ESPA. Specifically, lessons related to the high currents used for the heated bed, which I learnt during the early phase of the design.

1. Separate power connectors for heated bed. Heated beds can draw a lot of current. So using the same power supply for the heated bed and the rest of the 3D printer (control board, motors, hotend, etc.) can result in a very high current being carried from the power supply unit (PSU) and the board. If the power connector on the board is not rated for such high currents, they can melt, burn, and become a fire hazard. This is why some boards are designed with a separate set of power connectors for the heated bed. This allows the same PSU (which usually have a few sets of output leads) to be connected to the board, with one set of output leads for the board and such, while another set of leads for the heated bed. This lowers the current being drawn on each set of leads, keeping temperatures lower.

2. Separate power supply for heated bed. While boards may have separate power connectors for the heated bed, this does not mean they are designed for separate PSUs. To safely use separate PSUs on the same board, the different power rails should be isolated from each other. When an external MOSFET is used for the bed, this MOSFET (like the Little-Driver) usually has an optocoupler that separates the bed PWM signal from the bed supply. In designing the MRR ESPA's heated bed circuit, I included this optocoupler into the design. This separates the bed power supply from the rest of the board, which means separate PSUs can be used on the same board. (Note: There are people who say you can use separate PSUs on the same board as long as the GND of the separate PSUs are tied together to get a common reference. I am not a certified electrician and therefore cannot say how safe this is. I prefer not to take the risk, and use the optocoupler instead since that is a much safer design.)

3. Trace width. High currents need thicker trace widths in order to have sufficient cross-sectional area to carry those currents. Simply put, the larger the current, the larger the cross-sectional area. Otherwise, the resistance in the traces will result in greater heat, and can use the PCB to melt and burn.

4. MOSFET selection. MOSFETs generate heat. While it is more complex, an easy way to calculate the amount of heat generated is to multiply the square of the current being driven by the on-resistance of MOSFET. (This is only one part of the equation, though.) This means that a low on-resistance is preferred for the heated bed MOSFET. But another factor is the thermal resistance, which is basically the temperature rise per watt of power generated. Some packages have 62 degC/W, while some are 50 degC/W. Obviously, the 50 degC/W MOSFET will get less hot when driving the same current. (And I learnt a lesson: Chinese clones of MOSFETs may not always work as expected.)

5. MOSFET cooling. Since MOSFETs generate heat, cooling is required. MOSFETs can usually be cooled by the PCB if there is a large enough "heat sink" area. The thermal resistance on data sheets usually state what that "heat sink" area is when they tested the MOSFET. If your board does not have a sufficient "heat sink" area to help cool the MOSFET, the thermal resistance will be significantly less than what is stated on the data sheet. This is why the bed MOSFET on the MRR ESPA has such a large copper area exposed on the reverse side of the board.

6. MOSFET gate voltage. MOSFETs usually have a range on-resistance that gets lower as the gate voltage increases. This is why it I designed the MRR ESPA with a jumper that controls the voltage used to drive the optocoupler that is connected to the MOSFET's gate. This optocoupler should use 12V if VBED is 12V so that the bed MOSFET can be driven with a high gate voltage. But if VBED is 24V, the optocoupler needs to be driven at a lower voltage since the maximum gate voltage is 20V. The jumper is based a connection to a voltage divider to divide the voltage by half; on a 24V VBED, this means the optocoupler and gate voltage is 12V. Other options used in board designs are MOSFET drivers, but these may or may not be isolated gate drivers.

7. Fuses. Since 3D printers can draw high currents for the heated bed, it can be a fire hazard if too much current is being drawn. Boards have components designed for a maximum current rating; above that, components may melt and burn. Fuses are therefore absolutely necessary to ensure that boards do not draw more current than what they are designed for.

Nowadays, when I see a new board on the market, I always look at the following (external appearance, and schematic if available):
- Does it have a separate connector for bed power?
- Does it have fuses?
- What is the MOSFET used for the heated bed?
- Does it have an optocoupler to isolate the bed supply from the supply used for the rest of the board?
- Does it have sufficient "heat sink" area under the bed MOSFET?
- What type of connectors does it use from/to bed supply, and from/to heated bed?

Hopefully, this helps people when they are selecting/design a 3D printer control board. And help prevent unnecessary fires.

Wednesday, December 25, 2019

Is Huawei more dangerous than Facebook and Google?

In a previous post, I wrote about the Huawei ban.

Here is a recent commentary about Huawei.
Commentary: Is Huawei dangerous because it’s Chinese? What about Facebook?

An excerpt:
The fear is that Huawei could gain access to a huge volume of data about us, which then could be used in a way that is detrimental to our interests, including by adversely influencing national politics.
But these threats already exist, because Facebook (which also owns Instagram and WhatsApp) and Google (which owns YouTube) have an astonishingly comprehensive range of data about their users – their location, contacts, messages, photos, downloads, searches, preferences, purchases, and much else.

I think we should read the article, and ask ourselves, "Are we biased against Huawei simply because it is Chinese? What are the facts backing those conclusions about the risk that Huawei pose? Are our conclusions based on our impressions and feelings, or are they based on facts that we know?"

It is an issue I have touched on before, about basing our decisions on facts and not feelings. And is our poor impression of China stemming from a "brainwashing" legacy from the Cold War that tells us that communism is bad? Are we looking at labels instead of facts?

Are we the mindless critters being told by Big Brother what to think? Or can we look beyond the labels and emotions to discern the truth from the facts?

Monday, December 23, 2019

"約束 (Yakusoku)": A fitting song for "My Tomorrow, Your Yesterday"

I was watching "My Tomorrow, Your Yesterday".


The movie is about two timelines, crossing each other every five years, but running in opposite directions.

And then I chanced upon this song, 約束 (Yakusoku) by リリィ、さよなら。(Lily Sayonara).

I thought it is a song that would really fit the story of "My Tomorrow, Your Yesterday". Especially the part about meeting and parting in each other's lives.

The lyrics:
「でも、もし生まれ変わったらその時は探すからね。」
そんな悲しいこと言わないで ‘来世で’ なんて望まないよ

イジワルなその笑顔も 大事なとこで噛むクセも
いつまでもいつまでも変わらないまま
遠くに行ってしまうんだね
大切に想える人見つかるといいね

生命線 その途中で出逢えたことさよならをしたこと
正しいとか間違いだとかそうじゃなくて君にありがとう

でも、もしまた出逢えるなら もし次があるのなら
今度はもう失くさないように 嘘もつかないから

子供みたいにニヤけるとこも 憂いを含んだ横顔も
いつまでもいつまでも変わらないまま
ただ君のその気持ちが離れていってしまった
僕はただ立ち尽くしていた

生命線 その途中でまたどこかで偶然出逢ったら
胸を張ってあの日のように 上手く笑って声をかけるね

その時は君は何て言うのかな…

生命線 その途中で迷ってしまうような日が来ても
振り返ればそこに君がいて 笑っていられる気がしたよ

生命線 その途中で出逢えたことさよならをしたこと
笑った日も傷つけ合った日々も伝えたい君にありがとう
伝えたい君にありがとう

でも、もし生まれ変わったらその時は探すからね
あの頃と同じように上手く笑ってほしい
(Source)

Saturday, December 21, 2019

Has the Skywalker risen?


I watched Star Wars: The Rise of Skywalker last night. As the last movie of the sequel trilogy, it brings a conclusion to the story of the main characters in the Skywalker saga.

Was it a great movie? Yes. Great visual effects, impactful scenes, everything that makes it worthy of the Disney name. And like a Disney movie, a (somewhat) happy ending.

The rest of this post will contain spoilers, so please take note.

At the end of Episode VI, Emperor Palpatine was defeated and gone, but the rest of the galaxy was still fighting against the (now leaderless) Galactic Empire. It was a happy ending in that the Rebels had won the battle. But there was still the war. But with Episode IX... the evil forces were more or less wiped out by the end of the movie.

Which brings me to ask: where is the balance?

I strongly believe that the Star Wars story is about balance. Anakin Skywalker is supposed to bring balance to the Force. And balance means that the Light side and the Dark side both exist. When the Light was strong, Anakin helped the Dark side to regain balance (but it tipped too much to the Dark as a consequence). Still, in Episode VI, Anakin brought balance back to the Force by preventing the annihilation of the Rebels by the Emperor when he fought against the Emperor. But he did not wipe out the Dark side.

With Episode IX, it would seem the entire Dark side had been wiped out when the Emperor was defeated. And if the Dark side is gone, there is no balance; it is just the Light. Where is that theme of balance? That eternal struggle between Light and Dark?

I do appreciate Rey calling herself a Skywalker at the end of the movie. Her story is one of learning to accept herself for who she is, but also about having the strength to choose to be who she wants to be. It is somewhat similar to what I wrote previously about my thoughts of what being a Skywalker means. But I also wrote about Skywalker being people who bring balance to the Force. In this sense, it is different since Rey has effectively destroyed the balance instead of restoring it.

To me, instead of bringing a proper conclusion, the story of Episode IX leaves a lot hanging.

Are the Skywalkers really the neutral party that brings balance to the Force? Maybe Rey's lightsaber, with a yellowish color, hints so. Being a more neutral color between the blue/green style of the Light, and the red theme of the Dark. But if so, the Dark side must have a way of surviving that total wipeout at the end of the movie. How?

How, in the first place, did Emperor Palpatine survive Episode VI? Did his hatred keep him alive even after sustaining grievous injuries from that fall into the reactor?

Why does Rey and Kylo Ren aka Ben Solo share that bond between them? Was this Force bond created through the same struggle that they face? That struggle between who they were born as, and who they aspire to be?

Is the film trying to say that Rey is the embodiment of balance, because she fuses nature (her Dark bloodline) and nurture (her Light training) into one single entity? If so, the sequel films should have done more to portray that struggle between bloodline and training. (Note: Yes, I think we can all say that Episode VIII was so far off that it probably killed every good idea, and J.J. Abrams did his best to bring things back to somewhat resemble a Star Wars story with Episode IX, the best given the train wreck from VIII.)

Anyway, like other films in the sequel trilogy, Episode IX has many scenes that were reenactments of past films in the series. I am not a fan of such reenactment. Yes, I agree that copying is a good form of compliment, but I think it is lazy. It would have been much better if the film makers used the Star Wars stories of the past and the universe it created to spin their own stories, their own scenes.

Maybe George Lucas should come out and talk about his ideas for the sequel trilogy. Star Wars: The Alternate Sequel Trilogy or something like that. Something less tinted by the Disney mass-market, happy-ending theme. Something that is an engaging story, and yet at the same time explores other human themes like Frank Herbert's Dune series.

Thursday, December 19, 2019

Using common LCD controller on MRR ESPE

The LCD connector on the MRR ESPE, which is an ESP32-based 3D printer board, is designed for the Creality CR-10 stock display, but that did not stop me from trying to get it to work with the more common RepRapDiscount Full Graphics Smart Controller (also called LCD12864). An adapter is used to break out the LCD connector pins to the EXP1 and EXP2 format.

Configuration.h needs to be changed:
#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
#define ST7920_DELAY_1 DELAY_NS(500)
#define ST7920_DELAY_2 DELAY_NS(500)
#define ST7920_DELAY_3 DELAY_NS(500)
(I needed the delays to prevent garbled display, but please try without the delays, and only add them if the display is garbled.)

To use the SD card slot on the LCD controller, additional jumper wires are needed to connect the pins on the adapter to the respective pins on the MRR ESPE. The SD_EN jumper also needs to be removed.

Warning/Note: Before using the adapter, CHECK your LCD controller. The problem with Chinese clones is that some of the adapters have the EXP1 and EXP2 connected in reverse. The easiest way to check is to make sure your printer is not powered. Then, connect the cables from the MRR ESPE to the adapter, and from the adapter to the LCD controller. Next, using a multimeter, check for connectivity between the SD card slot on the LCD adapter (which is connected to GND) and the microSD card slot on the MRR ESPE (which is also connected to GND). If there is connectivity, good! It means that everything should work when you power up the system. If there is no connectivity, chances are the LCD controller has the EXP1/EXP2 connectors in reverse.

MRR ESPA and MRR ESPE available here.
Facebook page
Facebook group
GitHub repo

Wednesday, December 18, 2019

Rant: SAO War of Underworld Ep. 10

Rant warning: This is a rant.


LiSA, the singer who sings the ending theme song "unlasting" for the anime Sword Art Online Alicization: War of Underworld, just appeared on TV and sang that same song. Which prompted me to write this.

The latest episode, Episode 10, aired last Saturday. The War of Underworld series started out... well... much less like a harem anime compared to past SAO seasons. But with Ep.10, the harem thingy is back. Sigh. Sigh!!! Argh!!

Synthesis Knight Alice was a cool figure, committed to her mission of protecting the human world. But this episode turned her into a jealous, spiteful young girl when Asuna appeared. Then, to make the whole episode a disaster, there was a scene where all (okay, not all... there are more to come) these "Kirito fans/lovers" turned up and all agreed to trade stories with each other about their Kirito.

OMG. 🤦🤦🤦🤦🤦🤦🤦🤦🤦🤦🤦🤦

I can understand people falling for Kirito. Nothing wrong with having crushes. I can understand Kirito having only eyes for Asuna. What I cannot understand is this "let's share" thingy. Like sharing a cake. There is no way this will ever happen in the real world. It is truly a teenager's fantasy in a dream world of the writer's own imagination totally removed from all reality.

Okay, rant complete.

Tuesday, December 17, 2019

First manual mesh bed leveling in months

It has been a while, but I did a manual mesh bed level today because I had some issues with prints lately. With the MRR ESPE, which supports a LCD controller, doing manual mesh bed leveling was quite easy. But babystepping does not work on the I2S stream now, so that is a bit of a bummer. (Picture above is an Ender-3 with a quick "first layer test" after completing the manual mesh bed leveling.)

The MRR ESPA, which does not support LCD controller, can do manual mesh bed leveling too over the webUI. Just a bit less reactive since a gcode needs to be sent for each step of correction. Still, with macros on the webUI, this can be less of a hassle than actually keying in gcode commands over the serial terminal in the webUI.

I took time to do manual mesh bed leveling for the modified FLSun Cube too.
Same gcode file for the "first layer test" on the bigger bed of the modified FLSun Cube, but I think it is enough to satisfy me that the manual mesh bed leveling was done properly.

Thursday, December 12, 2019

I2C OLED display on MRR ESPA running Marlin fork


I did a quick test today to see if Marlin's support for an I2C OLED display can work out of the box with the MRR ESPA.

So I hooked up a 0.96" I2C OLED display (VCC -> 3.3V; GND, SDA, SCL to respective pins on MRR ESPA), then edited Configuration.h to enable
#define U8GLIB_SSD1306

Hit compile, uploaded the firmware to the board, and yes! It works! This provides a simple status screen for the MRR ESPA; a web browser is still needed to access the web interface for full control. But at least you can see the position and temperature settings.

Some background. I knew that ESP3D supported OLED displays via I2C, and also knew that the ESP32 did not have enough pins to support a LCD controller like the RepRap full graphics smart controller. So the MRR ESPA was designed to have the I2C pins (SDA and SCL) unused so that they can eventually be used to connect some kind of controller over I2C. The next step is to see if we can find some form of I2C keypad that can be used with Marlin. Or an ADC keypad like the one used on older Anet printers. But the ADC keypad will need to be connected to an ADC pin on the ESP32, and the remaining breakout pin (IO0) is not a suitable candidate since its ADC is being used by WiFi.

MRR ESPA and MRR ESPE available here.
Facebook page
Facebook group
GitHub repo

Monday, December 02, 2019

The history of MRR ESPA: Ready for launch

The MRR ESPA is a 3D printer control board based on the ESP32 micrcontroller. It runs Marlin firmware, and works best with the custom fork of Marlin that supports the ESP3D web interface. This is the final post in a series of posts about how the board was developed.

The darkness gives way to bright skies...

Having solved the heat dissipation issues, I came up with v1.1 as the production version. Which meant I removed most of the header pins since they were already connected to something and cannot be used for anything else. The board was also made slightly smaller, because by now, I had already spun off the MRR ESPE (aka I2S version), knew where to place the 74HC595s for the I2S version, and could afford to try and save board space.


And then v1.1 worked so well for me in my tests, I decided to try and improve it.

So I added the TMC2130 SPI support via jumper settings back to the design, which required quite a bit of routing the traces. And other jumper features like disabling VUSB, and a way to drive the bed MOSFET at a higher gate voltage. Thus was born v1.2.


This was supposed to be the version to be launched. It worked really great. But I still had to tweak it with small improvements (like a debouncing capacitor for the reset button), and eventually ended up with v1.3 as the "final" version to be launched.


And this concludes the series on how the MRR ESPA was born into its current shape. There may still be some really minor tweaks to the MRR ESPA in the future, but I don't expect anything major since the pins on the ESP32, without any expansion, are really limited.

(A series of discussions covering v1.1 to v1.3 can be found here.)

For more information on the MRR ESPA:
Facebook page
Facebook group for users
GitHub repository
MRR ESPA available here

Saturday, November 30, 2019

Testing I2S stepper stream combinations on the MRR ESPE


The MRR ESPE uses four 74HCT595 chips to create a 32-bit I2S stream, which can serve as outputs for the ESP32 microcontroller. These are used to control the five stepper drivers, and various PWM controls (like heating elements and fans).

For stepper driver control, only the lower 16 bits of the I2S stream are used. The question is whether these lower 16 bits can be mixed with upper 16 bits, as well as the native IO pins of the ESP32 for stepper driver control. This will allow more than five stepper drivers. So I tried out a rudimentary test today using an older version of the MRR ESPA (which has breakout pins) and made it serve somewhat like an external stepper driver board. Signals were them piped from the MRR ESPE to this "external board" using jumper wires.

I then made changes to the pins definition file to use the "new" pins, and configured the board as a coreXY machine. This means that board X and Y motors will move when I execute a move on a single axis (X or Y). This allows me to see if the two motors--one driven by the lower 16 bits as per usual, and the other being driven with by native ESP32 pins or pins from the upper 16 bits--can move at the same time. Preliminary results show that yes, they can be mixed. But I will really need to order an external stepper driver board and fully test this out with a proper print to ensure that it is really working, like this one.


The history of MRR ESPA: Toward a stable design

The MRR ESPA is a 3D printer control board based on the ESP32 micrcontroller. It runs Marlin firmware, and works best with the custom fork of Marlin that supports the ESP3D web interface. This is a series of posts about how the board was developed.

The light at the end of the tunnel...

I thought I had solved all the problems with heat dissipation by v1.0, but unfortunately, that was not the case, and it required a minor revision, which was why v1.01 was created. Still, I had big dreams for v1.0, thinking it would be the "production version". And in order not to complicate things, I decided to focus on just the basics for v1.0, which was why TMC2130 SPI support via jumper settings was removed.


Well, it was around this time that JLCPCB was offering solder mask of other colours at the same price as green, so I decided to try out some other colours for v1.01 since I needed to do the revision for trace width.


You can see that the board has a lot of unused "real estate". That was because Simon Jouet was already working on the I2S stepper stream in the HAL, allowing the ESP32 to drive stepper motors using an I2S stream via 74HC595 chips. So I had intentionally left space on the board so that I can eventually work on an I2S version of the board (which eventually became the MRR ESPE).

(I didn't really like yellow PCBs. I have tried all the colors: green, yellow, blue, red, black, and white. My conclusion is that I like all those colors except yellow.)

The next post will be the last of this series, when I touch on the road to a final production version.

(A series of discussions covering v0.8 to v1.01 can be found here.)

For more information on the MRR ESPA:
Facebook page
Facebook group for users
GitHub repository
MRR ESPA available here

Friday, November 29, 2019

Syncing forks on GitHub

I keep having problems with trying to sync my Marlin repo (forked from luc's) to his fork. It is usually a tedious process for me to fetch from upstream, then merge, and end up having a ton of conflicts that I need to manually resolve.

Then, I found the easy way here. I am just going to cut and paste the entire set of instructions just to help me in case I forget.
  1. Open your fork of the repository.
  2. Click the compare button.
    This will open a page titled Comparing Changes and if you look carefully you'll have jumped to the upstream version of the repository. If you were to do a regular pull request then this makes sense as you'd be bringing your changes into the upstream version. But in this case we want to flip the direction and pull changes from the original version to our fork.
  3. Change the base fork to your repository
  4. You're now back to your fork but you've also asked to compare two identical repositories so GitHub thinks you care about branches not forks. Click on compare across forks to get back your base fork option.
  5. Change the head fork to the upstream (original) repository
    Note at this point that if you were in control of everything at GitHub you would probably just have put a little button in between the base for and head fork that would have flipped them for you rather than doing all these clicks. You might even had added in a separate button to check for upstream changes! But they do know that this is a bit of a silly hack and they're working hard on a bunch of other cool stuff so we'll let them off this one.
  6. You'll see one of two options:
  • "There isn’t anything to compare" This means you're up to date and you don't have to do anything. Phew. :relieved:
  • A list of commits. These are the changes that have happened in the repository since you forked your version. Go to step 7.

  1. Create a pull request
    Note that this pull request is to you! So you can confirm that it's ok and merge it when necessary. And if there are any merge conflicts then it's up to you to figure out what's gone wrong and sort them out.
That's it!

After that, to update any local files on disk, I just need to go to the respective folders on my hard disk, and do a git pull.

Thursday, November 28, 2019

Using AI to help in HR

Data-Based Engagement

How is this even a thing?

If your managers, the leaders at the workplace, do not know the people they are working with enough to understand their strengths, weaknesses, motivation, aspirations, and concerns, you don't need AI to help do this for them. You need better managers. Because if your managers are not able to fulfill these roles, they probably lack the leadership and management skills necessary to allow the people under them to fully apply their own capabilities.

AI is getting even more and more powerful as we continue research and development, but we need to guard against companies trying to jump on the AI bandwagon and selling AI as the wonder drug. Nope, AI is not that wonder drug, at least not yet. AI can help us in many aspects of work, but there are still certain aspects which must be covered by humans because of the simple fact that work is being done by humans.

When applying technology, we need to understand what that technology can and cannot do, how it works, what it was designed for. If we apply technology blindly, we will fail without knowing the reason for failure.

AI can help us, but only if we know what we are doing.

The history of MRR ESPA: Custom Marlin fork

The MRR ESPA is a 3D printer control board based on the ESP32 micrcontroller. It runs Marlin firmware, and works best with the custom fork of Marlin that supports the ESP3D web interface. This is a series of posts about how the board was developed.

In the darkness, came a beam of light...

In talking to Luc Lebosse about his ESP3D web interface, he introduced me to his custom fork of Marlin firmware which allows the ESP32 to run both Marlin, and at the same time act as a web server to serve the ESP3D web interface to a web browser. This meant I only need one ESP32 microcontroller, and I don't need to worry about having the MKS TFT32 as the user interface; everything can be controlled via the web browser instead.

I was also working to improve the rudimentary design of the PCB based on feedback from the open source community.

This led to more designs, including changes to the power supply step-down circuit. It was also during this time when someone suggested the idea of using jumpers to allow easy-to-configure support for Trinamic stepper drivers. So I tried to work out something that could allow both TMC2130 in SPI mode, and TMC2208 in UART mode. But the challenge with TMC2208 in UART mode was soon apparent--the ESP32 does not have enough pins (two pins per axis for UART communication). This eventually led to TMC2208 UART support being dropped to focus just on providing TMC2130 SPI support.


Along the way, I realised it is best to have the PCB antenna *outside* the PCB for better connectivity.


It was also with v0.8 that I moved away from EasyEDA to using KiCad instead. This is because KiCad is open source, and it allows me to share my designs easily with others in a more portable format. EasyEDA is good, but it does not export well into other formats.

Starting from v0.9, an optocoupler was used to separate the VBED from VIN based on the design of the Little-Driver external MOSFET. By v0.9, I had solved most of the issues related to components, like the cheap Chinese MOSFETs which kept smoking when I tried to heat the heated bed. It was also in v0.9 that I discovered the issues with trace width that also created issues with heat dissipation. It was also the version where the board was given its current name, MRR ESPA. Before that, it had survived as the MRR ESP32 3DP, 3DP being short for 3D printer.

Look out for the next series, when I finally see the light at the end of the tunnel.

(A series of discussions covering v0.8 to v1.01 can be found here.)

For more information on the MRR ESPA:
Facebook page
Facebook group for users
GitHub repository
MRR ESPA available here

Tuesday, November 26, 2019

The history of MRR ESPA: In the beginning

The MRR ESPA is a 3D printer control board based on the ESP32 micrcontroller. It runs Marlin firmware, and works best with the custom fork of Marlin that supports the ESP3D web interface. This is the first in a series of posts about how the board was developed.

In the beginning, there was only darkness...

Actually, it all began in early 2018. I started dabbling in 3D printing, and was also learning how to use the ESP32 microcontroller. With its WiFi features, the ESP32 was exceptionally charming. Somewhere around mid-2018, I came across Simon Jouet, his work on the HAL for the ESP32 in Marlin firmware, and the R1 of his ESP32Controller (which is also a 3D printer control board based on the ESP32). I also came across the work of Luc Lebosse and his ESP3D web interface. This is an interface which allows an ESP8266 or ESP32 to be used to add WiFi functionality to any 3D printer via UART. I also found the Morpheus-STM32 board, which is something like an expansion board for the STM32F103 "Blue Pill" development board.

This is how the Morpheus-STM32 looks like.

So I decided to give it a try and develop my own board using the ESP32. The basic idea was to use an ESP32 development board as the main microcontroller (using the pins of the ESP32 HAL in Marlin 2.0 as the "reference" assignment). And because the ESP32 does not have enough pins to support a LCD controller, the plan was to have another ESP32 development board loaded with ESP3D firmware to provide the user interface via a web browser. Development boards were used because I needed to upload the firmware separately (one for Marlin, another for ESP3D), and development boards come with their own USB-to-serial chips already in place.

The result was a rather bulky board, the v0.1 of the MRR ESPA. Back then, it was just called ESP32-3DPrinter, and it was designed on EasyEDA. The components used were those I found on EasyEDA, which was why the two development boards were used (they had they most consistent footprints, or so I think).

As you can see, through-hole components were used as I was not comfortable with SMD soldering at that time. The board was also very bulky and did not make the best use of space.

So the next idea was to try and fit everything into a 100mm by 100mm PCB so that I can take advantage of cheap PCB manufacturing services (like JLCPCB). This meant I had to more or less discard the development board idea, and use an ESP32 module instead. I also decided to drop the second ESP32-as-interface idea; instead, I had a MKS TFT32 controller lying around, so I just made sure I had a connector to allow the ESP32 to communicate with the MKS TFT32 over serial. This resulted in a series of trial-and-error designs, the first (aka v0.2) of which looked like this.


Stay tuned for the next in this series, when I will touch on the custom Marlin fork by Luc.

(A series of discussions on the earlier designs can be found here. It covers up to v0.7.)

For more information on the MRR ESPA:
Facebook page
Facebook group for users
GitHub repository
MRR ESPA available here

Sunday, November 24, 2019

Multilateralism or unilateralism

China attacks U.S. at G20 as the world's biggest source of instability

In the past, the U.S. has advocated multilateralism and free trade. This was because these concepts helped the U.S. As a trading nation, free trade benefits the U.S., allowing the U.S. to get needed goods as well as sell its products to overseas markets. Multilateralism gives the U.S. the morale high ground in coercing other nations into following its will.

But when others start to catch on and learn to use this system which the U.S. has created to their own benefit... It is no wonder that China is calling out the U.S. for its hypocrisy. Why can't other nations benefit from this U.S.-created system to become great nations themselves? Is this the fear of being unseated that all hegemons have?

As the hegemon of the current international system, is the U.S. afraid that its position is going to be challenged by China, and is therefore trying to change the system to prevent that? It is like organizing a race, then moving the finish line when others start to catch up.

When the U.S. had a major share of the global economy, countries could only suck it up and observe whatever rules the U.S. set. But today, this is no longer the case. China and other emerging markets can now be viable major trading partners for other countries. If they lose the U.S. market, while they may suffer, countries no longer will be devastated.

Such a world, when other countries in the world can say no to U.S. rules, is of course not something that the U.S. wants. And maybe that is why the U.S. is now trying to change the narrative to allow them to set different rules. But sooner or later, such hypocrisy will be recognised. What then, U.S.?

Tuesday, November 19, 2019

Underwriting international systems

Today, the free and open use of the sea is an important part of our international system. It is codified in the United Nations Convention on the Law of the Sea (UNCLOS), and ratified by most nations. While the U.S. has not ratified UNCLOS, it is still in agreement with almost everything in UNCLOS; there are just some minor issues preventing the U.S. from ratifying it domestically.

Still, the U.S. is the biggest underwriter of UNCLOS, and the enforcement of freedom of navigation is a key operation by the U.S. Navy to ensure that the seas remain free and open for all nations to use.

Of course, this is just one example of how the U.S. serves as the underwriter of international systems. U.S. commitment to the current international system, including the forward-basing of troops in Japan, and others military commitments in Europe, East Asia, and the Middle East is another example of how the U.S. is underwriting the security landscape of the current international system.

At the international level, the hegemon is the underwriter of the international system. That is a fact that has not changed since people formed nations, and nations interacted with each other. As the hegemon of our current international system, U.S. commitment toward underwriting the current system serves to ensure the system is stable, and that other nations observe the rules of the system.

And when the hegemon shows signs of weakness, other players may take the opportunity to bend the rules, break them, or even try to establish new ones.

The current international system is a global one, with the U.S. being the sole hegemon. But if the U.S. is not able to continue underwriting this system, as shown by recent moves by the U.S. asking allies to up their levels of commitment (getting NATO nations and Japan to spend more on defence, for example), it is telling the rest of the world that the U.S. can no longer sustain its status of hegemony.

And that is when other players may come in to challenge the current global system.

China does not need to create a new global system. China, and other major players, can just seek to create regional systems that break away from the current global one in order to break U.S. hegemony. A regional system that breaks away from the global system being underwritten by the U.S. will undermine U.S. hegemony, setting the stage for a new global system (which may be a combination of regional systems, or a single universal one). This new system will be underwritten by regional hegemons, or a single global hegemon.

合久必分,分久必合。
China recognises this concept, this fluctuation of coming together and splitting apart. And being able to recognise the shape of things is the first step toward being able to shape them.

The shape of things is changing, and those nations that are able to recognise this change are the ones who are in a better position to adapt to this change.

Monday, November 18, 2019

Thinking things through thoroughly before implementation

On November 4, 2019, Singapore announced the ban of personal mobility devices (e-scooters) effective the next day.
E-scooters to be banned from Singapore's footpaths starting Nov 5
Given that these PMDs are not allowed on roads, they are effectively limited to cycling paths and park connector networks, limiting their use for personal mobility.

But the decision drew a lot of public outcry as these devices have been widely used by food delivery services, and the almost-immediate ban affects everyone in such businesses. This resulted in an announcement that PMDs can be traded in for cash.
S$7 million in grants to help food delivery riders trade in e-scooters following footpath ban

Having been in the public service for many many years, I thought it was a really bad move by the government in the way that this was handled.

When I was in the public service, I was taught (drilled into me) that anything the government does must be well-thought, because any resemblance of walking back or amending any decision will result in loss of public trust in the government. Any policy, once public, is a commitment that needs to be upheld. This is not to say that the government is never wrong; on the contrary, it means that all those working in the government need to do their due diligence to ensure that every single policy has been thoroughly researched and deliberated, every angle considered, so that any policy that is announced is the best policy for that time.

Anything less will give people the impression that the government is not up to standard.

I wonder where such standards have gone.

Well, it is not just Singapore. A recent happening in Japan was what prompted me to think about this, and I was all ready to criticise the Japanese government until Singapore decided to join in and show that it is at the same level.

In short, Japan's education ministry announced it was going to use private English exams as part of university entrance exams. And readily drew a ton of outcry because such a move will favour those living in bigger cities, who have better and easier access to those private exams compared to students living in the countryside. The ministry eventually walked back its decision, announcing delays, which again caused issues since some people have already started to make arrangements to take those exams (which cost money).
Private English tests for Japan university entrance exams delayed after minister's gaffe

At the end of the day, it all boils down to this: the government needs to think through all its policies thoroughly before making any decisions. To do otherwise is a lack of due diligence, and therefore undermines public trust in the government. Such a lack of trust will eventually hinder the government in working for the people, rendering it ineffective when taken to the extreme.

"Engage brain before mouth."

Supposed to be at DSEI Japan...

I was supposed to be visiting DSEI Japan, "Japan's first integrated defense event" today.

But instead, I am not. Why? Because the organizers did not manage to send out the passes to registrants in time. I mean, today is the actual day of the exhibition, and yet not even an email was received. It is really a pity because I was looking forward to attending the event's conference, at which two of the speakers are people whom I have worked with before when I was still in uniform.

Having been involved in IMDEX Asia several times in the past, this comes as a shock to me. Something so basic, like emailing entry passes to registrants, can fail. It makes me wonder if the organizers are even serious about making this inaugural event a success.

I can only speak from experience, and I do know that the organizers of IMDEX Asia and Singapore Airshow put in a lot of effort to work with the Singapore military to ensure that the VIPs invited to the events are given the best in hospitality, and to ensure that a high degree of interactions take place between visitors and exhibitors. For DSEI Japan... my own limited interaction with one of the organizers did not give me such assurance. All I can say is, in that limited interaction, I left with serious doubts as to whether they are really serious about making this inaugural event a success.

The success of such a trade show lies in being able to create as much interaction between visitors (potential clients) and exhibitors. And impressions are one of the most important things for that to happen. People need to have confidence that the organizers are able to provide opportunities for such interaction. It does not help that the organizers failed at one of the most basic things--sending out the entry passes in time. If you cannot do even such a basic task properly, who is going to have confidence in you that you can succeed at the other, more complex tasks?

By the way, I was told that if I go to the exhibition venue, I should be able to receive a pass by providing my details again (i.e. go through the registration process again). I decided I would not do so because my confidence in the organizers had been badly shaken, and I have serious doubts as to whether I should spend time visiting an exhibition where the organizers may not be as serious about it as I am about attending.

If I were to add a hastag to this post, it would be
#DSEIJapan #failure
just from this basic inability to get the entry passes correct.

(It seems the official Twitter pages, DSEI_Japan and DSEI_jp, are not being updated too, even though the event has opened for several hours now and keynote speakers have spoken. The Facebook page has not been updated for a long long while. In this age of social media, one can only wonder what the organizers are thinking.)

Friday, November 15, 2019

Yang Guo and Kirito



A while back, I got to know about the Sword Art Online anime series, and ended up finishing Season 1. Then Season 2. Then the movie. Then Season 3, and even managed to catch up to the latest season airing on TV now. Even as I was watching Season 1, the protagonist, Kirito, struck me with his similarity to Yang Guo, the protagonist of the wuxia novel The Return of the Condor Heroes 神雕侠侣 by Jin Yong (Louis Cha).

Note: Some spoilers follow.

Like Yang Guo, Kirito's sword is black and made from a special material. When he fights together with his girlfriend Asuna, they complement each other in their attacks and defences. Just like Yang Guo and Xiaolongnü.

And Kirito had to lose his right arm, like Yang Guo, in Season 3. And become "depressed" (it is more complicated than that, but that is the gist) just like Yang Guo after Xiaolongnü disappeared (jumped off the cliff) and he was so down he came up with the An Ran Xiao Hun Zhang 黯然销魂掌.

Also, all the girls seem to keep falling for Kirito, just like the many girls in The Return of the Condor Heroes falling for Yang Guo. But just like Yang Guo, who only has space in his heart for Xiaolongnü, Kirito only has space for Asuna.

So yes, there are many similarities. Is Kirito based on Yang Guo? Who knows? But the important thing is, these are probably common elements of the hero's journey. Having to embark on a journey, a quest to look for something, finding love, facing trials, and finally overcoming all those difficulties to return home.

And maybe that is why the story of Kirito captivates me. It is the same storyline, in a different setting. A story of adventure, of love, of challenges.

Thursday, November 14, 2019

Adapting international frameworks to fit the changing global situation

I think we can all agree that the current international system and its accompanying frameworks were created largely by the Western world--European countries, and the United States when it took over a the global superpower. The current system of national states and the sovereignty of nations are key concepts of the Western world, and today, key concepts of our international frameworks. These frameworks were developed at a time when Europe, and subsequently the U.S., were the leading powers of their times.

The problem, though, is that the world has changed. The global situation is no longer one where European countries are empires with colonies all over the world. It is not one where the world is split between two blocs in a cold war, with each bloc or more less isolated from the other, and the leaders of those blocs being the sole economic powerhouse within their respective blocs.

The world today is very different.

Former colonies have gained their independence (unless you count places annexed, like Guam and Hawaii, as colonies...), and some are doing even better than before. South Korea, Singapore, and Taiwan are strong economies within their regions. The economies of Latin America are growing rapidly. China has gone from being a nation struggling with extreme poverty to become the world's second largest economy. The question is no longer "Will China replace the U.S. as the world's biggest economy?" but "When will China replace the U.S. as the world's biggest economy?"

Under such circumstances, international frameworks which cannot take into account the new global situation will become irrelevant, obsolete, and sidelined.

To preserve the current international frameworks, we need to update them, adapt them to fit into the current times. To ignore the changes, and try to continue implementing these frameworks will risk them being sidelined as new players such as China and India seek ways to be heard. If we do not adjust our frameworks to allow them to talk, they will come up with other platforms for them to be heard. That gives them the initiative, that gives them the advantage. If the leaders of old want to continue their hold on the initiative, then they need to be the ones initiating the changes to the existing frameworks, to change those frameworks to give new players a voice while continuing to be able to control the overall narrative.

If you are operating a bus service, you need to change your routes to adjust to changes in the neighbourhood. Otherwise, you will find yourself with less and less passengers, while someone else start a new bus route that better serves the new shape of the neighbourhood.

Just like living things evolving to adapt to changes in their environments, our systems need to evolve to adapt to the changing times. Natural selection is not limited to biological systems.

Wednesday, November 13, 2019

China and the South China Sea ruse


About 10 years ago, China reasserted claims in the South China Sea through its nine-dash line claim. That was in 2009, when the rest of the world was still trying to recover from the Lehman Brothers bankruptcy.

This claim is not new. It originated from the days when the Republic of China (currently on the island of Taiwan) was in control of the Chinese mainland. But why did the People's Republic of China choose to dig it up after more than 60 years?

Could it just be a ruse?

At a time when the U.S. was trying to consolidate resources to deal with its own domestic financial issues, could China have been using this claim to tie down the U.S. in this region? It is costly to operate a navy far from home. Any scale-back in operations would greatly cut operating costs, money which can be used in other parts of the U.S. to help with economic recovery. But so blatant a claim, so blatantly in contravention of international law (UNCLOS), cannot be ignored by the U.S., because to ignore it would be to undermine the international system that has been put in place under U.S. leadership after World War Two.

It was a move that the U.S. could not ignore, and China knew it.

At the same time, I think China might not be looking into a long-term solution for this issue. Just like the issue of Taiwan and the Senkaku/Diaoyu Islands, sometimes, it is better to have ambiguity and unresolved issues that can be used to one's advantage when the time comes. The longer this drags on, the longer people have to devote resources to deal with it. All China needs to do is to be the one setting the pace, i.e. create the issues. This sends others into a scramble to deal with the issues, always putting them one step behind.

If that is the case, then the best way to deal with it is to be the one setting the pace. To be the one creating the issues for China to deal with.

One way would be the set the stage for a revision to UNCLOS. The U.S. can come in, and say that the U.S. is ready to engage China and India in revising UNCLOS to take into consideration the current global situation; an update to UNCLOS. This, of course, would be a U.S.-led affair, with U.S. in the driver's seat. But it is a move that China would not have expected from the U.S. It will throw China off guard, making China have to be the one to respond to the issue instead. It puts the initiative on the U.S. side. And the U.S. has a good excuse for this. The U.S. has not ratified UNCLOS, and can always say it is ready to work to better UNCLOS so that it can be something universal, accepted by everyone because it takes into consideration the current global situation and the new interests of emerging powers.

I don't know if the U.S. is willing to give this a try, but of course, it is but an example. The trick is to seize the initiative, be the one creating the issues for China to deal with instead of being the one always reacting to issues created by China. Some other alternatives would be to create a forum for discussing the joint development of the South China Sea.

Note: This post is just for me to consolidate some of my thoughts on this issue, and I apologise if it does not sound fully coherent.

Facts, not feelings

"We need to base our decisions on facts, not feelings." This was something that I told some participants of a leadership program that I was helping out in. I thought I would expand a bit on it.

It is human nature to be swayed by our feelings. However, in making our decisions, we need to guard against basing decisions on feelings over facts. Many times, we may think we know something, but those are based on hunches, on bits and pieces of information, hearsay, and facts that we have gathered from various sources to let us arrive at certain deductions. Such deductions are then used to make decisions, even though they may not be true.

This is not to say we should not base our decisions on deductions. It just means that our decisions must be rooted in facts. Either direct facts, or deductions based on facts (and not hearsay, rumors, gossips, blatant misinformation, etc.) Because when we allow our feelings to get the better of us, our feelings will become a filter that colors our deductions, which then further colors our decisions. This becomes a vicious cycle that reinforces the weight of our feelings in decision-making.

We then end up behaving based on how we think the world is like, compared to how the world actually is.

This is not too big an issue if the world is close to what we perceive it to be. But if the actual situation is vastly different from what we think it is, this information/reality gap will directly affect our chances of success in our endeavours. It will cause us to become unable to achieve our objectives because we are not acting based on the actual situation, but on what we (wrongly) think the situation is. In computer terms, garbage in garbage out. In OODA, it is a failure of the OODA loop due to not conducting the "Observe" part properly. This loop failure is self-reinforcing: we act on a flawed decision, which does not achieve the desired result, further warping our sense of reality (our perception of the situation) which then again results in poor decisions and flawed actions.

On a side note, we must also be aware about how our feelings can be used against us, to cloud our decisions. Suspicion and fear do not need to be backed up by facts to be effective. This is because they play on our feelings. An example is the U.S. ban on Huawei. This video seeks to find out the facts behind the ban. But even if there are no facts to support the suspicions and allegations that Huawei is helping the Chinese government, the damage is done--the seeds of suspicion and fear have been planted, and people are acting based on those suspicions and fears rather than real facts. This is how fear-mongering can be harnessed as a tool, how misinformation can be used as a weapon. How feelings can be used to get people to think and act in certain ways, if people do not learn how to base their decisions on facts.

If we want to succeed, and not be led by others, we need to learn how to always base our decisions on facts and not feelings. "Is this a fact? Or is it just how I feel about something?" We need to keep asking ourselves this simple set of questions.

Tuesday, November 12, 2019

A sign of things to come

We see the protests in the streets of Hong Kong. We see the protests in Catalonia. We see protests in other parts of the world. As people take to the streets to protest against their government, we see how technology is being used to bring people together to show their commitment toward a common purpose.

But we also see increasing violence in the protests in Hong Kong, and that is a worrying sign. Because violent protests will only push law enforcement toward taking even more drastic measures. It is a vicious cycle of violence that will eventually end badly for everyone.

At the same time, the United States need to keep a close watch on this. Because with the impeachment inquiry, and likely subsequently the impeachment itself, underway in the U.S. now, I cannot help but wonder: will the impeachment, with the U.S. already so divided along partisan lines, push Trump supporters and those against Trump into taking to the streets in a violent manner similar to those protesters in Hong Kong? If so, how will law enforcement in the U.S., never known for exercising restraint, act?

Is this a sign of the chaos that may engulf the streets of cities all over the U.S. should the impeachment drive an even more stark divide?

What will people in the U.S. and other Western countries say about violent protests when it happens in their own countries? Will their protesters be champions of democracy and free speech, or treated as criminals breaking the law? 

Monday, November 11, 2019

Military force as a continuation of policy? Or part of policy?

We have all read and heard quotes from Clausewitz's On War that war is a continuation of policy by other means. When other ways of doing things have failed to achieve certain political objectives, war is the way to continue pursuing that objective.

Here, I think we can understand war as hot war, as a national effort requiring domestic support and commitment toward pursuing the political objective, as an effort that may possibly evolve into total war. Here, I don't think we should equate war to military action. This is because military action can span a wide scale of intensity, from presence on one end, to all-out total war on the other end. Clausewitz's use of "war" refers to the more intense end of the spectrum in military action.

And since the less intense end of military action continues to provide options for the pursuit of policy, it may be easier to look at military action, or the use of military force, as part of the pursuit of policy.

We see economic action being used to pursue political objectives. Pursuing free trade, use of preferred nation status, imposing of tariffs, imposing economic sanctions--these are examples of economic actions being used to pursue certain political objectives. These actions may also be coupled with diplomatic and even cultural efforts, such as high-level talks between government officials, student exchange, even dissemination of culture (such as the spread of anime, or the dispatch of language teachers to help spread language education).

Just like such actions, military action is but another tool in the toolbox, to be used as appropriate in pursuit of the bigger political objective. Military presence can be used to show a nation's commitment toward a cause. This can be escalated to show of force demonstrations to emphasize a nation's commitment and persuade/coerce. We have also seen the use of limited military force (such as border skirmishes) to further put across political messages.

But does the use of military force preclude the use of other means? I think not. Economic, diplomatic, and cultural efforts can continue to be in place, and new ones undertaken, even when military action is being used. Thus, instead of looking at military force being a continuation of policy by other means, we may want to see it as part of the overall political effort. And since war is part of the spectrum of military action, I think war is thus a part of policy, rather than its continuation.

What do you think?

Friday, November 08, 2019

How far along "all men are created equal" have we come?

Today, the United States is the biggest advocate for democracy and equality. In the United States Declaration of Independence, it is written that "all men are created equal". Thus, in its laws, each person is treated equally. Everyone of age has the right to vote, and each vote has equal weight. But of course, there are certain flaws in its system, since states have the same number of Senators regardless of their population. Which means that in the Senate, the voices of each person in the less populated states are actually bigger than those from states with bigger populations.

At the national level, most countries try to solve this by having the number of elected representatives proportional (more or less) to the number of people they are representing. But at the international level? This is hardly the case.

In the United Nations, each nation is given a vote. The votes of each nation is equal to any other nation. Which sounds fair, until you see the flaw of equality. China and India, which together makes up about 35% of the world's population, but only has 2 out of 193 votes. 35% of the world has only 1% of the voice. 35% of the world's population has only 1% say in what happens to the Earth as a whole. This is hardly "all men are created equal", unless by "all men", the United States is referring to "all men in the United States". If that is so, then such equality is no longer universal, but rather local (limited to the United States), which undermines the United States' advocacy of its ideas to other nations.

This is not just limited to the United Nations. The World Bank, IMF, many other international institutions are similarly "unequal". For example, rich nations having a bigger voting share than poorer nations. What does this mean? The rich has a bigger voice than the poor... hardly "all men are created equal".

If we really believe in "all men are created equal", nations, beginning with the biggest leader, the United States, will have to revise their political systems to ensure proportional representation of its own population at the national level. This is to give each person the same weight of voice in determining the future of his or her own nation. International systems will then need to be revised to allocate voting shares according to population sizes to give each person the same weight of voice in determining our common future on the Earth.

Until such a day comes, we can only say that "all men are created equal" is a lofty ideal, and dream about the day when it actually happens. And of course, for those who believe in such an ideal, work endlessly toward achieving it.

Thursday, November 07, 2019

Attitudes toward the Chinese diaspora

I have been reading a book (making really slow headway, though) titled When China Rules the World: The End of the Western World and the Birth of a New Global Order: Second Edition by Martin Jacques. In it, he discussed the view that China used to view the Chinese diaspora (people who left China) in less than favorable light. In this post, I hope to add a bit of my view on this.

Yes, I think it is not hard to see why China, back in the old days (Imperial China), would see those who left its system as "deserters". After all, China was the embodiment of civilization, and to leave China meant to go join the barbarians. It is to leave the light for the dark. For Star Wars fans, it was really like joining the Dark side.

But back in those days, Chinese migration out of China was quite limited too. People who left China usually fell into two broad categories: those in trouble with the system (i.e. outlaws who needed to escape) and merchants seeking greater profits. The first category is obviously one which China is not going to welcome back. The second category probably did not enjoy a very good reputation back in Imperial China, since merchants are quite low in the Confucian order of society, and all the more so for those out to seek profits for their own selfish needs.

But Chinese migration in the late 19th century into the first half of the 20th century was fundamentally different. People left Imperial China not to escape the law or to seek selfish profits. Rather, they left to seek survival, better times at a time when conditions in China could not support them. In a way, they left because they had no choice. And thus, I think that is why modern China's attitudes toward the Chinese diaspora is different compared to the attitudes of Imperial China. It is why China today shows a willingness to work with overseas Chinese, and even welcome them back to China. Instead of being outlaws and selfish merchants, they are seen as family forced to seek refuge overseas during turbulent times, family which can now contribute again back to the bigger extended family of China and Chinese society.

This change in attitude is likely to affect the way China views immigration going forward. We already see a wave of Chinese migration into Africa. Once China starts to view the Chinese diaspora as an asset, and given China's continued economic rise, we can expect migration patterns to change, and the corresponding change in the attitudes of overseas Chinese toward mainland China.

The book has proven to be a good read so far. You can also check out the TED talk by Martin Jacques about understanding the rise of China:

Note: post includes associate links to Amazon.com.

Wednesday, November 06, 2019

Bankrupting the U.S. through imperial overstretch

Two weeks ago, I had the opportunity to attend a talk about China's expanding capabilities in big hull ships for HADR.

China's New Navy and Humanitarian Assistance and Disaster Relief

It was interesting to see how China is building big hulls (aircraft carriers and amphibs), and how they can be used to further Chinese influence through provision of HADR.

After the Great East Japan Earthquake of 2011, the JMSDF (and Japan's Self-Defense Force in general) has gain a huge reputation boost for its involvement in disaster relief. While big hulls have a primary combat roll, their secondary role in HADR is increasingly being used to justify the spending required to build, operate, and maintain them.

And it looks like China has caught on to this narrative.

An idea that kept bugging me is how China can use such big hulls and the HADR role to bankrupt the U.S.

As the global policeman, the U.S. deploys forces all over the globe. But this places a huge fiscal burden on the U.S., and the U.S. is increasingly calling out to its allies to chip in. It is expensive to keep forces abroad due to the infrastructure needed to support them. What this means is that we are likely to see reduced U.S. presence in various parts of the world.

And China can easily step in to fill that presence-gap with its new big hulls. On the pretext of HADR readiness, China can deploy a carrier group and two amphib groups in the region (the carrier group in the South China Sea, while one amphib group in the Indian Ocean and another in the southern Pacific). This gives China opportunities to show the flag, and they will be ready to render immediate assistance should a disaster occur, which will again be a reputation boost.

The message? "We are here to do what the U.S. used to do."

Is the U.S. ready to concede to such messaging? If now, the U.S. will need to maintain a similar presence: three groups out at sea at any time, ever ready to respond to any disaster. The problem here is cost: the region is closer to China, which means it will cost them less to rotate the assets necessary to maintain such a presence. The U.S. will increasingly be called to justify such costs to its citizens back home, given its domestic needs and rising government debt.

Such a move by China will put the U.S. in a very difficult position. Does it cede regional leadership to China by scaling back its presence? Or should the U.S. continue to spend on such presence, ignoring its dangerous fiscal position and other domestic needs (which may eventually undermine its global economic position)? Will such a move by China lead to the bankruptcy of the U.S. due to imperial overstretch?

Tuesday, November 05, 2019

Competition, evolution, and survival

China-led Asian trade bloc pushes ahead as India drops out

We can all understand the fear that can be brought by a sudden influx of cheap Chinese goods. But is the fear of competition good for us in the long term?

Evolution is competition. Biologically, species survive because they are able to compete with other for limited resources. Humans are now the dominant species on Earth because we have evolved to be capable of winning the resource competition.

And national survival is at stake when it comes to economic competition.

Free trade exposes economies to competition. When goods and services can be easily brought in from another country, domestic companies are forced to compete in order to survive. This can be bad news for those companies forced to compete. But it is this competition that makes an economy stronger.

It forces companies to be come better if they want to survive. It is that evolutionary process, in another arena.

It is such competition that will bring the entire human species forward.

We all fear competition, because there is always the possibility of losing. But we must remember that it is such competition that forces us to keep improving, and it is this constant strive for improvement that will allow us to survive into the future.

TPP and RCEP will be the two major economic circles going forward. And China will be the most important player in both of them, given the absence of the U.S. As existing frameworks become weaker due to the increasing isolationism of the U.S., new frameworks driven by China will arise to take their places. For nations to survive, they will need to be able to adapt to changes in the global environment. For change is the only constant in life.

MAGA at the expense of everyone else

Trump administration notifies U.N. of planned Paris climate accord exit
Trump campaigned on a promise to rescind that pledge, saying it would hurt the U.S. economy while leaving other big polluters like China to increase emissions.
This may sound right when you look at the amount of CO2 China is putting out. Based on World Population Review, U.S. CO2 emissions in 2019 is 5.00 billion tons. This is almost half of China's total emissions, which stands at 9.04 billion tons. But... China's population is in the magnitude of 1.4 billion people, compared to a much smaller U.S. population of around 330 million people. In other words, China has about four times as many people, yet emits less than twice as much CO2. This shows in the per capita CO2 emission: U.S. per capita CO2 emission is 15.53, while China's is 6.59, which is less than half. "The U.S. is proud of our record as a world leader in reducing all emissions, fostering resilience, growing our economy, and ensuring energy for our citizens." This no longer sounds very convincing when you look at actual figures.

The thing is, China is now a leader in solar panel production, and has been putting a lot of effort into renewable energy use. This presents a huge problem for global leader U.S.: if the U.S. is not able to match China's efforts in dealing with environmental issues, it will eventually lose moral high ground. As China grows in economic might, the only thing preventing China from usurping U.S. leadership is the current hold that the U.S. has over the narrative on moral high ground. If the U.S. loses this narrative, it will see a weakening of its soft power at a time when its hard power is being challenged by China.

The moral high ground, the Mandate of Heaven, has always been central to China's thinking about intra and inter state relations. We can expect China to continue to work on this narrative, even as the U.S. moves further away.

Wednesday, October 30, 2019

MRR ESPA pre-launch version (3D printer board using ESP32 running Marlin 2.0) now available


Using mostly components available on hand, a limited number of the MRR ESPA is now available here. They give a new meaning to in-house production; I literally made them in the house after work. 😅

A recap: the MRR ESPA is a 3D printer control board based on the ESP32 microcontroller. It comes with WiFi, allows the use of up to 4 stepper drivers (and Trinamic SPI drivers can be easily configured using jumpers), and has a optocoupler for heated bed control, which means a separate power supply can be used for the heated bed. It is built especially for the Marlin firmware, and using a custom fork of Marlin 2.0, supports the ESP3D web interface allowing full control over any web browser.

The pre-launch version will ship with the custom fork of Marlin 2.0 and ESP3D web interface already flashed onto the board. The board will thus boot up as a WiFi access point "MARLIN_ESP" and default password of "12345678". The web interface (available at 192.168.0.1) can then be used to set up the board to connect to your router. After which it will basically operate off your router, and can be updated via OTA with a copy of the firmware configured for your own needs.

Some social media pages for the MRR ESPA:
Facebook page
Facebook group (for discussions, etc.)
YouTube video

Monday, October 28, 2019

Trump declares death of ISIS leader Abu Bakr al-Baghdadi

Remarks by President Trump on the Death of ISIS Leader Abu Bakr al-Baghdadi

This is a heavy blow to ISIS, but I am a pessimistic person and I think it is a matter of time before someone else comes in to fill that leadership void.

Trump described al-Baghdadi as "whimpering, screaming, and crying"... and Trump is thinking of disclosing video footage of such behaviour in order to discredit al-Baghdadi. Which sounds like Trump, and like all things Trump does, may end up backfiring on him.

Obviously, Trump doesn't understand what al-Baghdadi was saying, what he was screaming about. I don't too. But what if, just what if, in his final hours, al-Baghdadi was screaming "death to the American devils" and whimpering and crying because he was prostrating himself to God and asking God to "strike down the American infidels"? Airing such a video footage then becomes great propaganda for ISIS, and make al-Baghdadi a matyr.

It may end up rallying people to join the ISIS cause.

The ISIS leader is dead. There is no need to sensationalize it. Trying to make it bigger news than it should may end up fanning flames elsewhere, flames that you would rather not have.