For this project I created on app on an Android phone and used it to control the outputs of an Arduino Uno.
The app was created with MIT’s App Inventor and an HC-06 module was used for bluetooth connectivity.
An LED can be turned on/off remotely using the buttons on the Android app.
The code and app programming was taken from this tutorial:https://www.youtube.com/watch?v=6o_QVlltNgM
In previous Ardunio projects I’ve experimented with Bluetooth modules and Relay shields.
In this project I combined the two features, creating a circuit that can control a high voltage solenoid using Bluetooth inputs from a PC.
The circuit consists of: an Arudino UNO, a Breadboard shield, an HC-06 Bluetooth module, a 5V Relay shield, a 24VDC solenoid, and a variable DC power supply.
The solenoid is connected to the variable DC power supply and Relay shield. The Relay shield is then controlled by the Arudino Uno, which gets its commands from the HC-06 Bluetooth module.
This Instructable was used to help with the code: http://www.instructables.com/id/Add-bluetooth-to-your-Arduino-project-ArduinoHC-06/?ALLSTEPS
The HC-06 was set up with a voltage divider following this tutorial: http://www.instructables.com/id/Cheap-2-Way-Bluetooth-Connection-Between-Arduino-a/
Note that the HC-06 needs to be disconnected when uploading the code. Also it will only be detectable as a bluetooth device once the Arduino has been disconnected from the computer and is running on external power.
The aim of this mini-project was establish Bluetooth communication between a Macbook and an Arudino UNO.
The project was completed with the help of this useful tutorial.
The key stages of the project were:
- Upload code to the Arduino to establish serial communication
- Connect up the HC-06 Bluetooth module with voltage divider
- Run the Code with the Bluetooth module as the serial input
- Connect to the Device with the Macbook
- Install and run ZTerm Terminal Emulation software to provide inputs
Several tutorials I looked at were using the Arduino Micro which may be useful for future projects.