Introduction: INTEL LONDON HACKTHON: HONEST! Super Beginners Guide to Setup Intel Edison + Interaktive Pixel Minecraft Sword
I was attending the Intel Hackathon at the Maker Lab in London on June 14 and 15 2015 with about 100 others and people were asked to put up an instructable additionally to our hack. Because I saw that many people had problems setting up their Edison at the Hackathon I am writing this honest guide how to get startet from 0 to 1 and to also review the Edison from my point of view.
I am not including the cloud part at that moment but will ad it later. I also try to include every little step because in my experience most of the instructables are missing import steps. Who really has made something he has seen in an instructable?
Here a couple of nice projects people did:
1. A smart vending machine
2. An Automatic Uploader
3. A tube arrival notifier
What you need to the my project:
I did some research for how much and were I can buy an Edison. I was pretty surprised because the Edison Breakout is pretty expensive and it seems not many people buy it - there were only a view comments on Amazon in Germany (1) and UK (1) and a little bit more in the US (19).
- Intel Edison Breakout Board Germany (amazon.de (€ 75,31) , amazon.co.uk (GBP 82.30) , amazon.com ($ 97.58)) -> If you are not interested to connect to the cloud I would recommend to get an Arduino UNO which you can get really cheap for about 13€.
- A Grove Sensor Kit: I can really recommend this shield. You can use it on the Pi and the Edison and there is also one for the Raspberry Pi Shield and there are almost all sensors and outputs you can image. Its like the Little Pits for grown ups. (amazon.de (€ 46,99), amazon.co.uk (GBP 38 ), amazon.com ($39.99)),
- A 3D Printer to print out the minecraft sword -> go find your local fablab.
So the cost of this instructable would € 132,29 , GBP 129,09 or $ 144,56 not including shipping costs.
Step 1: Unbox Your Edison
Open your Edison Box. In it your find your the following
- an Edison Board
- the Edison Compute Module
- 2 USB Cables
- 4 Screws
- 4 Nuts
Put everything on the Table like in the picture above.
Additionally you need a 1.5A Power Adapter.
Step 2: Assemble Your Edison
- First Plug the Power Cable in the Edison
- then plug the two USB Cables in the USB Connectors
- then take the 4 screws and 4 bolts and in the 4 cornes the Edison board
- then take the Edison Module and clib on the left buttom corner with the barcode up
Step 3: Attach Your Grove Shield
Attach your Grove Shield on top of your Edison Board. It will also fit on your Arduino UNO.
Step 4: Connect the Cables
- In an previous step you have already plugged in the USB Cable and the powert cable into your Edison.
- now plug both the USB Cables into your Mac (this is kind of enoying as you cant use your usb mouse anymore)
- And the Power Cable into an outlet
- make sure that the little switch is pull all the wall towards you
Step 5: Check If Your Connection Is Correct
- to check your connection download the Arduino IDE 1.6.4 from the Intel Website and install it
- trag it to your Applications Folder and rename it Edison Arduino because you might use other version with other boards
- select the Edison Board (Tools > Board > Intel Edison)
- select the Blink Sketch (File > Sketchbook > Examples > 0.1 Basics > Blink)
- Select the correct Serial Port (Tools > Port > /dev/cu.usbmodemXXXX)
- Upload the sketch
- a little lamp next to Edison module should start to blink
Step 6: Flashing the Firmeware + Connect to It
- Download the newest Firmware from the Intel Website
- Format it the Edison with Disk Utility in FAT32
- Unpack the Firmeware and Drag and Drop the inside of the folder to the Edison
- Launch the Terminal (Spotlight Search > Terminal)
- Type ls /dev/cu.usbserial* to see what is the name of your edison
- You get something like /dev/cu.usbserial-A502LR30 and press Enter
- Now Type screen /dev/cu.usbserial-A502LR30 115200 -l and press Enter
- then you have to hit another 2 times enter you will see the --> edison login
- type root and hit enter
Your are connected to your Edison via the Terminal
Please always close the screen properly by using CTRL+A. If you close the terminal window only with the X field i can be that you cant connect anymore and you have to remove the Power Cable and the USB Cables.
Step 7: Configure Your Edison
- update Edison: type reboot ota
- rename it: type configure_edison --name
- change the default password:configure_edison --password
- connect to the wifi: configure_edison --wifi -> this part did not work when I was on the hackathon because to many people were connected to the network
Step 8: Connect Over SSH to the Edison
Once you have connected your Edison to the Wifi you can also connect over SSH to it.
Also you can start using Wylodrin.
Connect over ssh to the Edison type ssh nameofyouredison.local -l root
Here again I had some problems getting a connection.
Step 9: The Actual Project: the IOT Minecraft Sword
Because I am teaching Kids Courses for Minecraft Hacking I wanted to do create a Pixel Sword and equip it with 2 Leds, 1 Button, 1 Rotary Encoder and a Buzzer.
I then will connect it to Minecraft and be able to set a block with pressing a button.
First you need to 3D Print a Pixel Sword. Because of time constraints I did not design it myself and went to Thingiverse and 3D Hubs printed it out for me.
I then used a glue gun to attach these OUTPUTS and plugged it into the Grove Pi Shield. All Inputs and Ouputs are from the Kit.
1x LED Red --> D3
2x LED Green --> D$
1X Buzzer --> D7
And following INPUTS:
1X Button --> D8
1X Rotary Potentiometer --> A0
Addtionally I added the a LCD Screen to it with which you can change the blocks you want to set.
Step 10: The Code
The code is written in Arduino.
I got the first part running but still have not got the connection with Minecraft Going.
Step 11: Optional: Progamm With Python
I think the best Programming language for beginners is Python so I will show you how to get it to work on the Edison.
- Connect to the Edison with screen - Install the nano editor (there is Vim/Vi on the Edison, but it I think Nano is also much easier to use for beginners): type these commands in the terminal
wget http://www.nano-editor.org/dist/v2.2/nano-2.2.6.t... && tar xvf nano-2.2.6.tar.gz && cd nano-2.2.6 && ./configure && make
make install DESTDIR=/home/root