Interface and application programming


In this week I stydied different types of communication tools and there uses too.In this week I was studing matlab basics, java script with how to write code and finally processing software.

According to google java script is Javascript is a relatively simple programming languages consisting usually of small pieces of code to make web pages more interactive to the user. They require a web browser that supports Javascript and also the setting needs to be enabled on the browser. Today, virtually every website use snippets of javascript to incorporate certain features for the webmaster and/or website user. Website analyzing services state that approximately 5% of internet users have disabled Javascript functionality on their website.But you need deep knowledge of coding.

Upto this I will complete first stage of networking.After that I will use my input board for further communication.Like transmmiting and recieving the signals by using bluetooth module.

Then I prefer processing software for interfacing my input board. Fistly I wrote simple codes for mouse interface with the help of youtube.

I am programming hello board by using arduino but when I run that program it was not supporting. It gives problem like serial communication error.I will give that sensors input to the processor and it will plot gragh for the same. Here I run analoge serial program by using arduino.

Now I am working on that problem.... In processing windows it doesn't show port.

Interfacing using MIT app inventer

Now I am exhausted!! I was moving towards the MIT app inventer. I was using my bridge board, node board and bluetooth module for interfacing assignment. To use MIT app Inventor one needs to sign in using the "google account", once we are inside we will be asked to take a survey, we can skip it if we want and move to creating a new project.After this the screen will look something like this, the layout of MIT APP Inventor is very simple, all the components are readily available and clearly visible

- Here we find all the buttons, listpickers, label and sliders. Listpickers produces the lists of available devices through wifi, blueetooth or USB. Buttons are like on/off buttons, labels signifies the status of the device whether it is connected or not etc,

Active Screen

- is the way the app will look in the mobile phone, we can also have a live screen on android device(explained later) Component properties panel

- Here we specify the properties of the components such as the height and the width, background colour or image etc

I started by selecting the listpicker option in the component section, it will give me a list of available devices in the vicinity, I am using bluetooth client because my app will use the blue connection to talk to my board.

So, I was picking bluetooth client from the component section and also clock to the show me connection in real time, all these components they fall under invisible components-meaning that they will not be shown on the active screen but they will be constantly working in the background

There is an amazing feature in MIT App Inventor which lets you see the app as you built it, you can find this in the top in the AI companion section under Connect panel, this requires us to have MIT AI Companion app (available on play store) installed in our android device. You just the scan the QR code and you are live . I was using boards from networking and communication assignment In my case , when I click on button then LED gets blink but when I press off button. It doesn't work.

I have to thank Jaseel Mohammad from trivandrum 2016 batch, I refrerred his assignment for bluetooth board. He gives detailed information about bluetooth board in his document. I have included codes files in download files.

The bluetooth board has Attiny 45 as the controller, the HC-05 has 6 terminals to it but we are only going to use 4 of them. Vcc and GND connected to the corresponding pins, RX pin of the module to PB2 pin of the IC and TX pin of the module to the PB1 pin of the IC I also took out two output pins from the IC, PB3 and PB4, these pins will be the input for the hello board I will attaching to.

I was using arduino IDE for the coding the board. Becouse I am comfortable in editting with arduino. I mention Node board coding and connections in networking and communication assignment. So, I connected two boards by using ribben wire. Here I modify bluetooth board you can find its eagle file in download folder.

Code for the bluetooth board. You can find this code in download folder.

Code for the node board.

Here the code for the node board. You can find this in download folder. The pin PB0 is the LED pin. I declared PB3 pin as push button pin. When I push ON button from my app sceen it will gets ON the LED and vice versa.

I connected the hello board to my bluetooth board using jumper wires.

Video

  • Download files