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 hours5,048

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 & Genuino 101
Arduino 101 & Genuino 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

Fgicjpsiw6pmuix large 2rqq8xaavw

Schematic for Auto-lacing Arduino 101

Schematic101 7246vpcvit

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 • 7 followers

Comments

Add projectSign up / Login