Things used in this project

Hardware components:
Pi 3 02
Raspberry Pi 3 Model B
×1
Pololu Maestro Servo Controller
×1
Lindbergh 3-Axis Skull
×1
USB 2.0 Mini Microphone
×1
Audio Servo Driver Board
×1
Software apps and online services:
AlexaPi
Avs med 3 22
Amazon Alexa Alexa Voice Service
Pololu Maestro Controller Software

Schematics

Schematic Diagram for Project Yorick
Block diagram kdsloq510y

Code

Code snippet #1Python
begin     # Loop until input 9 goes high
  9 get_position # get the value of the red trigger, 0-255
  155 greater_than # test whether it is greater than 155 
  if      # Wakeup word detected, run wake movement sequence
    wake     
    750 delay
    1 # flag for getting out of loop
    begin
      dup
      while
      9 get_position
      10 get_position
      plus
      300 greater_than
      if     # If after wake, both inputs high, then getting reply
        think
      else
        9 get_position
        155 greater_than
        if     # if just input on 9 high, then speaking reply
          answer
        else
          10 get_position
          155 greater_than
          if   # if just input on 10 high, then listening to query
            listen
          else     # when both inputs at zero, back to rest mode
	    Rest
            1 minus
          endif
        endif
      endif 
    repeat
  endif
repeat

### Sequence subroutines: ###
# Sequence subroutines removed not included for brevity
Github
https://github.com/alexa-pi/AlexaPi

Credits

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Similar projects you might like

Solar Smart Greenhouse Using Vertical Aquaponic Towers
Intermediate
  • 3,034
  • 43

Work in progress

Feed your family with 22 sqm greenhousing by combining permaculture, aquaponic vertical towers and IoT.

DIY Smart Lamp - controlled by toggle switch and Alexa
Intermediate
  • 337
  • 6

Full instructions

Build a smart lamp that can be controlled by flipping a switch and Alexa, for only $35.

Measure wind speed with Eltako windsensor and Win10 IoT Core
Intermediate
  • 591
  • 7

Full instructions

This Project will help you track wind Speeds using Windows 10 IoT Core and the Eltako Windsensor.

Raspberry Pi Facial Recognition
Intermediate
  • 5,323
  • 42

Work in progress

So you want to control entry to your secret lair, huh? This project will allow you to use facial recognition using a Pi and AWS.

Aquariumatic
Intermediate
  • 8,679
  • 17

Work in progress

Aquarium monitor with automation, Web GUI & IOT. Daisychain units can control multiple tanks all from the one master unit.

PiGlass
Intermediate
  • 2,760
  • 21

Full instructions

A device that can measure environmental conditions and relay to the user; in glasses form.

ProjectsCommunitiesContestsLiveAppsBetaFree StoreBlogAdd projectSign up / Login
Respect project
Feedback