CODE EXAMPLES

Code Examples

In this section you will find simple examples to verify the operation of each of the elements located on the different PCBs.

CircuitPYTHON

It is very important that you have studied the Getting started with CircuitPython section before continuing.

You can download all the CircuitPython examples and associated files from here.



OBC CircuitPython sensor demo.

Loop printing sensor data every second. Keep in mind the gas sensor takes a few seconds to stabilize! Until then, it will always report 400 ppm CO2 - 0 ppb TVOC.


EPS CircuitPython sensor demo.

This demo powers the PQBH40 bus and sends a reset signal to initialize the satellite. It also provides battery and bus voltage monitoring each second.


OBC + COMMS LoRa Demo.

This example will transmit a message and keep listening to responses for 10 seconds. After that time, it will send another message. Needs DynOSSAT-EDU OBC and DynOSSAT-EDU Comm PCB´s.

ARDUINO

It is very important that you have studied the Getting started with Arduino section before continuing.

These can be copied and pasted onto the Arduino IDE. Make sure you have the required libraries installed.

OBC Arduino USB Serial Comm Test.

This example will transmit a message and keep listening to responses for 10 seconds. After that time, it will send another message. Needs DynOSSAT-EDU OBC and DynOSSAT-EDU Comm PCB´s.


OBC Arduino Temperature Sensor Test.

With the following code you can verify through the serial port (USB) the operation of the temperature sensor integrated in the DynOSSAT-EDU OBC PCB


OBC Arduino Gas SGP30 Sensor Test.

Code to check the operation of the sensor for gases, temperature and humidity.


OBC Arduino IMU Sensor Test.

Code to check the operation of the IMU ICM2094. It shows the variations in the three axes of the accelerometer, magnetometer and gyroscope.


OBC Arduino memory SD Card Test.

This example shows how use the utility libraries on which the' SD library is based in order to get info about your SD card.