|
Post by brierleys on Oct 11, 2019 13:20:23 GMT
Hi. I've just bought an HC05 bluetooth module for our echook (the original one was misplaced). I don't know if it's the type of module that's the issue but the app keeps establishing and then dropping the connection every couple of seconds. Any ideas?
|
|
|
Post by Rowan on Oct 11, 2019 21:34:39 GMT
Hi, when the app isn't receiving data it will continuously show connecting and disconnecting in the app. It sounds like the bt module is working, just needs to be plugged into a programmed Arduino
|
|
|
Post by brierleys on Oct 12, 2019 8:17:54 GMT
Thanks. Our Arduino borad is plugged in so does that mean the code hasn't been installed? Sounds like a daft question but I'm picking it up after someone's half built it.
|
|
|
Post by Rowan on Oct 12, 2019 9:30:15 GMT
No problem - yep that sounds like the Arduino hasn't been programmed.
When powered on, the TX light on a programmed Arduino will flash every 0.25 seconds.
|
|
|
Post by karamjit on Jun 9, 2023 15:24:53 GMT
Hello, I have a similar problem. We have the first eChook beta version. The code flashes on and works. The Bluetooth name shows up as well and the lights flash on the HC05 but as soon as we connect the light turns off and it continuously connects and disconnects. With the old code the bluetooth was working perfectly fine .Do you know how to fix this ?
|
|
|
Post by Rowan on Jun 9, 2023 19:33:41 GMT
Hey, good to hear those old prototypes are still in use!
The constantly connecting and disconnecting in the App happens when there is no data being recieved over bluetooth. On the Arduino itself ther are TX and RX leds flashing?
What has changed since it last worked? Have you just flashed the latest version of the code?
|
|
|
Post by karamjit on Jun 14, 2023 18:21:51 GMT
Hi there, the TX and RX led lights aren't flashing (the lights are on constantly but very dimly) but when I upload the code on the IDE app it says upload completed. Also after reseating the Arduino the PWM light has turned on the PCB yet the led lights 1 & 2 are still off. This is when connected to a power source other than the usb. The bluetooth has stopped working after flashing the new code on and the baut rate is set to 11250 as well. Don't know why it isn't connecting.
|
|
|
Post by Rowan on Jun 15, 2023 10:10:34 GMT
In the latest version of the code I did a code tidy up - part of this was removing the code that flashed LEDs 1 and 2 on the prototype board as it wasn't really necessary (they were there in case teams wanted to program them to indicate something, not really used by default and were removed from later boards). There should have been no changes that affected functionality though. I've just taken a look through all the changes I made and can't see a reason for the behaviour you're seeing. Can I suggest re-flashing the previous code version (available here) and seeing if it fixes the issue? If it does I'll take another look through and work out how I've broken it! If it doesn't there might be another cause, and the reflash just be coincidental timing. Thanks, Rowan.
|
|
|
Post by karamjit on Jun 15, 2023 16:15:58 GMT
I would try using a different Arduino Nano and flash code onto that.My computing teacher showed us that data was being sent using the terminal app on Android devices but it wasn't working with the Bluetooth in the app. Do you recommend trying a different arduino?
|
|
|
Post by Rowan on Jun 16, 2023 21:16:41 GMT
If the data is coming through in a bluetooth terminal on the phone, then changing the Nano shouldn't make any difference. The data is defined by the firmware (arduino code) - if the hardware is working to send data out at all, then changing the hardware isn't going to change the contents of the data.
Are you sure the right bluetooth device is selected in the eChook app settings?
|
|
|
Post by karamjit on Jun 18, 2023 16:52:58 GMT
Yes, after flashing the old code on it works perfectly fine which is quite confusing. The only thing that is a bit weird with the old code is that temp1 and temp2 on the app fluctuate but accept for that it is working perfectly.
|
|
|
Post by Rowan on Jun 18, 2023 19:15:23 GMT
That is odd! Is this the version of the code I linked to earlier? I've taken another look at the changes between the two of them and I can't see anything obvious that would break on one of the early boards.
Temperature wise, I might have increased the filtering on it in the newer code to make the reading a little smoother.
I'd recommend using the old code for now as it works. Functionally there is very little difference between it and the newer code (So long as you don't want to use an Arduino Nano Every instead of and Arduino Nano)
|
|
|
Post by karamjit on Jun 19, 2023 15:23:31 GMT
Yes, it was the code on the github which you gave me the link to. Also is it normal if sometimes the temperature readings go off and on. Another question was when calibrating the current sensor do we need to take the reading of the A0 pin do we need put the other side of the multimeter on the ground pin as well.
|
|
|
Post by Rowan on Jun 19, 2023 17:15:45 GMT
The intermittent temperature readings are most likely a bad connection - most likely on the GND side of the circuit if it's happening to both simultaniously. Check the Witing and for loose solder joints?
Yes, when reading the A0 voltage it's relative to GND, so black probe on any GND point on the board.
|
|