Maker_Inc
Published © GPL3+

Smart Shoes (Auto-lacing and Generating Electricity)

Features of smart shoes: generates electricity, auto lacing, step counting, etc.

IntermediateFull instructions provided8 hours17,024

Things used in this project

Hardware components

Piezo Sensor
ControlEverything.com Piezo Sensor
×1
Diode (n4001)
×1
Power Bank
×1
Acrylic Sheet
×1
LED (generic)
LED (generic)
×1
Slide Switch
Slide Switch
×1
Arduino 101
Arduino 101
×1
Arduino MKR Fox 1200
Arduino MKR Fox 1200
×1

Software apps and online services

Health App

Story

Read more

Schematics

Schematic for Auto-lacing Arduino Pro Mini

Schematic for Auto-lacing Arduino 101

Code

Code to upload on pro mini or arduino 101

Arduino
Basically it works on any Arduino
#include <Servo.h>

Servo myservo;  // create servo object to control a servo

int potpin = 0;  // analog pin used to connect the potentiometer
int val;    // variable to read the value from the analog pin

void setup() {
  myservo.attach(2);  // attaches the servo on pin 2 to the servo object
}

void loop() {
  val = analogRead(potpin);            // reads the value of the potentiometer (value between 0 and 1023)
  val = map(val, 0, 1023, 0, 180);     // scale it to use it with the servo (value between 0 and 180)
  myservo.write(val);                  // sets the servo position according to the scaled value
  delay(15);                           // waits for the servo to get there
}

Credits

Maker_Inc

Maker_Inc

0 projects • 9 followers

Comments