The Factory | Device drivers with Raspberry Pi Pico PIO

  Рет қаралды 5,711

Core Electronics

Core Electronics

Күн бұрын

The Raspberry Pi Pico has a wonderfully flexible feature called PIO that we can use to craft custom, non-blocking device drivers. We're working on a new load-cell ADC project in #TheFactory, and the serial protocol is a little unusual - the perfect case for PIO! We'll walk through the protocol and show you what we came up with.
If you have any questions about this content or want to share a project you're working on head over to our maker forum coreelec.io/forum
Core Electronics is located in the heart of Newcastle, Australia. We're powered by makers, for makers. Drop by if you are looking for:
• Raspberry Pi core-electronics.com.au/raspb...
• Arduino core-electronics.com.au/ardui...
• Sparkfun core-electronics.com.au/brand...
• Adafruit core-electronics.com.au/brand...
• Pololu core-electronics.com.au/brand...
• DFRobot core-electronics.com.au/brand...
The following trademarks are owned by Core Electronics Pty Ltd:
"Core Electronics" and the Core Electronics logo
"Makerverse" and the Makerverse logo
"PiicoDev" and the PiicoDev logo
"GlowBit" and the GlowBit logo

Пікірлер: 17
@andrewowens5653
@andrewowens5653 2 жыл бұрын
Thanks guys, I was literally just about to start working on that code for that sensor for a project I'm working on. I turned on KZbin and it was magically at the top of the page. Cheers!
@aakashjana6225
@aakashjana6225 Жыл бұрын
Machine Learning magic after all!
@WACkZerden
@WACkZerden Жыл бұрын
cool demonstration!
@romiolover6852
@romiolover6852 2 жыл бұрын
Great tutorial.
@MrAlFuture
@MrAlFuture Жыл бұрын
This was great! I'm a bit late seeing it but that was such a clear, useful and practical explanation and example of writing for and using the PIO for good. Thanks!
@Core-Electronics
@Core-Electronics Жыл бұрын
Glad you enjoyed! PIO is pretty esoteric, so it's nice to have plenty of practical examples out there 😀
@andrewowens5653
@andrewowens5653 2 жыл бұрын
Perhaps you can do a quick follow-up video on how to use multiple load cells together. In other words is there a way to wire up the load cells to a single analog to digital converter chip?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Hey Andrew 😃 If you want to read separate load cells individually it would be best to use separate ADCs. Multiple instances of this state machine can be instantiated to handle multiple ADCs. Otherwise - If you want to read multiple load cells and *combine them for a single weight* look into using a "combinator". These are used when you want to measure the weight of a load, but you can't guarantee it'll be placed in the exact middle of a scale's tray.
@gautombose4172
@gautombose4172 2 жыл бұрын
Multiple Analog Load cells connect together (shunt), via a junction box, as simple as that. What I would like to know is, "can the HX710/HX711 be in the heart of a Weighbridge/Large Platform, Indicator (using 4 to 6 load cells)?"
@mohinderkaur6671
@mohinderkaur6671 Жыл бұрын
Link to the PIO code for this please!
@victorldunn9638
@victorldunn9638 2 жыл бұрын
"finely calibrated thumb" 😂
@RamjetX
@RamjetX 2 жыл бұрын
I haven't yet tried... but I'm assuming you can sm.active(0) to stop the state machine. And perhaps then reassign new SM function by having a different ASM def for the PIO and ... re-initialise the sm again with the line 24 init sequence but reference a new Def for the PIO to change function? Is that possible?
@gautombose4172
@gautombose4172 2 жыл бұрын
Thank you for this excellent video. This is raw data with no feedback (such as in Sigma Delta Converter). Is it possible to introduce some sort of Software Digital Filter, (such as rollover averaging filter etc) to make the data more tame. Should one wishes to make a weighing scales using HX710C/HX711, how many parts accuracy can one expect ?
@gautombose4172
@gautombose4172 2 жыл бұрын
Just wondering if the program is trying to read the Data at the very instance it makes the Clock Low. Perhaps, you could demonstrate that it makes no difference, if you put an additional delay [1] when you make the clock low and then, read the Data Pin. If you change the code slightly, e.g. ..... nop() .side 0 [1] and the on the next line write .... in(pins,1). It may be possible to see, the result, on the scope on the screen.
@gautombose4172
@gautombose4172 2 жыл бұрын
Can you do video on RPI Pico C/C ++ debug under window10, that works?
@MichaelKingsfordGray
@MichaelKingsfordGray 2 жыл бұрын
Dreadful coding!
@digmatology
@digmatology 2 жыл бұрын
Sorry unsubing every channel until the dislike button works again. No dislike? No like!
PicoMite: Running BASIC on a Raspberry Pi Pico
19:29
ExplainingComputers
Рет қаралды 145 М.
Arduino vs Pico - Which is the Best Microcontroller For You?
20:38
Gary Explains
Рет қаралды 287 М.
Smart Sigma Kid #funny #sigma #comedy
00:25
CRAZY GREAPA
Рет қаралды 38 МЛН
DAD LEFT HIS OLD SOCKS ON THE COUCH…😱😂
00:24
JULI_PROETO
Рет қаралды 13 МЛН
Llegó al techo 😱
00:37
Juan De Dios Pantoja
Рет қаралды 22 МЛН
In-depth: Raspberry Pi Pico's PIO - programmable I/O!
17:19
stacksmashing
Рет қаралды 130 М.
#370 Raspberry Pi Pico vs ESP32 (-S2) and STM32 Blackpill
15:53
Andreas Spiess
Рет қаралды 386 М.
Raspberry Pi Pico - PIO explained
50:01
Slador
Рет қаралды 27 М.
The Raspberry Pi Pico WAS Overrated! But that changed!
10:18
GreatScott!
Рет қаралды 598 М.
Raspberry Pi  Pico PIO  - 8 Little Processors You Can Program
31:55
Gary Explains
Рет қаралды 89 М.
#220 PICO and PIO: First Look - far easier than you might 💭 think
21:51
Raspberry Pi Pico W: Wireless Weather Station
17:13
ExplainingComputers
Рет қаралды 282 М.
Raspberry Pi Pico Clone with 16MB Flash, USB-C, Neopixel, and More!
8:31
How to use HX711 with Four Load Cells
16:18
Robot Research Lab
Рет қаралды 46 М.
Smart Sigma Kid #funny #sigma #comedy
00:25
CRAZY GREAPA
Рет қаралды 38 МЛН