Starry Night [Vincent van Gogh, 1889]
I plan on developing an electronic cane for blind or visually impaired people. With this cane, they can detect obstacles within two or three meters. It uses two distance sensors, one on the top of the cane and one on the bottom. The different vibration modes help the user know the proximity of the obstacle. A higher frequency indicates a higher proximity to the obstacle. The main goal of the cane is to help users move around more safely and confidently.
13th November
15th November
22nd to 26th November
27th November
30th November
4th December
6th December
10th December
11th December
Came up with a rough sketch of what the cane will look like with the wires and the board
Worked with basic code for distance sensors
Planned how to use it for my cane
Made two semi-circle cylinders to construct the cane
Made a hole with the help from Luke in the Fimbel lab
Thanksgiving Break [Fimbel Closed]
Found out how to work with the vibe motor using a transistor from Audrey
Soldered the distance sensor to 4 wires of a USB cable with help from Luke
Finished the coding part of the project
Vibe motor now vibrates for different time period depending on distance sensed
Sought advice on wiring and assembling the stick from Chris in the Fimbel Lab
Made a wedge wide enough to fit the wire
Finished sanding the cane; Cut out a wedge for the handle
Finished up by soldering and then glueing the different parts of the stick together
FINAL SHOWCASE
I made a few adjustments to my initial design as I encountered some obstacles along the way. I have listed some of the major modifications I made to my project
Number of distance sensors: I realized that the Circuit Playground Bluefruit did not have enough digital pins to connect two distance sensors. So, I ended up using one distance sensor on the bottom of the cane.
Vibe motor: I had initially planned to make the vibe motor buzz at different frequencies for different distances. I edited my plan to making the vibe motor buzz for different lengths of time.
Was able to make the LED turn on and off based on the distance values
Was able to make the vibe motor buzz with distance values
Soldered part of the circuit
Was able to roughly assemble the circuit within the cane
#include <Adafruit_CircuitPlayground.h>
#define trigPin 9
#define echoPin 6
int LED_PIN =3;
void setup() {
Serial.begin (9600);
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
pinMode(LED_PIN, OUTPUT);
}
void loop() {
long duration, distance;
digitalWrite(trigPin, LOW); // Added this line
delay(200); // Added this line
digitalWrite(trigPin, HIGH);
// delayMicroseconds(1000); - Removed this line
delay(100); // Added this line
digitalWrite(trigPin, LOW);
duration = pulseIn(echoPin, HIGH);
distance = (duration/2) / 29.1;
if (distance < 50) { // This is where the LED On/Off happens
digitalWrite(LED_PIN, HIGH);
delay(100); // When the Red condition is met, the Green LED should turn off
digitalWrite(LED_PIN,LOW);
}
else {
digitalWrite(LED_PIN,LOW);
delay(1000);
digitalWrite(LED_PIN, HIGH);
}
if (distance >= 200 || distance <= 0){
Serial.println("Out of range");
}
else {
Serial.print(distance);
Serial.println(" cm");
}
delay(500);
}