2022-11-14 (M) PoweredInlineSkatesRev2 Starting calibration coding

I want to start my calibration routine with a serial command instead of a physical switch or coded input. The easiest way to recognize serial information is to act on a single letter instead of a word because you have to store each character and wait for a newline, then see which word arrived. The letter "H" will trigger a help menu describing possible commands. If someone were to send the word "HELP," they would get the same response the instant the first letter arrived, and none of the other letters associated with commands.

I added placeholder functions for all the things I wanted to trigger with, then filled them in with working code. The command to display the seconds since booting is a straightforward way to confirm the controller is running and tracking time. I created a bit that toggled when the controller would notify the computer of the rotation timing. I began converting my pseudo-code into legitimate code, starting with an interrupt function to detect motor rotations. I got as far as recognizing the minimum, maximum, and average of ten readings, then printing them.
Simulated cycle pulses

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
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
Completed projects from year 8

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.
2022-11-07

Comments