´

Interface and application programming


Materials, tools and software

Arduino(Tools)
Led (Materials)
Potentiometer (Materials)
Switch (Materials)
Protoboard (Materials)
Arduino(Software)
Rhino + Grasshopper + Firefly(Software)


Introduction

In this assignment,use the software like the way for the communication between the interactions "Hardware – User".





Rhino + Grasshopper + frirefly

For make the interaction, I use Arduino + Firefly
Firefly is a toll to Grasshopper and this is a complement of Rhinoceros. In Firefly is a graphic environment with you can connect and programing the adruino board.

Install Frirefly

For install, this tool can you view in the web site or in the link of the link in the final of the page .and to add you can check two files of description for install and introduce to firefly For use, the software you need have basic knowledge of Grasshopper in the next link can view tutorials for introduce in Grasshopper.

Firefly Web

Grasshopper Basic


Introduce Arduino + Firefly

To connect Arduino to Firefly do you need this programming to load in the Arduino board. When I download, this one had the following error.
This code use to communicate between Arduino and Firefly.



Code repair:

You can download the code on this link:

DOWNLOAD FILES




Programing

Use these tools to make different process to complete the programing
First, select the tool of valid port "Ports available" + "Panel" tool you check your information and them you select "Open port" and add the values of the ports, in the open you connect "Boolean toggle" change "true" or "false" to connect or disconnect the serial port next in port you connect the "Panel" of the last communication and the "Baud" check the number of connection in the code.






DOWNLOAD FILES

Week16.rar



LabVIEW + Satshakit

It is a platform and development environment to design systems, it uses a language that it uses is called G language, where the G symbolizes that it is Graphic language.

In this software I will experience the communication with a satshakit so the first step with the help of an FTDI cable connect to the computer followed by this in LabVIEW install the drivers in conjunction with the arduino libraries since the satshakit is recognized as an arduino. We must also make sure to install the appropriate components in this case we must have NI Visa which is responsible for enabling ports and communication interfaces from LabVIEW.

To perform graphical programming in LabView, it must be borne in mind that each block that will be used in the Arduino package installed in Labview represents a function of the Arduino language as such and each block entry in Labview represents the input parameters for that function.
To add the logic of programming and each of the actions that the program should perform is simple by clicking on the programming window we can add each of them.

Within the program we can find a window in which we can select the type of plate that is in this case the satshakit recognizes it as an arduino one, we will also have the detection of the port for which we need to install the "VISA" complement, in addition to other windows in which we select the pin to be used and the value to declare it either this entry or exit. A button with which we can turn on a led and finally a button to stop the process.

once with the complete programming the moment in which we execute from the graphical interface of the program the same action will be sent to the satshakit executing the same action of turning on and off a led.
This program seemed very interesting to me since LANGUAGE G (graphic) was very easy to learn for me because of its approach to the design softwares that are my greatest affinity and this program in particular is very similar to the FIREFLY analyzed above.

APP Invetor + PCB

Application Design

Networking and communication - Interface and application programming

This application can control the vibration motors using a slider from zero to one hundred, this slider change the voltage value to increase or decrease the intensity of vibration.
To make this application, I using App Inventor in a process I make the communication of the smartphone with the board designed by a bluethooth module.




within the interface development we modify the graphic environment. Inventor App handles an intuitive and easy to learn environment in which we only drag the tools either to program as we can see in the previous image or as to design the graphic environment as we see in the following image.

This development helped me to complement the following week if you want to learn more about this project you can go to the next page where you can find the complement of the development of this project.



Nex Week link

In the video you can see how the application was used



CONCLUSIONS

In this week I am experimenting with graphic language softwares since this is very easy to understand based on my experience in design environments I find easy to understand logically and easy to interpret.
My favorite was FireFly because of its connection with Rhino and its greater field of application towards design.


DOWLOAD App

Programing link