The goal this week was to communicate between two devices.
As I would like to have remote communication between the user and my lamp for my final project and wifi might prove difficult with log-ins and whatnot I decided to opt for Bluetooth connectivity. I originally was steered into the newer Bluetooth modules but could not find any documentation from past use cases, and as my electronics know-how is very primitive I decided to stick with the Bluetooth 4.0 HM-10 which had many more uses described in past years. I relied heavily on descriptions from Dan Chen in this tutorial from HTMAA '15
The first step was to program the Bluetooth Module by connecting to it via Arduino. Unfortunately my module was different than Dan's. Dan's had nice connections pre-soldered to the board allowing easy access to TX,RX,VCC,and GND, in my board I had to create these connections by looking at the data sheet and soldering mini jumpers to create these connections that feed into the FTDI cable.
Once all was wired up I plugged it in and selected the correct port in Arduino. Then I opened up the Serial Monitor, ensured it was set to 9600 baud, and typed in: AT+NAME? and got back the message: OK+NAME:HMSoft , which means it worked!
I got both addresses for the BLEs and connected them to one another. Lastly I established BLE A as Role[0] and BLE B as Role[1].