51
Brief description of the supplied examples for user boards:
In the folder "User-Boards" you will find the examples for Arduino UNO and NodeMCU or compatible boards.
Before use, change the Arduino IDE to the correct Arduino board! Also, read the information in the comments to the respective examples!
The "Hexapod_Lib.h" contains all functions that are sent and received from the UserBoard to the Locomotion-Controller. For the advanced developer
it is worthwhile to have a look inside or to extend these with proper functions. The functions contain a detailed comment which parameters can be
passed. The programme code for receiving the data, sending the data to the UserBoard and evaluating the gamepad can be found in the locomotion
firmware in the file "Data_Input.h".
The "Hexapod_Lib.h" can also be downloaded from the product's website.
•
"CardInfo"
This example is intended only for Arduino UNO or compatible boards!
With this example you can check the function of the MicroSD card reader. Insert a MicroSD memory card with arbitrary content into the card slot and start the
example. The terminal displays the contents of the memory card (file name). All original Arduino SD card examples work. You only have to change the pin for
"CS" (Chipselect) as in this example. The terminal baud rate is 19200 baud.
•
"EspMoveAP"
This example is intended for NodeMCU boards only!
The example shows control via an HTTP server using a direct WiFi connection to the NodeMCU board. The programme sets up an access point with which
you can connect to a smartphone, for example. The assigned IP address is displayed in the terminal. Type it into your browser. Then the browser loads the
web interface to control the robot. You can then control the robot via WiFi by tapping or clicking the buttons. The example can easily be extended by you into
other functionalities. The terminal baud rate is 115200 baud.
•
"EspMoveWiFi"
This example is intended for NodeMCU boards only!
The example shows the control via a web browser using a WiFi connection to the NodeMCU board. The programme establishes a connection to your router
and the robot is then accessible within your network. The assigned IP address is displayed in the terminal. Type it into your browser. Then the browser loads
the web interface to control the robot. You can then control the robot via WiFi by tapping or clicking the buttons. The example can easily be extended by you
into other functionalities. The terminal baud rate is 115200 baud.
•
"Infrared"
This example is intended only for Arduino UNO or compatible boards!
The example reads an RC5 infrared code and outputs the values at the terminal. Plug the Jumper J8 in the direction of the label "IR-U". The universal remote
control can serve as an IR transmitter set to RC5 (many Philips devices work with RC5), which is available for TV and audio equipment in stores. The terminal
baud rate is 19200 baud.
•
"Moving_01"
This example shows how data is sent to the locomotion controller without the Hexapod library. This example is well suited as a basis for using SBC. However,
experience in programming is necessary! Have a closer look at the function SendData(). Here you can see how data is sent from the user board to the loco-
motion controller. The programme does not make an acknowledgement evaluation, but sends the data only to the locomotion controller without evaluating
an answer from the locomotion controller.
•
"Moving_02"
This example is ideal for getting started with the programming of user boards and shows the basic functions to control the Hexapod with the help of the library.
•
"Moving_03"
This example shows how to use the ROBOT_MOVE() function.
•
"Moving_04"
This example shows how to use the ROBOT_ROTATE_MODE() and ROBOT_TRANSLATE_MODE() functions.
•
"Moving_05"
This example shows how to use the ROBOT_SINGLE_LEG() function.
•
"Moving_06"
This example shows how to interrupt a user programme using the gamepad. In this example, use the terminal to receive the messages from the robot. Set
the robot to an elevation so that the legs move in the air without touching the ground. This allows you to observe the output when controlling the robot on the
terminal. The terminal baud rate is 115200 baud.
•
"ReadGamepad"
The example shows how you can read the control data of the gamepad from the locomotion controller. If you plug in the jumper "J7", the locomotion control-
ler no longer reacts to the gamepad. It is then possible to use the data only on the user board and to realise your own controls. The terminal baud rate is
115200 baud.
Содержание MF-4992453
Страница 1: ...Operating Instructions Hexapod Robobug Complete Set Item no 1664151...
Страница 23: ...23 The femur servo mount must be mounted a total of 6 times Figure 31 Figure 32...
Страница 26: ...26 Figure 37...
Страница 36: ...36 Figure 58 Figure 59...
Страница 37: ...37 Figure 60 Illustration_61 Figure 61...
Страница 38: ...38 Figure 62...
Страница 66: ...66...
Страница 67: ...67...