Puck.js v 2.1 a not turning on #4123
Replies: 1 comment
-
Posted at 2023-01-11 by @gfwilliams Hi, The red flash when the battery is inserted seems like a good sign...
You need to hold the button down while you insert the battery. Pressing the button after the battery is inserted will have no effect. Could that be the problem?
The Pucks should be recognized out the box once the red LED has flashed. Do you have an Android phone/tablet or some other computer you could try? It's possible that there is some configuration issue on the PC you are using. If there are still issues, please could you record a video or how you do the reset and also what happens on the PC when you go to connect? Posted at 2023-01-11 by user152341 Thanks very much for that quick response ... and pressing the button while putting the baattery back in DID give me a flash of all the leds and then, only once, continued with a flaash of the green LED three times. I guess I missed or misunderstood the need to press the button AS the battery is being inserted. The puck still isn't recognized by my chromebook's pairing but it is recognized by my samsung phone ... although the phone says I need an app to use the device ... and also by the espruino web ide. Thanks! Do you know if there's an espruino version of the madgwick ahrs protocol? Do you know the firmware upgrade method? I'll look in the docs as well. Thanks again! Posted at 2023-01-13 by @gfwilliams
Ok - so the green LED flash 3 times means it's started up into Espruino and hasn't loaded any code. If you let go of the button as soon as any lights light up, you'll enter bootloader mode (green LED on solid). Which I think is what you need to do to solve the other issue you posted: https://forum.espruino.com/conversations/382940/#comment16827704
You need to hold the button down, then insert the battery with the button still held... But to just use the Puck normally, holding the button isn't needed. Once the red LED flashes you should be ok to connect.
No, it won't be. You need to go to espruino.com/ide and then connect from there - do not pair it from the OS bluetooth menu - and if you have done, you need to unpair it. There is a tutorial on getting started at https://www.espruino.com/Quick+Start+BLE#puckjs and I think it'd be worth going through that step by step
For do you mean https://github.com/arduino-libraries/MadgwickAHRS/blob/master/src/MadgwickAHRS.cpp ? I'm not aware of an implementation but the code there looks quite straightforward (just a bunch of maths) so it would be almost copy/paste to get it running in Espruino (change Posted at 2023-01-13 by @gfwilliams I've just converted the Madgwick code:
If this works ok I'm very happy to turn it into a library. It seems to work well here - if anything it's just a shame that there's no absolute position measurement built in here - but the actual roll/pitch/yaw looks like it works ok Posted at 2023-01-14 by user152341 WoW! Thanks So much for all of this great help! I'm working on getting the puck recognized in SensiML Data Capture Lab today. Posted at 2023-01-17 by user152341 Had stumbled upon this in the mean time. Seems to include a three.js visualizer and to use a serial interface. Haven't looked thur it. Just passing along the info. https://github.com/ZiCog/madgwick.js Posted at 2023-01-17 by user152341 It appears I need to do a custom device setup to interface with the SensiML Data Capture Lab. Looking into how to do that. So far, it seems I need to create a config file with BLE gatt info for the services to be monitored. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-01-11 by user152341
The red led flashes when the battery is inserted but pressing the button doesn't give a green LED ... or any other response ... and the puck is not recognized by my web-bluetooth-compatible computer.
I ordered the two pucks in 11/2021 and this was their behavior when I first received them so I set them aside and abandoned the intended use.
I'd like to get back to that project ... but the recommended reset and hard reset methods have no effect.
The pucks recognize the battery ( properly inserted via the docs) and the red LED flashes ... but that's all I get.
Is there some different reset method ... a way to see if these aren't actually DOA?
Any help/response appreciated.
Beta Was this translation helpful? Give feedback.
All reactions