2015-06-09 (Tu) Vibrating Distance Sensor

The Self Contained Haptic Distance Sensor could be a great piece of technology for people who can't see well but it requires special mounting due to the servo which presses on the user. This is inconvenient without a 3D printer. While working on the Cyborg Distance Sensor the relation between distance and vibration was quickly understood. Unfortunately the distance sensor is not a highly precise instrument and the servo cannot rotate quickly enough to keep up with the erratic behavior of the distance sensor. Inconsistencies from the distance sensor could be toned down in software at the cost of precision but a faster servo would weigh more and could double the cost of the whole project. A small vibrator became the feedback mechanism for the latest iteration which is small, inexpensive, runs directly off a digital output, and can fit inside the enclosure next to the rest of the electronics. Overall the size and convenience has been improved as well as usability.

The program was based off the Self Contained Haptic Distance Sensor program but modified to output a PWM signal to an output pin. The Arduino Mini Pro was swapped out for a smaller board which used an ATTiny85 chip. ATTiny85 based Arduinos do not use a USB to serial adapter but communicate directly with the computer through USB. These chips have not been used in this blog previously due to their finicky nature and difficulty to debug. Since this project was relatively simple and based on working code the chip was used.

An Arduino was programmed before soldering to a distance sensor. The on-board LED was programmed to act as the variable output. The on-board LED with a PWM pin was an advantage over other Arduino models which was appreciated. After programming the Board stopped responding. Research was done it was found out that the communication pins on an ATTiny85 are 3 and 4 instead of 0 and 1 like most previous Arduino models. Once the pins were sorted out the board would accept programming but the boards were repeatedly soldered and desoldered until a breadboard was finally employed to assist in the prototyping.

Power terminals hooked to distance sensor

BLINK program running from 9V battery

Breadboard prototype after a lot of grief

Breadboarding would have saved me a lot of trouble.

Once the pin configuration was sorted out it was relatively simple to fine tune the program to output a usable signal for the vibrator. Instead of using the full voltage range it was limited to 2/3 of the full range since the vibrators are only meant to take 2/3 of the 5V output. More precisely; 3.3V of the 5V output. The components were glued together and tested. Testing went well. The fast response of the vibrator made for an easy to understand feedback and it was very compact.

Distance sensor, Arduino, and vibrator soldered together

Components glued together

Rough prototype

To Do:
  • Upload Arduino code
  • Draw schematic
  • Design enclosure
  • Make files public
  • Write instructions
The rest of the posts for this project have been arranged by date.
First time here?

Completed projects from year 1.
Completed projects from year 2



This disclaimer must be intact and whole. This disclaimer must be included if a project is distributed.

All information in this blog, or linked by this blog, are not to be taken as advice or solicitation. Anyone attempting to replicate, in whole or in part, is responsible for the outcome and procedure. Any loss of functionality, money, property or similar, is the responsibility of those involved in the replication.

All digital communication regarding the email address 24hourengineer@gmail.com becomes the intellectual property of Brian McEvoy. Any information contained within these messages may be distributed or retained at the discretion of Brian McEvoy. Any email sent to this address, or any email account owned by Brian McEvoy, cannot be used to claim property or assets.

Comments to the blog may be utilized or erased at the discretion of the owner. No one posting may claim claim property or assets based on their post.

This blog, including pictures and text, is copyright to Brian McEvoy.

2015-05-03 (Su)

Comments