FROM ARDUBLOCKLY TO ARDUINOIDE
Tasks:
- Make a really basic program with easy task like it is shown on [@fig:Ardublockly_to_Arduino_IDE].
{#fig:Ardublockly_to_Arduino_IDE}
- Open the Arduino IDE program.
- Copy-Paste all the c++ code from Ardublockly into Arduino IDE.
- Experiment with the c++ code.
Questions:
- Why we need to compile the programming code?
- If in the code are some errors, where they can be noted?
Summary:
Compiling the code
A compiler is just a program that converts your program written in terms you understand into a form your computer understands (e.g. from English to ones and zeros). The compiler must convert your source code to machine code.
Programming the microcontroller
Each time we change the programming code and want to run it on a microcontroler we need to send the machine code to the microcontroller first. This process is called programming.
Issues:
Programming the microcontroller failed: can’t open device “/dev/ttyUSB0”
Check the USB connection with the Arduino controller.
Check the settings if the Board, Processor and Port are set wright.