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

Spectacles with InstagramPi
Intermediate
  • 70
  • 2

Full instructions

Spectacles for Instagram with Raspberry Pi Zero.

Spectacles with InstagramPi

Team theinventorhouse

Pushing your Raspberry Pi to the cloud
Intermediate
  • 31
  • 1

Protip

This tutorial shows how to push web services running on your Pi to the cloud using popular tunneling services like ngrok or dataplicity.io

Smart Conductive 'On Air' Sign!
Intermediate
  • 802
  • 12

Full instructions

Raspberry Pi + Bare Conductive Paint + Pi Cap + RGB LEDs = AWESOME CONDUCTIVE SIGN!

Sense and Display with Android Things and Kotlin
Intermediate
  • 243
  • 3

Full instructions

This project shows how to get started to read I2C temperature sensor and display the reading to OLED display using Android Things and Kotlin

Trigger Google Assistant on Pi Using Ultrasonic HC-SR04
Intermediate
  • 760
  • 4

Trigger Google Assistant SDK on RPi using ultrasonic sensor HC-SR04 on Raspberry Pi.

CNC Controller in Python
Intermediate
  • 1,020
  • 10

Full instructions

First ever CNC machine controller implementation in pure Python.

Sign up / LoginProjectsCommunitiesTopicsContestsLiveAppsBetaFree StoreBlog