|
Post by colinm on Aug 12, 2019 11:07:07 GMT
Hi, board has been build and checks done, code flashed to Arduino. BT module fitted while pressing button and light flashes 2s on 2s off, reset Arduino but light L continues to flash. Tried many times reinstalling BT but can't get past this point. Any suggestions?
|
|
|
Post by Rowan on Aug 12, 2019 11:12:11 GMT
'L' light on the Arduino will continue to flash... What does the LED on the BT module do? If it keeps blinking slowly then it's not working, if it starts blinking faster it's worked.
If it still doesn't work, how are you powering it? If you're powering it via USB it will often fail, try another power source. Anything between 7 and 25v into the 24v input will work.
|
|
|
Post by colinm on Aug 12, 2019 11:22:53 GMT
Hi Rowan, After reseting the Arduino, the BT blinks fast and the L light flashes. The online manual states as below so I assumed the Arduino would stop blinking.
""If configuration has failed the ‘L’ LED on the Arduino will blink continuously and the Bluetooth module LED will keep blinking slowly. Go back to step 3 and repeat the process.""
I have yet to get hold of an Android phone so tried to pair it with an IPhone just for checking but maybe that won't work???
|
|
|
Post by colinm on Aug 12, 2019 11:29:22 GMT
Using power supply at 24V
|
|
|
Post by Rowan on Aug 12, 2019 11:53:43 GMT
Ah, I might need to clarify the documentation there. By blink continuously I mean it will keep blinking - as it is doing. The fact that the BT module LED starts blinking fast means that it's successfully configured.
The problem is the iPhone I'm afraid. Apple don't implement the full suite of bluetooth protocols - one of the ones they haven't got is the serial over bluetooth that the eChook uses. As a result it will appear to any non-Apple device!
It sounds like everything is actually working - I'll update the documentation with a caveat about BT and apple devices!
|
|
|
Post by Rowan on Aug 12, 2019 12:02:27 GMT
Documentation updated
|
|
|
Post by colinm on Aug 12, 2019 12:14:20 GMT
No time like the present, 😊 I’ll get hold of suitable phone and give it a try. Thanks for your help.
|
|
|
Post by Rowan on Aug 12, 2019 13:37:30 GMT
No problem! Good luck with it - let us know how it goes
|
|
|
Post by colinm on Aug 12, 2019 15:28:15 GMT
Read your updated note regarding iphone/windows so was able to pair it on my PC so looking good. Cheers
|
|
|
Post by colinm on Aug 12, 2019 15:29:21 GMT
Do you know if there is any way to simulate android on a PC?
|
|
|
Post by Rowan on Aug 12, 2019 15:38:20 GMT
There's AVD - Android virtual device - that comes with Android SDK. Lets you run Android in a virtual machine. I'm not sure if you can get the Bluetooth forwarded to it though, I've never tried! If you want to see the data in windows you can try a little python app I wrote. It's incredibly basic but gives a data readout. github.com/eChook/Python-Serial-Interpreter
|
|
|
Post by colinm on Aug 17, 2019 19:29:07 GMT
Got hold of an android phone and now up and running. I used the FREEBOARD dashboard which is attached to DWEET and this is a piece of cake for remote reading (as a clanky mech eng, i found the NODERED a bit confusing). I'm now on to the current sensor. Can you confirm which pins on the sensor connect to which pins on the plug please. I did have it running for a few minutes (reading a bit low) but now the current is showing 168 A on the APP and is not affected by my adjustments. I'm using a 30A power supply with current limiting. Any suggestions?
|
|
|
Post by Rowan on Aug 17, 2019 19:36:03 GMT
Awesome! I'll be honest I thought freeboard had stopped working as a free service, I've been using just the dweet.io/see interface.
The node red option is a more complex one. Really powerful of you want to perform calculations on the data as it comes in, but there's a learning curve and some JavaScript knowledge is very useful.
Can't check the current pins immediately I'm afraid, I'll try do it tonight. With no current flowing there should be about 2.5v on both the sense and reference pins from the sensor. If you can see that on the input connector, then the problem is on the board, if not, it's on the sensor end. It sounds like you might have the sensor in short circuiting to 5v, or the sensor reference shorting to ground...
|
|
|
Post by colinm on Aug 18, 2019 8:59:37 GMT
HI, Ive got it working now (loose bit of solder) although the APP is showing around 1A below my measurement across the full range of 0-17A. I guess I need to calibrate. The voltage is not showing up although I don't have the "lower battery" connection in place yet, not sure if that would affect it?
|
|
|
Post by colinm on Aug 18, 2019 9:24:16 GMT
Did a calibration. Two meters reading 16.74 and 16.8 A on the supply and A2 pin reading .444V =37.16. Flashed Arduino and reading on APP still 16.0 A. Would sensor cable length and type make a difference?
|
|