Come see the guys in ARM t-shirts and we can loan you a set of hardware. Remember to fillout the register sheet.
- Seeed Tiny BLE with built in BLE, 6 DOF accelerometer/gyro and RGB LED. OR
- ST NUCLEO-F401RE Board + X-NUCLEO-IDB04A1 Bluetooth Low Energy Shield + ST MEMS Sensor Shield.
- Sign up to an account on developer.mbed.org.
- Download Evothings Studio on your computer and Evothings Viewer on your phone.
- Sign up to an Firebase account and create a demo database you are going to use.
The demo have 3 parts:
- App that runs on the dev board.
- App that runs on the Mobile phone that controls an LED on the dev board via BLE
- A webapp that controls the LED romotely via the phone
- Goto the example program here. Click
import this program
on the top right. This should open up your online compiler. - In the online compiler, Select main.cpp from the folder you just imported. Change the name of your device where is says
"ChangeMe!!"
- On the top right corner, select target platform. You may need to click
Add platform
. For the ST BLE shield, you will need also import this Library. - Now click compile, a binary file will be downloaded.
- Plugin your mbed dev board, it will show up as a USB storage device, drap and drop the binary file you just downloaded into the device.
- For a quick check of success. Just install a BLE inspection app on your phone. See instructions here
- Open Evothings Studio on your laptop, connect your Evothings viewer from your phone by typing in the ip address provided in the Studio.
- Clone this repository:
git clone https://github.com/ARMmbed/hacktheburgh-workshop.git
- Edit phoneapp/app.json#L19. Change the firebase database URL to the one you created ealier.
- Drag and drop the file phoneapp/index.html in to the evothings studio. Click RUN and it will start running on your phone.
- Now type the name of your dev board which you set ealier into the phone app and see if you can connect and toggle the led
- Edit webapp/js/app.json#L4. Change the firebase database URL to the one you created ealier.
- Make sure your dev board is now connected to your phone. Open webapp/index.html from a browser, click the button to see the LED change.
- Come talk to us about what you want to build. We have more dev boards and sensors and we can help you figure out what to do.
- For more information about mbed, see the developer website.
- More BLE examples can be found here.
- Tweet at us with @ARMmbed #ARM #mbed and show what you have built with our product.