Testing an OpenGL 3D Cube on Linux

I found this nice video tutorial at Youtube video:

https://www.youtube.com/watch?v=WjSRCX4OrZU

Then I downloaded the example from: https://bitbucket.org/c-code/snakegame/src/master/opengl_cube.c

but when I tried to compile I got this error:

$ gcc opengl_cube.c -o cube -lgl -lglu
/usr/bin/ld: cannot find -lgl: No such file or directory
/usr/bin/ld: cannot find -lglu: No such file or directory
collect2: error: ld returned 1 exit status

So, the solution was installing these packages:

$ sudo apt install build-essential libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev

Then I noticed my other mistake, it should be -lGL and -lGLU, also -lglu was needed:

$ gcc opengl_cube.c -o cube -lGL -lGLU -lglut

Getting started to WiFi HaLow

I bought some seeed studio wifi modules and I will get it running:

https://wiki.seeedstudio.com/getting_started_with_wifi_halow_module_for_xiao/


Then I found a user that was able to use it with the official MorseMicro image:

https://community.morsemicro.com/t/after-changing-bcf-from-basic-to-quectels-for-xiao-esp32s3-sense-xiao-wifi-halow-quetel-fgh100m-h/1121

Also the pre-build binaries are here:

https://github.com/MorseMicro/morse-firmware/tree/main/bcf/quectel


Connecting the Seeed Studio Module to Raspberry Pi Zero 2W discussed here:

https://community.morsemicro.com/t/raspberry-pi-zero-2w-with-fgh100m/938/6

A nice vacuum cleaner to use with your TTC450 Pro CNC Router

I was searching for an alternative vacuum cleaner to use with my Two Trees TTC450 PRO CNC, after reading negative feedback about their own vacuum cleaner that I was considering to buy.

I opted to buy Bosch GAS 12-25 PL, 1250W 220V because it has a nice feature Auto Start and Auto Stop. It works this way: the GAS12-25 PL vacuum cleaner has outlet where you plug the device that you want to turn on the the vacuum cleaner will start automatically as soon as your turn your device on.

I was afraid that feature will not work with Two Trees TTC450 500W Spindle, because its power supply needs to be on (powered) all the time to communicate with the TTC450 Pro control board. But it worked fine, the vacuum cleaner feeds some current to the Spindle power supply and it detects when the Spindle starts to run and then turns on automatically. Really cool indeed!

How to program STM32U585 of the Arduino UnoQ

Unfortunately the STM32U5 from UnoQ board doesn’t extern the SWD pins, so it cannot be flashed directly using an external ST-Link or other SWD programmer.

Fortunately someone discovered that inside the UnoQ Linux distro is running an OpenOCD server to program the STM32 chip. And he discovered how to redirect the openocd port, using an adb command, to let you to flash the STM32.

More info: https://forum.arduino.cc/t/debugger-pin-exposure-to-access-mcu/1420476/3

Analyzing line editor alternatives to NSH

The NuttX NSH is really create, it has a lot of features like autocomplete, history, etc. However a thing missing on it is the ability to edit the typed text after “nsh>”.

After I decided to search for alternatives to replace the NuttX readline or to add text editing support to it.

The first alternative is called editline:

https://github.com/troglobit/editline

It is very complete, but the source code is not so small.

Other alternative is libedit, it is a little smaller than editline:

https://github.com/aosm/libedit

A better alternative to low-end device could could linenoise:

https://github.com/antirez/linenoise

It has many features and it is a single file with 1.7K LoC (lines of code)

Thanks Marco Casaroli for bring linenoise to my attention!

Getting started to TwoTrees TTC450 Pro CNC Router

I decided to buy an affordable CNC Router because I don’t have space to mount my old CNC that I built from scratch.

I recorded all the unboxing and building process (actually it was my wife that recorded me) and will put it on my youtube channel soon (promise!).

The TTC450 Pro quality impressed from unboxing to the final details, seems like they really did a great work and probably to a low of feedback.

I found this video showing a guy mounting the TTC450 (BTW, his CNC is not the Pro model) and he faced a lot of issues that no longer exist, the machine now came semi-built, so not much things to assembly, here is his video:
https://www.youtube.com/watch?v=bLOL9uIseLQ

Some of his complains are true, the manual doesn’t show too much details about the cable position, but I figure it out easily.

I still learning about this machine, maybe the fact I had built a machine from scratch before helped me to assembly this CNC in less than 1-2h, but I think TTC450 Pro is very easy to assembly yourself.