The code was drafted from the pseudocode. The functions were almost directly transcribed from paper to the Arduino IDE. A function was also added which takes a time, in seconds, and converts it to a string in the form "M:SS" since there will only a single digit in the minute field. Care was taken to display 0 seconds with two zeros "00" since printing a single zero on the screen would allow the previous digit occupying the tens spot to remain as an undesirable remnant. Since this function will also process the countUp timer it will have to be modified to show a leading zero anytime the seconds are below ten.
The body of the code was written. Libraries for the servo and LCD display were imported through the example code included with the Arduino IDE download. The majority of the work will take place in the functions so much of the code on the main page was declaring variables, start up routines, and making provisions for the libraries.
To do:
The rest of the posts for this project have been arranged by date.
Functions in Arduino IDE
The body of the code was written. Libraries for the servo and LCD display were imported through the example code included with the Arduino IDE download. The majority of the work will take place in the functions so much of the code on the main page was declaring variables, start up routines, and making provisions for the libraries.
Code body in Arduino IDE
To do:
Write To Do list- Correct time display function to display a single leading zero when below ten seconds.
- Print 3D parts
- Correct 3D models
- Reprint 3D models
- Download and test code
- Debug code
- Make code public
- Design enclosure for screen, potentiometer, power, and buttons
- Print enclosure
- Draw schematic
Write pseudo code for code bodyWrite pseudo code for custom functionsWrite pseudo code for setup- Make notes for special Arduino functions
Draft code- Build breadboard circuit
- Compile and test
The rest of the posts for this project have been arranged by date.
A list showing of all the final posts of COMPLETED projects.
Disclaimer for http://24hourengineer.blogspot.com/
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-02-27 (F)
2015-02-27 (F)
Comments
Post a Comment