Deep Dive w/Scott: ESP-IDF 5.0 pulseio updates #adafruit
Join Scott as he tests and debugs ESP-IDF 5 API updates to pulseio.
Visit the Adafruit shop online - http://www.adafruit.com
Thanks to dcd for the time codes.
0:00 getting started
3:09 hello and welcome
7:35 IDEs and Languages
8:52 CP (Circuit Python) provides documentation (board stubs) that can assist module completion
10:20 learn.adafruit.com ( search for pycharms or Mu Editor ) https://learn.adafruit.com/welcome-to-circuitpython/pycharm-and-circuitpython
12:15 Looking for webcams that work better - to replace unreliable 'catcam'
12:57 wirecutter webcam searches
15:21 Abnker PowerConf C200 2K / 1080P
18:07 Sony camera running HDMI
18:42 New Graphics card - Radion 6600 ( 7000 is newest )
21:10 lsusb listing out camers
22:30 discussion pixelation of sony webcam
24:10 explore documentation for adafruit 'spycam' ( product 1937 )
32:25 working on implementers guide for pulseio in learn.adafruit.com
36:00 discussion of UK resellers of adafruit products
36:55 Test Pulse in with PWM out ( and visa versa )
37:20 (also ESP IDF API calls changed)
39:29 ESP Devkit S3 Mini 1-N8 with dual USB - debug print out (serial uart) and native usb on other USB channel
43:34 desktop setup
45:45 rebooting / autoconnect to wifi / and testing pulsein
46:00 infrared receivers use pulsein
48:25 pulsein is hi and lo pulse of waveform ( servo's use duty cycle )
49:35 trying to test free running in in microsecond
51:40 explore C code _done_callback in Pulsein.c
54:00 ( future project use a dedicate Pi to collect logic analyzer data ) or use scope
56:00 add ESP_EARLY_LOGI to observe data
59:13 menuconfig edits sdk config into the IDF at build time
1:00:56 check out the bug fix ( test and log messages 'all good' )
1:01:30 barcode reader and keycode translation
1:03:32 now to test pulseout
1:04:29 levels seem to be swapped ( only getting one symbols )
1:05:22 code.py pulseio.PulseIn API
1:08:40 now we get symbol count of 2!
1:11:27 already tested neopixel - new rmt version didn't fix neopixel flickering.
1:14:45 now we get the 2 symbols
1:16:20 will use NeoPixel 332 LED-per-Meter 0.5 meter for testing ( product 4865)
1:17:38 add code to pulseio Pulsein.c
1:19:38 S2 vs. S3 with LED speed discussion
1:22:54 changes still not working
1:24:00 verified previous fix is working
1:24:58 add new code into learn guide ( like adafruit playground )
1:26:00 adafruit-playground.com
1:28:35 using learn guide editor to add markdown information on Test free-running mode
1:30:15 chaining / catching errors from code.py ( supervisor.set_next_code_file api )
1:33:00 also discuss savemode.py ( see Dan's save-mode learn guide )
1:35:05 discuss testing issues that need to run for a long before
1:36:00 backtrace on exceptions ( not hard faults )
1:36:43 sparkfun openLog Artemis and family
1:38:07 general logging / printf debugging
1:39:25 another PulseOut test case
1:40:00 peak at docs.circuitpython.org for pulseio
1:42:10 save new code.py and retest, but it ran too quickly
1:43:00 try another way
1:43:51 better logging issue
1:44:46 numbers are not quite spot on (plus or minus two is more than enough)
1:47:00 why did we get other extra 'noise' pulses?
1:49:00 if pulse is too long we get overflow
1:52:50 document that maxlen must be even
1:55:00 add an ValueError exception if maxlen is odd
1:57:00 string translation process ( WebLate )
2:01:20 issues with using popLeft - thinking it through
2:02:30 we don't want to actually implement the ValueError
2:04:53 wrap up
2:06:30 devkit identifications devkit C and Devkit M
2:07:33 espressif.com harware devkits both C and M for ESP C series https://www.espressif.com/en/products/devkits
2:09:30 Polystack project history :-)
2:10:00 Extra long pulses unexpected ( but at least it isn't crashing )
2:11:35 save code in learn guide
2:11:45 next test will be to check carrier - the countio, rotario, then busio
-----------------------------------------
LIVE CHAT IS HERE! http://adafru.it/discord
Subscribe to Adafruit on YouTube: http://adafru.it/subscribe
New tutorials on the Adafruit Learning System: http://learn.adafruit.com/
-----------------------------------------