-
• #2
Thr 2020.04.09
'I've been looking at the tutorials'
'I'm just not sure were to start'Hi @user111161, is the inquiry more on how to use/code Javascript, or how to interface with another device?
link you found
suggested order
http://www.espruino.com/Quick+Start+BLE
http://www.espruino.com/Web+Bluetooth
http://www.espruino.com/Home+Automation
Home Automation with Raspberry Pi, MQTT, and Espruino
http://www.espruino.com/Pixl.js+BLE+Ethernet+Bridge
Pixl.js Bluetooth to Ethernet MQTT Bridgeother Puck examples
http://www.espruino.com/BLE+Lightbulbs
http://www.espruino.com/BLE+Music+Control
http://www.espruino.com/DroidScript+Puck.js -
• #3
Thank you, I'll review the suggested link. I'm looking at how to interface the Puck.js with a Raspberry pi Zero using Bluetooth
-
• #4
I think you've basically got two options:
- Use Puck.js as a device like a keyboard, and use it to send a keypress that your code then acts on: http://www.espruino.com/BLE+Keyboard
- Have an app on the Pi that scans Bluetooth and then acts on the data received. There are a few ways to do that, but maybe the easiest is this one: https://www.espruino.com/BLE+Advertising
Hope that's some help!
- Use Puck.js as a device like a keyboard, and use it to send a keypress that your code then acts on: http://www.espruino.com/BLE+Keyboard
-
• #5
Thank you, this helps
working through the following example
https://www.espruino.com/BLE+Music+ControlsetWatch(function(e){ print(e.time - e.lasTime); }, BTN, { edge:"falling",repeat:true,debounce:50});
the puck returns "NaN" on press button, the puck is on 2v04
-
• #6
I figured out my mistake now works
Thanks
Hello, I was hoping to use a Puck.js to trigger a camera connected to Raspberry pi zero with WiFi/Bluetooth.
I've been looking at the tutorials and not knowing were to start. I'm guessing this should be possible, I'm just not sure were to start.
Thanks