Week 09

Output Devices

Week 09 - Output Devices

My challenge this week is to create a board with which I can control a servomotor using the XIAO 2040 microprocessor and a potentiometer..

Control board design.

As I am not yet familiar with electronics, I obtained a simple control model of a servomotor with a potentiometer and the microprocessor, the elements used are:

- XIAO 2040 Microprocessor.

- Servo Hk 15138.

- Potentiometer: POT 1K OHM 1/2W CARBON LINEAR 24 .

- Coper clad circuit board.

I did some research and made a sketch of the design I want to make.

Descripción de la imagen
Figure 9.1 - Work sketch.

Based on the design I began to design the control board with the "fusion" software, I decided to put in some extra ports in case I need to use them in the future.

Descripción de la imagen
Figure 9.2 - Plate design.
Descripción de la imagen
Figure 9.3 - 3D plate design.

Manufacturing of the control board.

Unfortunately this week we continue to have electrical problems at FABLAB, the problem was only solved on Monday afternoon. That is why I have decided to modify the first board I made in this course in order to adapt it for this new function.

Descripción de la imagen
Figure 9.4 - Adaptation of old circuit.
Descripción de la imagen
Figure 9.5 - Placement of the components in a box made with a 3D printer for the occasion.

Programing

Programming was done using micropython, through Thonny.

Descripción de la imagen
Figure 9.4 - Servo control program.
  • Servo control program - Download

    Recommended links

    https://how2electronics.com/getting-started-with-seeed-xiao-rp2040-with-projects/ . https://how2electronics.com/getting-started-with-seeed-xiao-rp2040-with-projects/

    Many Thanks!!