Astro-Tracker - Astroduino

Astro-Tracker - Astroduino

thingiverse

A nice Arduino project! It looks like you've written a star tracker program for the Astroduino, which is a modified Arduino board designed specifically for astronomy projects. Here are some observations and suggestions: 1. **Code organization**: Your code is well-organized, with clear sections for setup, loop, and functions. However, some of the variables (e.g., `adc_key_in`, `key`) could be declared at the top of the file to make it easier to understand their purpose. 2. **Variable names**: Some variable names are not very descriptive (e.g., `k` in the `get_key` function). Consider using more meaningful names to improve code readability. 3. **Magic numbers**: You have several magic numbers scattered throughout the code (e.g., `1000000`, `16`, `2`, etc.). Consider defining constants for these values to make the code easier to understand and maintain. 4. **Comments**: While you have some comments explaining what certain sections of code do, there are areas where more comments would be helpful (e.g., the `motorrun` function). 5. **Code style**: Your code style is generally consistent with Arduino's coding conventions. However, consider using a more consistent naming convention for variables and functions (e.g., camelCase vs. underscore notation). Here are some minor suggestions: * In the `setup` function, you can remove the `lcd.clear()` call after initializing the LCD display. * In the `loop` function, you can use a `switch` statement instead of multiple `if` statements to handle different key presses. * Consider adding more comments to explain the purpose of each function and how they interact with each other. Overall, your code is well-organized and easy to follow. With some minor improvements, it will be even more maintainable and understandable for future developers working on this project!

Download Model from thingiverse

With this file you will be able to print Astro-Tracker - Astroduino with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Astro-Tracker - Astroduino.