Assignment Week14
Interface and application programming
This week’s assignment is "write an application that interfaces with an input &/or output device”.
I tried to connect output device PCB and PC, using Processing application.
Edit PCB
First I edited my output device pcb. I makde DC motor driver pcb for assignment 11.
But it can't communicate with PC. Because, This pcb is output device for ATtiny. So seriao port for PC is disconnected.
Then, I make new PCB data. This board can communicate with PC by softwareserial communicate function.
Board's circuit pattern data is here.
Board's outline data is here.
. Board's program data is here.
. But in this time, I didn't make new board, I re-use DC motor driver PCB that I made at assignment12. I soldered jump wire and
Making processing application
Processing is very famous and useful programing language.
I tried to make serial communicate application.
Processing can download here.
I had decided to use DCmotor for my final project. So I tried to make simulator of my final project.
This code
is my application of Processing.
I use serial communicate function."/dev/cu.usbserial-A700eEjj" is port's name.
This name can be checked at ArduinoIDE. Lool "Tool > Serial Port >Selected port"
This program is to adjust DC motor's powor.
Mouse cursor's X axis is inputted to power indicator, and DC motor's power supply is decided by indicator's percentage.