Deep Dive w/Scott: WebBluetooth #adafruit

Deep Dive w/Scott: WebBluetooth #adafruit

Subscribers:
459,000
Published on ● Video Link: https://www.youtube.com/watch?v=lS8eJsIYYno



Duration: 2:13:51
1,617 views
42


Join Scott as he answers questions and works on https://code.circuitpython.org which talks to CP devices over WebBluetooth.

I’m sponsored by Adafruit to work on CircuitPython. Support them, and by extension me, by purchasing hardware from https://adafruit.com

Chat with me and lot of others on the Adafruit Discord at https://adafru.it/discord.

Deep Dive happens every week. Normally Fridays at 2pm Pacific but occasionally shifted to Thursday at 2pm. Typically goes for two hours or more. Questions are welcome.

Thanks to David (dcd) for taking timecodes.

0:00 Getting Started
0:04:00 Hello everyone
0:08:56 Intro to bluetooth
0:09:57 WebBLE - spoiler (android phone/ experimental API)
0:11:27 Makerdiary serial console web device CLI
0:12:47 chrome::/inspect/#devices ( mirror phone screen web page )
0:14:54 repl is working
0:17:47 code.circuitpython.org
0:19:01 prompt to start advertising yellow / fast blue / solid blue - broadcast publicly
0:19:52 pair serpi / bond
0:21:38 debugging output on the right
0:22:27 edit code in web page - using emoji as variable names!
0:24:41 “editing code from phone”
0:25:29 What would be the difference with linux?
0:26:16 Could something like this be replicated using ble cli tools in linux?
0:27:00 Adafruit_CircuitPython_BLE_File_Transfer repo
0:27:45 circuitpython/web-editor repo
0:28:00 adafruit/ble-file-transfer-js
​0:29:00 works in Chrome then it should work in Deno ... As that's V8 under the hood and they are making their JavaScript isomorphic. (Works in browser, works in Deno.)
0:30:00 - CP save button - use timer instead
0:30:45 codemirror.net/6 editor
0:31:40 https://deno.land/
0:32:59 Does code mirror handle python/ stubs?
0:34:10 use absolute latest CP from amazon and NRF 8240(Sp)
0:35:21 nice to add autocomplete
0:35:45 now, to test it on the Micro:bit v2
0:36:40 device disconnects after writes
0:37:10 some code outthere to user antlr with Monaco, since antlr can generate parsers in many languages including JS and TS
0:37:30 there is a python parser in codemirror
0:37:52 microbit V2
0:39:15 that’s how you know you are in a deep dive - when alpha 3 is too old
0:40:45 new git microbitv2 repo
0:42:10 CircuitPython Online Editor
0:42:45 JS question - how to show a file directory
0:44:00 microbit v2 cpu nRF52833
0:47:00 CIRCUITPY_CREATOR / CREATION_ID
0:47:18 searching for microbit v2 schematic from tech.microbit.org/hardware/schematic
0:50:20 schematic displays MicroBit_V2.0.0_S_schematic.PDF
0:51:40 Where can I find documentation on Adafruit_PIOasm? - readthedocs.io pioasm latest
0:55:11 edit the pinouts on Expansion connector
0:57:14 how microbit references the pins and map them to CP internal names
0:57:40 and buttons - to match board creators documentation
0:58:59 microbit documentation
1:00:25 Edge connector pins
1:02:15 If the MicroBit v2 doesn't expose USB, how does one install CircuitPython onto it? Does it have a Bluetooth-enabled bootloader?
1:04:43 make -j 32 BOARD=microbit_v2 ( fix errors )
1:09:10 this is the first time we built CP Non-usb BLE only device
1:11:20 how to send data over laser.. Is PWM the way to go?
1:13:30 resolve linker undefined symbols
1:15:45 this is the birth of USB-less CP
1:22:35 always a good idea to do a make clean and try again when experiencing CP build problems
1:26:30 Serial_write_substring undefined
1:28:00 ​you can't raise an exception from boot py / goes to boot.out
1:36:00 - it’s too big :-(
1:39:00 review the configuration flags
1:41:45 play the make it fit game - turn off POW3
1:43:20 ​Is your USB / BT a subset of something else? So you can access it through another doorway?
1:43:48 - got 500 bytes back
1:45:48 look what does the “simmel” do -Os
1:46:45 nrf52833 flash size (- 512KB Flash )
1:47:50 Refer to the linker file template common.lk
1:50:30 What is that magic optimization and why would it not always be enabled?
1:53:40 What is soft device ( binary blob from nordic )
1:55:40 using S140 SoftDevices https:nordicsemi.com/products/nrf52833
1:58:00 Consider peripheral only / what is S113 size
2:00:00 Soft device memory resource map
2:02:35 softdevice provided by Dynastream ( thisisant.com )
2:04:37 S140 release notes
2:07:57 end by trying out the binary
2:08:13 not sure if downloading the hex file did anything
2:09:14 next step - connect a debugger
2:10:45 microbit will take some more work
2:11:45 wrap up
2:13:48 -bye all

-----------------------------------------
LIVE CHAT IS HERE! http://adafru.it/discord

Adafruit on Instagram: https://www.instagram.com/adafruit

Subscribe to Adafruit on YouTube: http://adafru.it/subscribe

New tutorials on the Adafruit Learning System: http://learn.adafruit.com/
-----------------------------------------




Other Videos By Adafruit Industries


2021-07-07JP's Product Pick of the Week 2.13" E-Ink Breakout @adafruit @johnedgarpark #adafruit
2021-07-073D Hangouts - Kitty Paw, MacroPad and Marble Toy
2021-07-07Modal MIDI keyboard jam @adafruit @johnedgarpark #adafruit #midi
2021-07-06Kitty Paw Keypad #3DPrinting #CircuitPython #macropad #DIY
2021-07-06Kapton Tape - Collin’s Lab Notes #adafruit #collinslabnotes
2021-07-06John Park's CircuitPython Parsec: Rotary Encoder @adafruit @johnedgarpark #adafruit #circuitpython
2021-07-06JP’s Product Pick of the Week 7/6/21 E-Ink Breakout @adafruit @johnedgarpark #adafruit
2021-07-06CircuitPython Weekly for 6 July 2021 @circuitpython #circuitpython #adafruit
2021-07-06The Great Search - Tapes & Tubes, oh my!
2021-07-05Print in Place Marble Toy #Timelapse #3DPrinting #adafruit
2021-07-02Deep Dive w/Scott: WebBluetooth #adafruit
2021-07-01New Products 06/23/21 feat. Gray Anodized Aluminum Bumper Feet - Pack of 2!
2021-07-01LiPo Longevity - Collin’s Lab Notes #adafruit #collinslabnotes
2021-07-01JOHN PARK'S WORKSHOP LIVE 7/1/21 Macropad Intro @adafruit @johnedgarpark #adafruit
2021-07-01This is not associated with LEGO - Wireless NeoPixel brick ...
2021-07-01Fusion 360 Tutorial – Layer by Layer – Sweeping Snap Fits
2021-07-01EYE ON NPI - Digi-Key Electronics Innovation Handbook #EYEonNPI #DigiKey @DigiKey @Adafruit
2021-07-01Adafruit Top Secret! June 30, 2021 #Adafruit #AdafruitTopSecret @Adafruit
2021-07-01Python on Hardware weekly video 139 #CircuitPython #Python #MicroPython @Adafruit
2021-07-01Made in NYC 6/30/2021 Featuring Adafruit MACROPAD RP2040 and the Visual Gold Book
2021-06-30ASK AN ENGINEER 6/30/2021 LIVE!



Tags:
adafruit
electronics
diy
arduino
hardware
opensource
projects
raspberry
pi
computer
raspberrypi
microcontrollers
limor
limorfried
ladyada
STEAM
STEM
python
microbit
circuitpython
neopixel
neopixels
raspberry pi
circuitplaygound
nyc
make
makers
micro:bit
adafrit
adafruit promo code
ada fruit
adafruit coupons
raspberry pi zero
micropython
machine learning
ai
tensorflow