Difference between revisions of "Self-Balancing Robot Kit: Quickstart Guide"

From Microduino Wiki
Jump to: navigation, search
(Programming the Quadcopter)
(Programming the Quadcopter)
Line 31: Line 31:
 
{{Clickable headed image table box clear}}
 
{{Clickable headed image table box clear}}
  
The Microduino CoreRF must be programmed with the "Quadcopter" code using the Microduino USBTTLC.
+
The Microduino Core must be programmed with the "Self-Balancing Robot" code using the Microduino USBTTL.
  
*Download the code for the Quadcopter: <big><b>[[File:BalanceCar_Microduino.zip]]</b></big>
+
*Download the code for the Self-Balancing Robot: <big><b>[[File:BalanceCar_Microduino.zip]]</b></big>
 
*Extract the .zip folder somewhere. Ensure, you know where the folder is as you will need to navigate to it.
 
*Extract the .zip folder somewhere. Ensure, you know where the folder is as you will need to navigate to it.
 
*Open the '''Arduino for Microduino''' software (follow the [[#Software Setup]] section if you have not yet).
 
*Open the '''Arduino for Microduino''' software (follow the [[#Software Setup]] section if you have not yet).
*In the software, go to '''File > Open...''' and navigate to the extracted folder. Select and open the '''MultiWii_for_CoreRF.ino''' file. The code should now appear in the software.
+
*In the software, go to '''File > Open...''' and navigate to the extracted folder. Select and open the '''BalanceCar_Microduino.ino''' file. The code should now appear in the software.
*Configure the software to program the CoreRF module:
+
*Configure the software to program the Core module:
 
**'''Tools > Board''' and select '''Microduino/mCookie-device'''.
 
**'''Tools > Board''' and select '''Microduino/mCookie-device'''.
**'''Tools > Processor''' and select '''Microduino/mCookie-Core RF (127rfa1)
+
**'''Tools > Processor''' and select '''Microduino/mCookie-Core (328p)@16M,5V'''
*Stack the '''Microduino CoreRF''' module onto the '''Microduino USBTTL''' module. Plug one end of the MicroUSB into the '''Microduino USBTTL''' and the other end to the computer.
+
*Stack the '''Microduino Core''' module onto the '''Microduino USBTTL''' module. Plug one end of the MicroUSB into the '''Microduino USBTTL''' and the other end to the computer.
 
*Go back to the software and select the port:
 
*Go back to the software and select the port:
 
**'''Tools > Port''' and select what is usually selectable. (Note: if on Mac, the port is NOT the Bluetooth ones.)
 
**'''Tools > Port''' and select what is usually selectable. (Note: if on Mac, the port is NOT the Bluetooth ones.)
 
*Now upload the program by click on the '''Right Arrow''' icon on the top left of the software. This is the upload button. Wait for the code to compile and then uploading will proceed. The software will inform once uploading is done on the bottom left.
 
*Now upload the program by click on the '''Right Arrow''' icon on the top left of the software. This is the upload button. Wait for the code to compile and then uploading will proceed. The software will inform once uploading is done on the bottom left.
*Disconnect the MicroUSB cable from the '''Microduino USBTTL'''. Separate (unstack) the two modules (CoreRF and USBTTL).  
+
*Disconnect the MicroUSB cable from the '''Microduino USBTTL'''. Separate (unstack) the two modules (Core and USBTTL).  
 
**Note: '''Please be careful when separating the boards as the pins can be damaged.''' It is recommended to use a flat object to slowly lever one side a little, then slowly lever the other side a little, repeating until the modules separate easily.
 
**Note: '''Please be careful when separating the boards as the pins can be damaged.''' It is recommended to use a flat object to slowly lever one side a little, then slowly lever the other side a little, repeating until the modules separate easily.
 
*Place the Microduino USBTTL module aside. As it will be used to program the Joypad later.
 
*Place the Microduino USBTTL module aside. As it will be used to program the Joypad later.

Revision as of 00:39, 9 October 2018

This quick start guide is intended to get the reader started with the Self-Balancing Robot kit.

This guide will cover the following:

  1. Setting up the programming software.
  2. Programming and assembling the Self-Balancing Robot.
  3. Downloading the app and basic usage of the Self-Balancing Robot.

Software Setup

Please follow the guide to ensure your software is correctly setup. The software is required to program the Self-Balancing Robot.

Download the latest software for your operating system and follow the getting started guides:

Windows
MicroduinoGettingStart-ForWindows.jpg
IDE Install Guide for Windows
MAC
MicroduinoGettingStart-ForMAC.jpg
IDE Install Guide for MAC

Programming the Quadcopter

In the Self-Balancing Robot kit should be two modules of interest:

  • Microduino Core - the brains of the Self-Balancing Robot. A tiny CPU which is couple of processing in order to balance..
  • Microduino USBTTL - programmer which writes the program from your computer to the Microduino Core module.
Core
Microduino-Main.jpg
USBTTL
Microduino-ft232r-rect.jpg

The Microduino Core must be programmed with the "Self-Balancing Robot" code using the Microduino USBTTL.

  • Download the code for the Self-Balancing Robot: File:BalanceCar Microduino.zip
  • Extract the .zip folder somewhere. Ensure, you know where the folder is as you will need to navigate to it.
  • Open the Arduino for Microduino software (follow the #Software Setup section if you have not yet).
  • In the software, go to File > Open... and navigate to the extracted folder. Select and open the BalanceCar_Microduino.ino file. The code should now appear in the software.
  • Configure the software to program the Core module:
    • Tools > Board and select Microduino/mCookie-device.
    • Tools > Processor and select Microduino/mCookie-Core (328p)@16M,5V
  • Stack the Microduino Core module onto the Microduino USBTTL module. Plug one end of the MicroUSB into the Microduino USBTTL and the other end to the computer.
  • Go back to the software and select the port:
    • Tools > Port and select what is usually selectable. (Note: if on Mac, the port is NOT the Bluetooth ones.)
  • Now upload the program by click on the Right Arrow icon on the top left of the software. This is the upload button. Wait for the code to compile and then uploading will proceed. The software will inform once uploading is done on the bottom left.
  • Disconnect the MicroUSB cable from the Microduino USBTTL. Separate (unstack) the two modules (Core and USBTTL).
    • Note: Please be careful when separating the boards as the pins can be damaged. It is recommended to use a flat object to slowly lever one side a little, then slowly lever the other side a little, repeating until the modules separate easily.
  • Place the Microduino USBTTL module aside. As it will be used to program the Joypad later.