Harry Potter - new Sorting hat

Hi guys, Iam visual artist and for my next project I want to make my own sorting hat.

My components are: Arduino Micro, Speaker, Batteries, Switch ON/OFF, Sensor, MOSFET, Stepdown converter, Mp3 player DFROBOT MiniDF and DC Motor.

I have the stepdown converter because of DC motor which works on 3,3V and what I read, arduino has 5V output.

I bought the original sorting hat from YUME, so I want to use the original DC motor.

My aim is to build a hat, which if you put on your head, starts to play my specific mp3’s in random order and at the same time starts the motor which will move the mouth. I want to use infrared sensor which will turn on the sounds and motor if you put the hat on your head.

Because Iam new to all electronic and arduino stuff, I don’t know how to connect each components and then how to code it.

Can you please help me or recommend me some manuals, links on projects, where can I find answers?

Thanks

Wish you best

Marcel

I have the stepdown converter because of DC motor which works on 3,3V and what I read, arduino has 5V output.

An Arduino output pin can’t be used to power the motor. To turn the motor on and off, the Arduino output pin should be connected to the control pin of a motor driver, or a logic level MOSFET switch (the IRF520 module you show is NOT logic level).

This Sparkfun motor driver will work (powered from the battery pack), but you may need to reduce the speed using an Arduino PWM output. https://www.sparkfun.com/products/20679