RAK18001 With RAK11310 WisBlock Core Guide
If you have already installed the RAKwireless Arduino BSP, the WisBlock Core and example code should be available on the Arduino IDE.
- To begin with the Arduino setup, you need to select the RAK11310 WisBlock Core.
Figure 1: Selecting RAK11310 as WisBlock Core- The Basic Sample Code for RAK18001 in GitHub will work on RAK11310 WisBlock Core. You can also open the example codes depending on your WisBlock Core.
Figure 1: Opening RAK18001 example code for RAK11310 WisBlock Core- After that, select the right serial port and upload the code.
Figure 1: Selecting the correct Serial Port
Figure 1: Uploading the RAK18001 example code- When you successfully uploaded the example sketch, you'll now be able to hear the RAK18001 WisBlock Buzzer module's sound. The output sounds and pitch level can be customized on the example code. It is even possible to play some various melody on it.
warning
Make sure to set the PWM pin to LOW with digitalWrite(BUZZER_CONTROL, LOW); after playing a sound. This is to ensure that the buzzer on the RAK18001 is in complete shut down and does not get hot.
