The Edison board is a small computer. It has connections for power, USB ports, and connectors for a CPU (computing unit) and a port to connector the sensor board (more on this later)
To get the Edison board ready to work, follow the steps in this instructable HERE . The Edison board has to be prepared before you can program it in Wyliodrin.
Step 1: A Few Important Things to Remember
- Check that you have followed the instructions on each step before continuing to the next step.
- Check that the program works the way you expect to work before you add new blocks.
- The order of the blocks is critical.
- The program runs from top to bottom.
- The Stopped word in Wyliodrin is what you click to start the program. Yes, it is true.
Step 2: Confirm the Edison Board Is Online
After the Wyliodrin software is installed, restart the Edison board. When the board is online, you will see the indicator in Wyliodrin change from offline to online.
Now you are ready to start building your application and run it on your board.
Step 3: Connect the LCD and Temperature Sensor to the Edison Board
All the materials that will be used come from this kit: http://www.seeedstudio.com/depot/Grove-starter-kit-plus-Intel-IoT-Edition-for-Intel-Galileo-Gen-2-and-Edison-p-1978.html
First: Connect the baseboard module that has the connectors for the sensors. Gently align the pins with the corresponding connector in the Edison board and push the baseboard module down.
Second: Connect a cable to the LCD, then connect the other end of the cable to one of the ports on the baseboard module labeled I2C. Choose any port.
Third:Connect a cable to the temperature sensor and the other end of the cable to the baseboard module. The temperature sensor is analog, so it will be connected to one of the A ports, like A0.
Step 4: Create the New Application Space
On Wyliodrin, click on Create new application.
Enter the name of the application, leave the language at the default, Visual programming.
Click Next, and the click Submit.
Click on your application to open the work space.
Drag the purple print block to the trash can at the bottom right of the sceen.
Step 5: Start Programming the LCD and the Temperature Sensor
The Wyliodrin application makes it easy to program your Edison. You identify the module you are interested in from the menu, then choose the action you want to execute.
First: Click Peripherals, click Grove, click LCD on the left-side panel. When you select it, all the possible options will be displayed to the right. Choose the top two blocks, they will be added to the working area on the right.
Second: Click Sensors, click Grove, click Temperature sensor. Choose the second block ( with Fahrenheit) and it will be added to the working area.
Step 6: Display the Temperature on the LCD
Now that you have defined the LCD and the temperature sensor, it is time to read the temperature from the sensor and display it on the LCD.
First: Assemble the blocks in the order they will run. Select the temperature block and drag it into the Print block to replace the block that is there. Select the replaced block and drag it into the trash can. Now drag the Print block and snap it below the init block.
You are ready to run your program!
Step 7: Execute Your Program
To run the program you just built, click on the Stopped word on the left hand side on the Wyliodrin screen.
A new window will display, and your Edison will come to life, displaying on the LCD the temperature from the sensor.
Step 8: Creating a Loop to Read the Temperature Level Every Second
Now that we know how to read data from a sensor, we are going to create a loop so we read data time and time again.
First: Create a loop. Click on Program, Loops, and select the first block. The block will be added to your work area.
Second:Snap the work you already have to the Loop. The section will snap and now it will repeat every second. You can adjust that by changing the number from 1 to the number of your choice.
Run the program again. Touch the sensor and you will see that the value on the LCD changes.