Showing posts with label Intel Galileo. Show all posts
Showing posts with label Intel Galileo. Show all posts

Tuesday, September 13, 2016

C/C++ on Intel Edison/Galileo – part5:Temperature sensor


In this blog post, we will explore the ways of interfacing a temperature sensor using both mraa and upm.

The Grove temperature sensor that we are going to use is a class of transducer know as the thermistor. It is called so because it's resistance (the 'istor') part is controlled by the thermal energy ('therm' part) applied on the sensor. We are going to use the Grove temperature sensor.

We have already learned from the previous blog post that with ADC, we can measure the change in the resistance of a device connected to the analog input of Edison/Galileo.

Saturday, May 14, 2016

In this post, we will be using the upm library to interface the Grove Light sensor with the Galileo/Edison using python.
The light sensor is made up of primarily of LDR and opamp:


Monday, April 25, 2016

C/C++ on Intel Edison/Galileo – part4:ADC

ADC is a peripheral that lets you input an analog signal and outputs the digital representation of the input analog signal.
The world in which we live in is surrounded by the analog signals. The temperature, sound that hear, the light that we see are all analog signals. If you want to interact or measure these signal in a digital system like Galileo/Edison, you’ll have to use ADC a.k.a Analog to Digital Converter.

Sunday, February 21, 2016

C/C++ on Intel Edison/Galileo – part3: PWM

In this blog post, we are going to look into the ways of mraa functions used for controlling the PWM module available on the Galileo/Edison. In this tutorial, we will using PWM to control the intensity with which the LED glows, connected to port D5. The LED starts of with lowest intensity and then gradually increase the intensity until it reaches the maximum intensity and then decreases the intensity gradually until the LED is at the lowest intensity and the cycle continues.

Wednesday, December 30, 2015

C/C++ on Intel Edison/Galileo – part2: Buttons

In this post, we will be looking at using mraa library on C for interfacing with a button. For this example, the button will be used to turn on and off an LED connected to the Edison/Galileo. This example is going to be very similar to the previous one. The only difference being that the state of the LED is controlled by a button instead of the program running on Edison/Galileo itself.

Friday, November 13, 2015

C on Intel Edison/Galileo - part1

In this series of blog posts, I’ll be posting on writing 'C' code on Intel Edison/Galileo platform. I’ll be using the Grove kit. You can also use a bread board instead of Grove kit.

There are two libraries available on the Intel Edison/Galileo for developing applications written in C that need to use sensors, actuators, LEDs etc…

  • MRAA: Provides API for interfacing with the GPIOs, ADCs, PWM, SPI, etc… It is basically for interfacing the low level peripherals. It is kind of bare bones, you can use the functions provided by MRAA to drive more complicated peripherals like sensors or you can use…

  • UPM: Provides higher levels of abstractions via objects for controlling things like LCDs, temperature sensors etc… It is a level above the MRAA and most of the functions that you might need while interfacing a sensor or LCD are already implemented in UPM.


Thursday, September 3, 2015

Python on Intel Galileo/Edison - Part6: Light sensor

In this post, we will be using the upm library to interface the Grove Light sensor with the Galileo/Edison using python.

The light sensor is made up of primarily of LDR and opamp:

[caption id="attachment_382" align="aligncenter" width="319"]The Grove light sensor (photo: seeed studio) The Grove light sensor (image: seeed studio)[/caption]

"LDR" stands for light dependent resistor (in above schematic, it is marked as "LIGHT") as the name suggests, it is made up of a material that changes it resistance depending on the intensity of the ambient light.

Monday, August 31, 2015

Blockly on and for Edison/Galileo - work in progress

Just a quick post to give you guys a heads up on what I have been working on.

I've been working on bringing Blockly onto Edison/Galileo. The plan is to have blockly server being hosted by Edison from within the blockly interface, one should be able to upload and execute the generated Arduino sketches.

Blockly is visual programming tool using which you can whip out functional code with great ease. It consists of predefined blocks. Combining them you can create executable code targeting a number of platforms. I am basing this on the BlocklyDuino project.

If you are looking for something similar but better, have a look at wyliodrin.

In below video you can see Edison serving up the Blockly. Using the Blockly interface you can see me put together a simple LED (again connected to D5) blinking code.

[embed]https://www.youtube.com/watch?v=DtC7aBmB3nY[/embed]

Friday, August 28, 2015

Compiling Arduino sketchs on Galileo/Edison from command line

For some time I've been playing around the idea of compiling and executing Arduino sketches right from the Galileo and Edison. In this post I'll detail out the method that I used to accomplish this task and will also note down the investigation that I had to do in order to do this.

Compiling Arduino sketchs on Galileo/Edison from command line

For some time I've been playing around the idea of compiling and executing Arduino sketches right from the Galileo and Edison. In this post I'll detail out the method that I used to accomplish this task and will also note down the investigation that I had to do in order to do this.

Saturday, August 22, 2015

Cloud 9 IDE on Edison


One of the things I like about the BeagleBone(Black) is that it comes with Cloud 9 IDE off the shelf which means that you do not need to install any kind of software (other than a browser) on your host system to start developing something on the board.
In this post we are going to talk about bringing the cloud 9 IDE experience onto the Edison.

Wednesday, August 5, 2015

TwitterPlotBot on Galileo/Edison

As you might have guessed from the title of this post, we are going to build yet another Twitter bot on Galileo. So what does it do differently then? It tweets the picture of the plot of the temperature(or any other parameter that you wish to see) right to your Twitter feed.

TwitterPlotBot on Galileo/Edison

As you might have guessed from the title of this post, we are going to build yet another Twitter bot on Galileo. So what does it do differently then? It tweets the picture of the plot of the temperature(or any other parameter that you wish to see) right to your Twitter feed.

Thursday, June 4, 2015

Speaking assistant

Writing this post to share a project that I did for one of the Intel IoT roadshows. It is called "Speaking Assistant" I have put together an Instructable for it. The project is based on Intel Galileo Gen2. It uses Text to speech software(TTS), eSpeak to speak out information that it fetches from the Internet and yes it is entirely written in Python ;)

Wednesday, June 3, 2015

Sharing files between your host system and Linux boards using SSH

While working on Linux SBCs, I find myself transferring lot of files to and from my host dev PC and the dev boards. In this post, I'll be talking about using SSH to mount your device as storage drive onto your host.

Wednesday, April 8, 2015

Python on Intel Galileo/Edison - Part 5:Temperature sensor with mraa and upm

The temperature sensor that we are gong to use for this post is from Grove. This sensor outputs the voltage that represents the temperature hence we will need the ADC module on the Intel Galileo/Edison to interface with this peripheral.

Python on Intel Galileo/Edison - Part 5:Temperature sensor with mraa and upm

The temperature sensor that we are gong to use for this post is from Grove. This sensor outputs the voltage that represents the temperature hence we will need the ADC module on the Intel Galileo/Edison to interface with this peripheral.

Python on Intel Galileo/Edison - Part 4: ADC

ADC is a peripheral that lets you input an analog signal and gives the digital representation of that analog signal.
The world in which we live in is surrounded by the analog signals. The temperature, sound that hear, the light that we see are all analog signals. If you want to interact or measure these signal in a digital system like Galileo/Edison, you'll have to use ADC a.k.a Analog to Digital Converter.

Python on Intel Galileo/Edison - Part 4: ADC

ADC is a peripheral that lets you input an analog signal and gives the digital representation of that analog signal.
The world in which we live in is surrounded by the analog signals. The temperature, sound that hear, the light that we see are all analog signals. If you want to interact or measure these signal in a digital system like Galileo/Edison, you'll have to use ADC a.k.a Analog to Digital Converter.

Tuesday, April 7, 2015

Python on Intel Galileo/Edison - Part 3: PWM



In this blog post, we are going to look into the process of using mraa methods for controlling the PWM module available on the Galileo/Edison.

What is PWM?
 PWM stands for pulse width modulation. As the name suggests, there is a "pulse" and with "width", we mess("modulation"). The idea here is to change the width of the pulse, resulting in another pulse that meets our needs.