LowPowerLab Forum

Hardware support => CurrentRanger => Topic started by: peteb on November 25, 2018, 08:40:33 AM

Title: CurrentRanger with HC-06
Post by: peteb on November 25, 2018, 08:40:33 AM
Looking at the online docs, it suggests that CR will stream readings to a PC via HC-06 bluetooth module.

I have one connected up and set to the right baud rate but am only receiving range changes i.e. "RANGE: UA" | "RANGE: MA" etc. I'm not getting the readings coming through.

Indeed, looking at the github code, I'm struggling to see where that functionality resides. Am I missing something or is there new firmware available ?

Thanks, Pete
Title: Re: CurrentRanger with HC-06
Post by: alexsh1 on November 26, 2018, 05:06:58 AM
The default CurrentRanger firmware serial header baud is set to 230400 so I understand you did set the correct baud in the HC-06 module via the AT+BAUD9 command.

Did you use Arduino's Serial Plotter? Or the Serial Monitor?
Title: Re: CurrentRanger with HC-06
Post by: Felix on November 26, 2018, 01:48:23 PM
Sorry about the confusion,
I amended the CurrentRanger sketch (https://github.com/LowPowerLab/CurrentRanger/blob/master/CurrentRanger_R1.ino) to include conditional output to the serial port if a BT module is detected. Please try this and let me know how it goes.