1 The Build of Merry-Go-Around
Make the support frame and decorated with favorite avatar, the plate can turn with DC motor.
2 Play Melody
The best part of Nano 33 IoT is arduino library. Import Musicbuzz.h
#include <MusicBuzzer.h>
/*
Author: Everton Ramires
More Tutorial: https://www.youtube.com/channel/UC7zG4YQJc8v-9jNGQknOx5Q
Based on the great work of robsoncouto at github (https://github.com/robsoncouto/arduino-songs).
CURRENT SONG OPTIONS:
(PT-BR)OPÇÕES ATUAIS DE MUSICAS:
music.asabranca();
music.babyelephantwalk();
music.bloodytears();
music.brahmslullaby();
music.cannonind();
music.cantinaband();
music.doom();
music.furelise();
music.gameofthrones();
music.greenhill();
music.greensleeves();
music.happybirthday();
music.harrypotter();
music.imperialmarch();
music.jigglypuffsong();
music.keyboardcat();
music.merrychristmas();
music.miichannel();
music.minuetg();
music.nevergonnagiveyouup();
music.odetojoy();
music.pinkpanther();
music.princeigor();
music.professorlayton();
music.pulodagaita();
music.silentnight();
music.songofstorms();
music.startrekintro();
music.starwars();
music.supermariobros();
music.takeonme();
music.tetris();
music.thegodfather();
music.thelick();
music.thelionsleepstonight();
music.vampirekiller();
music.zeldaslullaby();
music.zeldatheme();
*/
#define BUZZER_PIN 6
void setup()
{
music.init(BUZZER_PIN);
}
void loop()
{
music.nevergonnagiveyouup(); //YOU'VE BEEN RICK ROLLED
delay(2000);
}
Select pin 6, connected with on 0.8ohms speaker, the PWM drives the speaker for melodies of your choice.
Only 4 lines is needed.
But it would be better , 100ohms resistor shall be wired in series against overload of the speaker.
3 Motor Drive
3-6V DC motor with gear is used. But drive current shall be 50mA mininum, one driver is needed. I have tried with relay, L298N, ULN2003, it would be perfect with 5V relay.
But the nano 33 IoT can provide voltage level of 3.3V, the Relay is Ok from 4V-6V as input driver, One voltage shift is needed.
The order need some time to delivery. So, I have to wait for a while.
4 Next to do
Put all the parts together, the Merry Go around can be conntrol remotely from Wifi to turn with blinking led and melody.
The vocal control shall be used with remote microphone and AI cloud. AI on the edge is not fully functioned at least for now.
