Shop Learn
Combined code (SD_logging + Servo) not working ActivityBot360 (C) — Parallax Forums

Combined code (SD_logging + Servo) not working ActivityBot360 (C)

PhimiePhimie Posts: 1
edited 2021-11-25 08:17 in Propeller 1


I have a problem with the ActivityBot360 when trying to map a route by navigating against a wall on the right-hand side with an IR sensor and writing the stepped angle to an SD card.

The robot can run both the servo required functions and the SD logging functions separately, but when combining the functions into one code it does not work at all and stalls when loaded into the robot.

he problem I am having seems to be that the servo360_connect is somehow blocking the sd_mount function (not 100% sure).

I added two pdfs:
-logg_speed_2.pdf is the code for running them both simultaneously.
-logg_speed.pdf is the same but here saving 48 movements into an array and then trying to log that array to SD card when done (more extra steps here).

Is there any workaround for this problem?


  • iseriesiseries Posts: 1,031

    I took a look at your code and it looks ok.

    I think your running into a stack issue here. The compiled size is over 30k and there is no check for stack overflow conditions in the code.

    There are several variables being created in the functions and floating point adds a lot of program code.


Sign In or Register to comment.