2020-07-11 (Sa) InCompass

Now that I had some pseudo-code to start, I removed my old buzzer code and replaced it with some that would detect when the sensor passed over the origin. All I did was notice if I was on the left or right of zero, and if that changed from one scan to the next, I would activate the vibrator. The smallest twists about the starting point would trigger. The image below is animated and shows the minute movements that would cause vibration.

After I installed the zero-crossing code, I added code that would not trigger the vibrator until it exited a ninety-degree window on either side of the origin. With this window concept in place, I had to point the device to the left or right before recognizing that I crossed the center.

With the preset window code working, I added more functions to gradually close, and require less twisting before it would buzz again. In this way, I ensure that a user who is calmly facing north won't be constantly inundated with vibrations, yet someone active, walking, for example, will get the frequent assurance they are still heading north. That's my hope anyway.
Minute movements make motor move

The rest of the posts for this project have been arranged by date.
Completed projects from year 1
Completed projects from year 2
Completed projects from year 3
Completed projects from year 4
Completed projects from year 5
Completed projects from year 6
Completed projects from year 7

Disclaimer for http://24hourengineer.blogspot.com and 24HourEngineer.com

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

All information on this blog, or linked by this blog, is 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 property or assets based on their post.

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