Autiboy
Posts: 3
Joined: Sun Nov 17, 2019 11:09 pm

Raspberry pi alexa sorting hat

Sun Nov 17, 2019 11:14 pm

So I have a talking sorting hat and i want to just use a pi zero to control it but cannot find code that would make the motor move to sound. Please help me as I do not understand code very well so need help. Thanks

User avatar
neilgl
Posts: 1197
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near Aston Martin factory

Re: Raspberry pi alexa sorting hat

Mon Nov 18, 2019 12:04 pm

I may be wrong but it looks like you press a button on the hat which plays a pre-recorded sound and moves the "mouth" using servo motors. That should be easy to replicate on a pi. Have a look at gpiozero stuff for buttons, sounds, motors etc. https://gpiozero.readthedocs.io/en/stable/ Where does Alexa come into it?

Autiboy
Posts: 3
Joined: Sun Nov 17, 2019 11:09 pm

Re: Raspberry pi alexa sorting hat

Wed Nov 20, 2019 1:56 am

What do you mean ?

Autiboy
Posts: 3
Joined: Sun Nov 17, 2019 11:09 pm

Re: Raspberry pi alexa sorting hat

Wed Nov 20, 2019 1:57 am

Also how should i wire up the motor?

User avatar
neilgl
Posts: 1197
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near Aston Martin factory

Re: Raspberry pi alexa sorting hat

Wed Nov 20, 2019 11:48 am

The title of the post has "alexa sorting hat" - that's why I asked about (Amazon) Alexa?
Wiring up the motor: depends what type of motor it is (DC, stepper, servo etc.) and can you power it from the pi or need a separate power source.
That link I gave earlier has examples of how to wire up motors etc.
And this link uses a motor controller board to drive two 5V motors
https://projects.raspberrypi.org/en/pro ... mputing/15

Return to “Other projects”