Midterm project: Frightening Spider

In the midterm project, I want to make a spider that will be scared by noise. If someone opens the light or shout in front of it, it will roll up and make itself roll up the line to climb toward the ceiling.

I want to make some sound for the spider and make it notify the master of the house when someone comes by it. Though spider is not a great choice of cute pet, it might be your great friend that protect your house and keep silent and not disturbing you.

Network Part
Spider
3-min Spider Prototype lol

I try to use DC Motor, output PWM signals to control the clockwise and anti-clockwise turn of the motor, but the power seems not strong enough to drive the motor, then I suddenly remember that I need to add a control board for my motor to control with enough power. Digital write HIGH+LOW is not working also, I think it’s because of the current of HUZZAH is too small to push the motor to rotate.

DC Motor is not workinggggg when directly output from HUZZAH
Wanna write a control function that converts -1~1 to left turn and right turn
DC motor control module

Restful API

  • /spider/moving/1
  • /spider/moving/0
  • /spider/reset
  • /spider/roll/up
  • /spider/roll/down
  • /spider/sleep
  • /spider/dance