User Tools

Translations of this page:

Site Tools


en:arduino_modules

This is an old revision of the document!


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 communication protocol is used. It ensures precise transfer of information. When accessing a device BCC sends a request on 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 board has its own index. The request, which is perceived by the board from 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 microcontroller to execute when receiving a certain sequence of symbols from the BCC is prescribed in the firmware program of the board. The sequence that BCC sends to the bus, and which Arduino perceives to decrypt and execute, is prescribed in the program that is sent to 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 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.1516801683.txt.gz · Last modified: 2018/01/24 16:48 by ashley