Programming the Board
Arduino Programming
Last updated
Arduino Programming
Last updated
Arduino Integrated Development Environment (IDE) is a development environment that contains a text area for writing code, message area, menu bar and buttons. The environment is fully compatible with Leo board and is used to write programs and communicate with Leo Board. Software written using this environment are called sketches. Arduino IDE is available for all three major operating systems (OS) – Windows, Mac OS X and Linux. Download the latest version of IDE from the official website www.arduino.cc
The programs in this tutorial is tested on Arduino 1.8.x version. You may either choose 1.8.x version, or the latest Arduino 2.x version. We would suggest 1.8.x until minor bugs in the newest version is sorted out
Once the IDE is installed, open the program by clicking arduino.exe (or whatever extension depending on your OS)
The IDE is a single piece of software we use to write programs (known as sketchs), compile and upload it to the board. We can also use the serial monitor which is built into the IDE for debugging and information display.
Connect six pin cable from FTDI Module to FTDI programming pins on the board.
Write your own program, or use any of the programs in this tutorial on the IDE.
Choose Arduino Uno as board under Tools menu
Select the correct COM Port under Tools -> Port
Click on Tick Icon (or Sketch -> Verify/Compile) to compile the sketch
Click on Arrow Icon (or Sketch -> Upload) to upload the sketch to the board
Check the console area (The black bottom area) for Success / Error messages
If the console area says "Upload Done", the program is successfully uploaded. In the next few sections, we will program different sensors and modules available on micro:Xbot and in the later section, assemble it as a complete robot and control it.