2022-03-16 (W) RemoteFinishLine Bluetooth modules connected

When I displayed serial data on my LCD, only the text from the USB connection appeared. Another oddity was that the baud rate on my serial terminal didn't have to match what I set in the program. I wondered if it could auto-negotiate speed, and if that was the case, was I transmitting incorrectly to the Bluetooth module. I connected a USB ↔ serial adapter in place of the wireless module, but I couldn't get a signal. I searched online for a solution and found that, unlike an Arduino Nano, the Micro uses Serial1 for the 0/1 pins, which was great news because that meant I could monitor through a computer while sending commands to the HC-05 units.

I changed my code to send data to the correct serial port and saw an "OK" response. I added the rest of the pseudo-code steps and implemented a new function that checked for the "OK" response after each command. Lastly, I wrote a new process to check for the HC-06 module I selected, and when it sees it, I send the order to connect. Once connected, I write a message that tells how long it took to establish a link. The times I saw ranged from nine seconds to fifteen seconds.
Battery-powered module connected to computer-connected module

The rest of the posts for this project have been arranged by date.
First time here?

Completed projects from year 1
Completed projects from year 2
Completed projects from year 3
Completed projects from year 4
Completed projects from year 5
Completed projects from year 6
Completed projects from year 7
Completed projects from year 8

Disclaimer for http://24hourengineer.blogspot.com and 24HourEngineer.com

This disclaimer must be intact and whole. This disclaimer must be included if a project is distributed.

All information on this blog, or linked by this blog, is not to be taken as advice or solicitation. Anyone attempting to replicate, in whole or in part, is responsible for the outcome and procedure. Any loss of functionality, money, property, or similar, is the responsibility of those involved in the replication.

All digital communication regarding the email address 24hourengineer@gmail.com becomes the intellectual property of Brian McEvoy. Any information contained within these messages may be distributed or retained at the discretion of Brian McEvoy. Any email sent to this address, or any email account owned by  Brian McEvoy, cannot be used to claim property or assets.

Comments to the blog may be utilized or erased at the discretion of the owner. No one posting may claim property or assets based on their post.

This blog, including pictures and text, is copyright to Brian McEvoy.