How to connect to your ESP32 on macos

To find out as what USB device the ESP32 is connected, open Terminal and enter:

ls /dev/tty* | grep usb

in my case I got

/dev/tty.usbserial-14120

Now we can connect via screen:

screen /dev/tty.usbserial-14120 115200

When you reset the board you should see something like this

configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:5656
load:0x40078000,len:12696
load:0x40080400,len:4292
entry 0x400806b0

To end the session in screen, press Ctrl+a, and type :quit and press Enter.

 

MicroPython uos package

When you are familiar with python os and platform package You may wonder how to use it on ESP32 in MicroPython. Because this doesn’t work:

>>> os.name
Traceback (most recent call last):
File "", line 1, in 
AttributeError: 'module' object has no attribute 'name'
>>> import platform
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: no module named 'platform'

UOS for the rescue

Continue reading “MicroPython uos package”

Resistors and Color Code

Resistors with 4 rings

Color 1. Ring 2. Ring 3. Ring – Multiplier 4. Ring – Tolerance
black 0 1 x 1
brown 1 1 x 10 1 %
red 2 2 x 100 2 %
orange 3 3 x 1.000
yellow 4 4 x 10.000
green 5 5 x 100.000 0.5%
blue 6 6 x 1.000.000 0.25%
purple 7 7 x 10.000.000 0.1%
grey 8 8
white 9 9
gold x 0,1 5%
silver x0,01 10%

Resistors with 5 rings

Color 1. Ring 2. Ring 3. Ring 4. Ring – Multiplier 5. Ring – Tolerance
black 0 0 0 x 1
brown 1 1 1 x 10 1 %
red 2 2 2 x 100 2 %
orange 3 3 3 x 1.000
yellow 4 4 4 x 10.000
green 5 5 5 x 100.000 0.5%
blue 6 6 6 x 1.000.000 0.25%
purple 7 7 7 x 10.000.000 0.1%
grey 8 8 8
white 9 9 9
gold x 0,1 5%
silver x0,01 10%

Calculator for Resistor Values

Calculator for 4 rings

1. Ring 2. Ring 3. Ring 4. Ring Value Tolerance
0Ω 0%

Calculator for 5 rings

1. Ring 2. Ring 3. Ring 4. Ring 5. Ring Value Tolerance
0Ω 0%

Bosch IXO Repair

In 2006 I bought my first Bosch IXO. It did a wonderful job over the last years and helped a lot assemble and disassemble mostly furniture. (I moved 3 times in the last ten years)

But when we started to renovate our  bureau at home the switch for changing directions started to get a slack joint. Here You can see the misery:

After a bit of a web search I finally found a replacement part and soldered it in:

Works like a charm!

Next steps:

  • Replace battery
  • Replace LED with brighter one