![]() ![]() As device names use 'nh-groundshock' and 'nh-skull'. After this add the Internet of Things Foundation service to it.įor each car you need to register a device with the Internet of Things Foundation dashboard. Next create a new Bluemix application based on the Internet of Things Foundation Starter. In order to perform the following steps, you need to register on Bluemix. If you don't want to use it just comment out the MQTT configuration in the config files. It should also be possible to use other MQTT providers but this might require to fix one or two hardcoded places in the code. I have used IBM Bluemix and the Internet of Things service. The project supports MQTT to remote control the cars. Setup of MQTT and Bluemix Internet of Things When the controller is running you can find out more about the available commands by typing 'help'. Node controller.js config-skull.properties To start the controller(s) invoke one of the following commands. You can use the file 'config-sample.properties' as starting point. Copy the peripheral ids in these files and define a start lane (see below for more). I use this file for my GroundShock car and 'config-skull.properties' for Skull. By default the application looks for the file 'config-gs.properties'. In the root directory of the project you should create one config file per car. Turn on the charged cars, make sure Bluetooth is enabled on your MacBook and from the new directory run this command: You need to find out the Peripheral ID of the cars you want to connect to. Invoke the following commands from your git directory. Make sure the following tools are installed and on your path. the offsets, I had to guess how to interpretate the data from the cars since I hadn't found any documentation.Īuthor: Niklas Heidloff Setup of the Node.js Controller I haven't checked other platforms, firmware versions etc. The code below works for my current setup. Check out the photo of the setup.ĭisclaimer: I followed the documentation on the Anki Drive SDK site. I tested it with a MacBook Pro successully (without additional adapter). Additionally you need a device to run the Node.js application which also supports Bluetooth Low Energy. In order to run this project I used the Anki Overdrive Starter Kit. This allows for example to build collision prevention software as demonstrated below. MQTT interface to invoke commands from cloud platforms like IBM Bluemix and receive events from cars in the cloud.Controller (Node.js application) running on MacBooks or notebooks to invoke commands and receive messages via CLI (command line interface) using the Anki Drive Bluebooth Low Energy interface.The node-mqtt-for-anki-overdrive project contains two main components to control Anki Overdrive cars. Node.js Controller and MQTT API for Anki Overdrive ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |