Skip to the content.

Objective

The purpose of this lab was to set up Artemis RedBoard Nano with Arduino IDE. Below are some example files to demo successful board setup and serial connection, such as Blink, Serial echo, and Sensor outputs. Software setup with Arduino was done with help from SparkFun SetUp Instructions. Parts required were the following.

Procedure

First I connected the board to the Arduino IDE and ran the example file, Blink. As you can see in the video, the board LED is blinking in a SOS morse code sequence (x2 faster), demonstrating the successful port setup of the board.

Second, I ran another example code, Serial, under Artemis example files to see if my Serial port works. To find the signal, I had to adjust the baud rate to 115200 from 9600. The video demonstrates that the board is successfully echoing back the input messages to the monitor.

Third, I ran the analogRead example file, which returns temperature values based on analog voltage readings of the chip from 0V to 2V. Since the example code itself was slowing down my computer with a massive amount of reading, I put a 1 second delay into the code so it only measures once every second. Although during a short period, the board returns higher external values to the serial when I warm up its chip with my hand.

Then I ran MicrophoneOutput code under PDM examples, which makes the board return its sound frequency readings to the serial. In order to efficiently test the function, I played a police siren sound to see if the measuring reacts to the different frequency inputs. The resulting demo can be found here.

Last, I combined the microphone sensor readings with the embedded LED of the board, so that the LED only lights up when the microphone senses noise (or a whistle) over a threshold value of 500Hz. Since I can’t whistle, I manually made noise over 500Hz to test the code functionality. The video demo can be found below.

  if (ui32LoudestFrequency > 500) {
    digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  } else {
    digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  }

Conclusion

This lab consisted of a few functional tests of Artemis RedBoard Nano. With its port, serial, digital and analog pins working, it seems the setup is successful for the following weeks of developing Fast Robots. Yay!

back