This on-board computer (OBC) is designed as part of a larger CanSat project. It is the main flight software running on the CanSat itself. It is responsible for running the flight logic, managing sensors and actuators, and communicating with the ground station.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
The things you need before using the CanSat:
- 1x CanSat
- (Optional) Serial Monitor (e.g., PuTTY, RealTerm) for viewing debug information.
- Microchip Studio (Formerly Atmel Studio) for compiling the project.
To install Microchip Studio and set it up for this project, follow these steps:
- Download Arduino IDE from the Arduino Website
- Go to
Tools > Board > Boards Managerand install Arduino AVR boards - Check the installation path of Arduino IDE
- Right-click on the
Arduino IDE icon > Open File Location - Example:
C:\Users\johndoe\AppData\Local\Programs\Arduino IDE
- Right-click on the
- Locate the
avrdude.exepath:- Example:
C:\Users\johndoe\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17\bin\avrdude.exe
- Example:
- Install Microchip Studio from the Microchip website
- Open Microchip Studio
- Go to
Tools > External Tools - Click on
Add - Fill in the following fields:
- Title:
COMx.- Example:
COM4.
- Example:
- Command:
avrdude.exepath.- Example:
C:\Users\johndoe\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17\bin\avrdude.exe - Arguments:
-Cpath toavrdude.conffile-v -patmega328p -carduino -PCOMx-b115200 -D -Uflash:w:"$(ProjectDir)Debug\$(TargetName).hex":i.- Example:
-C"C:\Users\johndoe\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17\etc\avrdude.conf" -v -patmega328p -carduino -PCOM3 -b115200 -D -Uflash:w:"$(ProjectDir)Debug\$(TargetName).hex":i
- Title:
Turn on the CanSat to start. Debugging information will be sent to the serial monitor if connected.
Below are links to additional documentation related to the CanSat project:
For more details on software, click here.
For an overview of the entire project and hardware, click here.
This project is not protected under any license. You are free to use, modify, and distribute the software as you see fit.