Skip to content

tone() Not working with Nano 33 BLE #10322

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
brendansmallco opened this issue Jun 8, 2020 · 1 comment
Closed

tone() Not working with Nano 33 BLE #10322

brendansmallco opened this issue Jun 8, 2020 · 1 comment
Labels
Type: Duplicate Another item already exists for this topic

Comments

@brendansmallco
Copy link

Hi Team,

Code implemented for the nano v3.0 does not work with the Nano 33 BLE.

`const int buzzer = 7; //buzzer to arduino pin 9

void setup(){

pinMode(buzzer, OUTPUT); // Set buzzer - pin 9 as an output

}

void loop(){

tone(buzzer, 1000); // Send 1KHz sound signal...
delay(1000); // ...for 1 sec
noTone(buzzer); // Stop sound...
delay(1000); // ...for 1sec

}`

Tried to manually import the Tone Lib but gave errors. Any idea what the issue is?

@per1234
Copy link
Collaborator

per1234 commented Jun 10, 2020

Closing as duplicate of arduino/ArduinoCore-nRF528x-mbedos#52.

This issue has already been fixed by arduino/ArduinoCore-nRF528x-mbedos#59 but there hasn't been a release of Arduino nRF528x Boards (Mbed OS) since that time. If you do want to test out the fix, there is a beta release you can try:

  1. (In the Arduino IDE) Tools > Board > Boards Manager
  2. Wait for the download to finish.
  3. From the list of platforms, select "Arduino Mbed OS Boards (nRF52840 / STM32H747)".
  4. Click the "Install" button.
  5. Wait for the installation to finish.
  6. Click the "Close" button.

In the Tools > Board menu, you will now see two different "Arduino Nano 33 BLE" options. The original one is under the "Arduino nRF528x Boards (Mbed OS)" section, while the beta test one is under the "Arduino Mbed OS Boards (nRF52840 / STM32H747)" section. If you select the Nano 33 BLE board option from under the "Arduino Mbed OS Boards (nRF52840 / STM32H747)" section" section of the menu and then upload your sketch to your Nano 33 BLE, I think you'll be happy to hear your buzzer beeping away.

@per1234 per1234 closed this as completed Jun 10, 2020
@per1234 per1234 added the Type: Duplicate Another item already exists for this topic label Jun 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Duplicate Another item already exists for this topic
Projects
None yet
Development

No branches or pull requests

2 participants