In the parameters section we want to change our expression to ‘”Hrs Mins Secs”’, putting quotation marks (i.e. This outlines where our numericals and letters will print on the LCDĩ.Insert component macro underneath once again and select the component as LCD ‘print string’. Press okay and this is the component command that will start our LCDħ.Insert another component macro underneath and select the component this time as LCD ‘clear’, this erases anything that was previously on our LCDĨ.Insert component macro underneath the previous one and select the component as LCD ‘cursor’, this will show parameters in the bottom that you can change, we want to set the x to 0 and the y to 0. Double click on it and it should pop up a ‘Properties Macro’ box, on the list of components click the small plus sign next to LCD to expand the list, then select the ‘start’ command. Now without further ado lets get stuck in :)ĥ.To make our program less messy I put my code in a macro, but for simplicity sake you can just put the LCD setup straight in to our program line by doing the following Ħ.Insert a component Macro (on the side bar and drag it in to place between our ‘Begin’ and ‘End’ sequence. I hope this Instructable isn't too hard to follow and if you have any questions ask away in the comments and I will endeavour to answer. You can download Flowcode for free from their website and have a play about yourself. I've tried to make this as easy to follow as possible and to talk you through how to use Flowcode so even if you're new to it (like I was) you get a good understanding of what is where and what goes where. It's not as neat as it could be, due to me being fresh to using Flowcode, but the project was an amazing to help me understand the main principles of both programming and constructing a circuit. In this project I will use Flowcode (the software we were given to make our program on) to programme a PIC and make an LCD display a clock that accurately counts seconds, minutes and hours, whilst a Relay acts as a 'ticker' to mark the passing of each second. This is a school project we did to get to grips with programming chips, working with different boards and coding.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |