If the mouse is over the interface, but not the square, the square will be black in color, and output a 2OFF to serial. This square has two different phases, depending on the mouse’s position in the window. When run in the Processing IDE, this code creates a simple 800 x 600 white window, with the color-changing, mouse detecting square in it. All of this together left me with the rectangle example code below. These lines are transmitted from my computer to my mainboard and LCD setup via the setup hardware serial port and an FTDI ship, before being passed onto the proper line of the LCD interface with the code written in last week’s class. I implemented all of this Processing Serial port setup and connection in a simple example sketch that draws a square that when hovered over, outputs a “2ON” line to serial, and otherwise a “2OFF” line. This example makes use of the Processing Serial library, calling on it with the line… To establish a working serial connection between my mainboard and LCD system and my computer through FTDI, I altred a Serial Write test example included in the Processing IDE. LCD and Final Project Main Board Wired to an FTDI Chip Square ON/OFF Test ¶ With this in mind, I will need to achieve a connection between my application and mainboard, which I did through the use of a USB interfacing FTDI chip attached to my mainboard and a USB from my computer, as well as the Processing Serial library, allowing me to call upon a USB port to transmit serial to, a function of my code that is discussed later. This parsing and LCD printing feature is what Ill be interfacing with this week, as with a serial connection, this LCD application will act as a transmitting node of my system. In the instance of code I wrote in last weeks Networking & Communications, I was able to read a serial input from any set receiving pin on this mainboard, parse the received serial, and print lines to my systems LCD. The basics of my LCD interfacing application require a serial connection between my final project mainboard, and my laptop. This intro, along with some reading of a Learn Processing course, really knocked some of the rust off the processing interface for me, and helped me get started with my LCD application. Despite this, I really didn’t remember much from this unit starting this week, and decided to watch the Welcome to Processing 3 attached below. We had a small processing unit in this class, where I made a simple two-player pong game, and this work gave me some prior insights into the IDE. Will Rudolph, a 2019 Fab Academy graduate. To create my LCD interfacing application, I decided to use Processing, and IDE that I had used a bit before in my freshman engineering class taught by Mr. I began this week’s interfacing work with some intros and testing. This week I worked with Processing, an integrated development environment, to create an application that interfaces with my final project LCD, and can address two specific lines in the interface. Invention, Intellectual property & Incomeġ5. Principles and Practices & Project Managementġ8.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |