User Tools

Translations of this page:

Site Tools


en:arduino_modules

Modules based on the Arduino platform
Any spacecraft contains in its composition the equipment that ensures the fulfillment of the flight mission. This equipment, for which the spacecraft is created or launched, is called the spacecraft payload.

As part of the construction set, there are modules that are often used as a payload, for example, the camera. However, sometimes an extension of the set's functionality is required with the use of non-standard modules. The simple creation of such modules is provided by the open platform Arduino, which is integrated into the on-board information network of the construction set. The provided expansion module uses the Arduino Mega 2560 microcontroller board based on the ATmega2560 chip. The information exchange between the Arduino microcontroller and BCC occurs with the help of an expansion card (the so-called shield), which is installed on the motherboard using the microcontroller. The expansion card contains a connector for connecting the RS-485 interface to the cable network through a standard loop.

Organization of information exchange
The Arduino board has a serial UART port for communicating with other devices. For data exchange, digital I / O ports 0 (RX) and 1 (TX) and USB port are used. The expansion card also houses the RX and TX connectors, to which connects the device's information network cable. It is necessary to connect the RX bus and board connectors and use the “Serial” function set for Arduino to communicate between the microcontroller on the Arduino board and the BCC.

Principle of network operation
For the organization of information exchange, a communication protocol is used. The protocol ensures for the precise transfer of information. When accessing a device, the BCC sends a request to the bus, which is perceived by all connected devices, but only the called device responds to it. The index of the called device is registered in the request. When accessing the Arduino board, this protocol is also used. The motherboard is assigned its own index. The request, which is perceived by the board from the BCC, is a sequence of some characters in the ASCII table format. To ensure the interaction between the BCC and the microcontroller, it is necessary for the microcontroller to read the string of symbols sent from the bus by the BCC, decode it, and perform the specified actions. The sequence of actions for the microcontroller to execute when receiving a certain sequence of symbols from the BCC is prescribed in the firmware program of the board. The sequence, which the BCC sends to the bus and the Arduino perceives to decrypt and execute, is prescribed in the program that is sent to the BCC via the web interface.

You can download test samples here:
led_test.zip Sketch for Arduino Mega 2560, which allows you to enable and disable the diode on 11 contact by command with the BCC, sketch for BCC, and archive for BCC firmware via the web interface.

To work with the Arduino board, the IDE is used https://www.arduino.cc/en/Main/Software
You can download it from the official site of the Arduino platform developer.

To work with BCC programs, the standard developer software is used.
Download developer's software

en/arduino_modules.txt · Last modified: 2020/03/25 16:28 (external edit)