2019-07-26 (F) Weekly Summary

I continued trying to get a Bluetooth module to connect to a Raspberry Pi wirelessly, and I continued to fail. My hopes were finally dashed when I read about a Python script which would take care of some of the work, but the posted code was incomplete, and there was not enough to fill in the blanks.
Attempt to communicate from computer to Bluetooth module

The more I looked, the more it became clear that talking from the onboard Bluetooth chip to a remote module was not welcome, and a second Bluetooth module was necessary. That second unit would also have to connect through a USB↔serial board. Of the three boards I had, two seemed amenable to bridging.
Making headway with BT commands and USB↔serial module

The two functioning modules were counterfeits, and the one that refused to cooperate appeared to be genuine. Using forged units made it challenging to collect documentation and commands were similar, but without a reliable list of commands, it was hard to know if a module could act as a central or peripheral unit. One was useful enough to print a HELP menu listing all it was capable of doing.
The AT+HELP menu

The least helpful module accepted a remote connection, and it could relay data sent to it through a wired serial adapter, but it would not send any data back so I thought it might be a broken Tx pin. A magnifying glass showed a good solder joint, but it was heated, and solder was added. The problem did not disappear.
Questionable solder joints

Inside the cylinder, there would have to be a controller, and for reliability's sake, it should have a battery to keep it one with unreliable power. For testing, a couple of LEDs were plugged directly into IO pins where one pin was set to LOW, and the other pin controlled the light. This wastes an IO point but saves the time of doing it right.
Setup for testing and programming the peripheral module

Programming started on the peripheral module. The first step was recognizing when the Bluetooth module was connected by sending a command and listening for the expected response. Once the answer came through, a light would turn on. This was important since I had never had to recognize and handle UART serial commands before.
Progam confirming the module was connected

The rest of the summary posts 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

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.