Scalar hyperspherical tracking on a PIC18F4620 microcontroller
Keywords:
PIC microcontroller, homotopy continuation with spherical tracking, school mathematics speech, numerical analysis, educational mathematics.Abstract
Implementing continuation homotopy typically relies on numerical techniques such as Newton–Raphson iteration, Euler prediction, and interpolation. As the size or nonlinearity of the system of equations increases, the computational demands escalate, necessitating workstations with ample RAM, high-performance processors, and software environments like Maple, MATLAB, Fortran 90, or C++. This study explores a low-cost alternative: a scalar implementation of hyperspherical tracking on the 8-bit PIC18F4620 microcontroller—hardware that lacks a mathematical coprocessor and the resources of a conventional PC. The algorithm, written in MikroC, drives a 128 × 64-pixel monochrome graphic display that plots the homotopy trajectory and marks the converged root. Four case studies demonstrate that, despite the display’s limited resolution, the root error can be maintained below 10⁻⁶. These results confirm that advanced homotopy concepts can be realized on modest hardware, providing a practical teaching tool for courses that integrate microcontroller programming with numerical analysis.
The article outlines two instructional pathways. The first targets undergraduate engineering courses, where students already have a foundation in numerical methods and embedded C. The second is tailored to technology-oriented baccalaureate programs, adopting a STEM (Pantoja-Amaro, 2020) perspective to highlight the real-world relevance of mathematics. Both pathways emphasize interdisciplinary learning: students connect algebra, analytic geometry, and differential calculus to hands-on electronics, deepening their understanding while developing transferable engineering skills.
References
Allgower, E. L., & Georg, K. (2012). Nu-merical continuation methods: An introduc-tion (Vol. 13). Springer Science & Business Media.
Baldor, A. (2019). Álgebra. Patria Educación.
Burden, R. L. & Faires, J. D. (2017). Numer-ical methods (9th ed.). Cengage Learning.
Clavijo, R. (2011). Diseño y simulación de sistemas microcontrolados en lenguaje C. MikroElektronika.
Chapra, S. C., & Canale, R. (2015). Métodos numéricos para ingenieros. McGraw-Hill.
Díaz-Arango, G., Vázquez-Leal, H., Her-nández-Martínez, L., Sanz-Pascual, M. T., & Sandoval-Hernández, M. (2017). Homotopy path planning for terrestrial robots using spherical algorithm. IEEE Transactions on Automation Science and Engineering, 15(2). https://doi.org/10.1109/TASE.2016.2638208
Gallardo-Alvarado, J. (2019). An application of the Newton homotopy continuation method for solving the forward kinematic problem of the 3-RRS parallel manipulator. Mathematical Problems in Engineering, 2019, Article 3123808. https://doi.org/10.1155/2019/3123808
Garrigós-Sabaté, J., & Valero-García, J. (2012). Hablando sobre aprendizaje basado en proyectos con Júlia. Revista de Docencia Universitaria, 10(3). https://doi.org/10.4995/redu.2012.6017
Jiménez-Islas, H. (1996). SEHPE: Programa para la solución de sistemas de ecuaciones no lineales mediante método homotópico con seguimiento hiperesférico. Avances en Inge-niería Química, 6(2).
López-González, M. de la L., Quemada-Villagómez, M. L., Martínez-González, G. M., Oliveros-Muñoz, J. M., & Jiménez-Islas, H. (2023). A novel predictive homotopic path tracking algorithm to solve non-linear algebraic equations. The Canadian Journal of Chemical Engineering, 101(6), 3382–3404. https://doi.org/10.1002/cjce.24694
Martín-Páez, T., Aguilera, D., Perales-Palacios, F. J., & Vílchez-González, J. M. (2019). What are we talking about when we talk about STEM education? A review of literature. Science Education, 103(4), 799–822. https://doi.org/10.1002/sce.21522
Mendoza, J. C. (2011). Diseño y simulación de sistemas microcontrolados en lenguaje C. C Colombia.
Microchip Technology Inc. (2008). PIC18F2525/2620/4525/4620 data sheet: 28/40/44-pin enhanced flash microcontrollers with 10-bit A/D and nanoWatt technology (Publication No. 39626E). https://ww1.microchip.com/downloads/en/devicedoc/39626e.pdf
MikroElektronika. (2009). MikroC PRO for PIC user manual. https://download.mikroe.com/documents/compilers/mikroc/pic/mikroc-pic-manual-v101.pdf
MikroElektronika. (2012). Visual GLCD: GLCD GUI design software. https://www.mikroe.com/visual-glcd
MikroElektronika. (2014). EasyPIC V7 con-nectivity user’s guide. https://download.mikroe.com/documents/full-featured-boards/easy/easypic-v7/easypic-v7-manual-v104c.pdf
Olvera-Martínez, M. C., Reyes-Rodríguez, A. V., Campos-Nava, M., Torres-Rodríguez, A. A., & Soto-Campos, C. A. (2022). El enfo-que STEM y el aprendizaje de las matemáti-cas. Unión. Revista Iberoamericana de Edu-cación Matemática, 18(66).
Pantoja-Amaro, L. F., Peña-Aguilar, J. M., & Mendoza-Torres, C. P. (2020). Desarrollo de habilidades STEM en media superior como mecanismo para impulsar la continuidad en educación superior: Caso programa Bases de Ingeniería. RIDE. Revista Iberoamericana para la Investigación y el Desarrollo Educativo, 10(20).
Quemada-Villagómez, M. L., Jiménez Islas, H., López-González, M. de la L., & Olive-ros-Muñoz, J. M. (2022). Enseñanza del mé-todo de continuación homotópica con se-guimiento hiperesférico para estudiantes de ingeniería. Acta Universitaria, 32, Article e3358. https://doi.org/10.15174/au.2022.3358
Roychowdhury, J., & Melville, R. (2006). Delivering global DC convergence for large mixed-signal circuits via ho-motopy/continuation methods. IEEE Trans-actions on Computer-Aided Design of Inte-grated Circuits and Systems, 25(1), 66–78. https://doi.org/10.1109/TCAD.2005.852461
Sandoval-Hernández, M., Álvarez-Gasca, M., Contreras-Hernández, A. D., Pretelín-Canela, J. E., Palma-Grayeb, B. E., Jiménez-Fernández, V. M., et al. (2019). Exploring the classic perturbation method for obtaining single and multiple solutions of nonlinear algebraic problems with application to mi-croelectronic circuits. International Journal of Engineering Research & Technology, 8(9). https://www.ijert.org/exploring-the-classic-perturbation-method-for-obtaining-single-and-multiple-solutions-of-nonlinear-algebraic-problems-with-application-to-microelectronic-circuits
Sandoval-Hernández, M., Vázquez-Leal, H., Filobello-Niño, U., De-Leo-Baquero, E., Bielma-Pérez, A. C., Vichi-Mendoza, J. C., Álvarez-Gasca, O., Contreras-Hernández, A. D., Bagatella-Flores, N., Palma-Grayeb, B. E., Sánchez-Orea, J., & Cuellar-Hernández, L. (2021). The quadratic equation and its numerical roots. International Journal of En-gineering Research & Technology, 10(6), 301–305. https://www.ijert.org/the-quadratic-equation-and-its-numerical-roots
Sandoval-Hernández, M. A., Vázquez-Leal, H., Huerta-Chua, J., Filobello-Niño, U., & Mayorga-Cruz, D. (2022). La didáctica del cálculo integral: El caso de los procedimien-tos de integración. RIDE. Revista Iberoame-ricana para la Investigación y el Desarrollo Educativo, 13(25). https://doi.org/10.23913/ride.v13i25.1245
Sandoval-Hernández, M., Jiménez-Islas, H., Vázquez-Leal, H., Quemada-Villagómez, M., & López-González, M. de la L. (2025a). Ex-ploring homotopy with hyperspherical track-ing to find complex roots with application to electrical circuits. Open Mathematics, 23(1). https://doi.org/10.1515/math-2024-0115
Sandoval-Hernández, M. A., López-Velez, G. C., Filobello-Niño, U. A., Morales-Alarcón, G. J., Jiménez-Fernández, V. M., & Vázquez-Leal, H. (2025b). Algoritmo itera-tivo para calcular raíces cuadradas y cúbicas para estudiantes de educación media: Itera-tive algorithm to calculate square and cubic roots for secondary and high school students. Revista Digital: Matemática, Educación e Internet, 25(2). https://doi.org/10.18845/rdmei.v25i2.7604
Uriza, R. C., Espinosa, G. M., & Gasperini, D. R. (2015). Análisis del discurso matemá-tico escolar en los libros de texto: Una mira-da desde la Teoría Socioepistemológica. Avances de Investigación en Educación Ma-temática, 2015(8), 9–28. https://doi.org/10.35763/aiem.v1i8.123
Wayburn, T. I., & Seader, J. D. (1987). Ho-motopy continuation methods for computer-aided process design. Computers & Chemi-cal Engineering, 11(1), 7–25. https://doi.org/10.1016/0098-1354(87)80002-9
Zangwill, I. J., & Garcia, C.B. (1984). Pathways to solutions, fixed points, and equilibria. Prentice-Hall.




