Go to file
coolneng 2130971def
Add License
2019-12-06 23:02:29 +01:00
Week 1 Organize projects by Weeks 2019-11-19 17:48:29 +01:00
Week 2 Organize projects by Weeks 2019-11-19 17:48:29 +01:00
Week 3 Add Relay-Motor sketch 2019-11-22 19:11:28 +01:00
Week 4 Add DHT11 HTTP sketch 2019-11-29 20:14:59 +01:00
LICENSE.md Add License 2019-12-06 23:02:29 +01:00
README.org Update Readme 2019-11-29 22:44:54 +01:00
compile.sh Create compiling script 2019-11-08 17:19:40 +01:00
compile_mcu.sh Update Readme and app compile_mcu script 2019-11-29 20:13:27 +01:00

README.org

Arduino Course

Code from Universidad de Granada's Arduino Course.

Usage

If you want to use arduino-cli instead of the official Arduino IDE, you can use compile.sh to compile and upload the Sketch to the board.

For example:

  arduino-cli sketch new Test
  ./compile.sh Test

If you want to see the output of the Serial port, you have to identify the device:

  arduino-cli board list

Then you can see the output of the device, let's assume that the device is /dev/ttyACM0:

  cat /dev/ttyACM0

If you get a Permission denied, you have to add your user to the group of the serial port (in this case /dev/ttyACM0).

To check the group of the device:

  ls -la /dev/ttyACM0

Then add your user to the group (in this case the group is dialout and the user is user)

  sudo usermod -aG dialout user

NodeMCU

During the Week 4, we used the NodeMCU instead of the Arduino Uno, in this case to compile and upload the sketch (in this case we'll use the sketch Test):

  ./compile_mcu.sh Test