Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use gyro and ultrasonic eyes #93

Open
josephburnett opened this issue Sep 30, 2024 · 1 comment
Open

Use gyro and ultrasonic eyes #93

josephburnett opened this issue Sep 30, 2024 · 1 comment

Comments

@josephburnett
Copy link

Currently the software cannot use the gyro and ultrasonic eyes at the same time.

// you can also activate the following modes (they will disable the gyro to save programming space)

Is this a software limitation (making the compiled code smaller) or a hardware limitation (not enough registers)? I am interested in improving the code to have both working at the same time.

@borntoleave
Copy link
Collaborator

ATmega328P only has 32 KB flash and 2 KB SRAM. The added features and UI eventually filled up the programming space (Flash), making it difficult to run two large modules simultaneously. The 64Kb I2C EEPROM used for saving behaviors data is also filled up. You can comment out the IR_PIN and disable the Neopixels in the Ultrasonic sensor to save space for the Gyro.

We are moving to OpenCatESP32, where the computational resources are more abundant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants