Introduction: Arduino101 RC Cars

[This is not finished. I intend on finishing it by May 2016.]

I wanted a simple, cute, project that demonstrated how to control IO pins on an Arduino101 using a smart phone.

I used:

An Arduino101.

Ardumoto shield.
https://www.sparkfun.com/products/9815 This came from sparkfun and it is 3.3V digital logic levels.

An Android smart phone withi Bluetooth Smart. (Bluetooth LE)

Nordic Semiconductor nRF Toolbox
http://www.nordicsemi.com/eng/Products/Nordic-mob...

A Sparkfun robotics motor, wheel, kit.

Step 1: Get the Code.

The code is on GitHub at:

https://github.com/qtpierce/sMegabyte/tree/master/...

There are 2 significant files:

simple_nRF_UART.ino This is the sketch that goes on the Arduino101.

myUARTApp.xml This is the configuration file that sets up the nRF Toolbox App's UART tool.

Step 2: Upload the Sketch to the Arduino101.

Use the Arduino IDE to upload the sketch simple_nRF_UART.ino to the Arduino101.

https://github.com/qtpierce/sMegabyte/blob/master/...

Once uploading is complete, cycle power on the Arduino101. You do this because the Nordic Semiconductor Bluetooth transceiver only updates its information concerning the device name and services at powerup.

Step 3: Download the NRF Toolbox App and Install It on a Phone.

From Google Play.

Nordic Semiconductor nRF Toolbox
http://www.nordicsemi.com/eng/Products/Nordic-mob...

Install it.

Step 4: Copy the UART Config File to Your Phone.

Or write your own UART configuration.

Use a USB cable to copy the file myUARTApp.xml to the phone.

Open the nRF Toolbox and goto the UART tool at the bottom.

Try to import the file myUARTApp.xml as a configuration.

If you get an error concerning a configuration already existing with that name, then rename the existing configuration.

And then try to import the UART config file. And delete the old configuration.

Step 5: Connect the UART App to Your Arduino101.

Use the UART App's CONNECT button to initiate the connection. It should scan and find your Arduino101. You then press the name name of your Arduino101, it is a button, to make the connection.

Your phone and app are now paired with the Arduino101 and should be turning GPIO pins on and off. Try sticking a bare LED into Arduino pins 4 and 5. 5 will be the anode (the long pin). The buttons in the upper left and upper right should turn the LED on and off.

Comments

author
shadey_dave (author)2016-08-29

Just saw your instructable. Very nice work here and I encourage you to finish your write-up. I use the UART profile in my Arduino 101 BLE Rover Remote Control.

author
qtpierce (author)shadey_dave2017-01-22

Thanks. I saw yours. I dropped the ball when I ran into "not enough battery life" from 9V batteries. Maybe I should pursue my new dream: a motor controller, motors, and an Arduino101 that run off of a 5V USB battery bank for 2 hours of playtime. I gave up because I'd wanted to take a low BOM count toy to schools and teach the basics of programming and play. But I kept getting about 20 minutes of playtime from a 9V battery before the motor controllers browned out.

About This Instructable

681views

8favorites

License:

More by qtpierce:Intel Edison Weather Advisory SketchArduino101 RC CarsIntel Edison pushing bluetooth audio.
Add instructable to: