Data Sheet

4/27/2018 OpenCR1.0
http://emanual.robotis.com/docs/en/parts/controller/opencr10/ 32/50
OpenCR has a built-in BUZZER, and the sound varies depending on the frequency. The built-
in BUZZER is also mapped to the arduino pin number, and the arduino pin number is as
follows. Arduino’s Tone function is ported, so you can use BUZZER by using this function.
It outputs the melody according to the scale defined in the pitches.h header. The following
code is a change from OpenCR’s BUZZER to only the PIN number in the example provided
in the Arduino IDE.
7. 3. 2. Result
OpenCR Arduino Test - BUZZER
7. 4. PWM
This is the PWM output test from the Arundin pin of the OpenCR board.
7. 4. 1. Code
OpenCR has the same pin configuration as Arduino Uno. The PWM output is also mapped
to the same port. Therefore, analogueWrite is used to output the PWM duty ratio to the
corresponding ports. The resolution is 8 bits, from 0 to 255, and the frequency is 50 KHz.
OpenCR1.0
Back to Top ▲