Throughout the video voice over, I mistakenly refer to the BNO055 chip as a BNO005 chip. The correct naming is BNO055!
@jessebentlee95013 жыл бұрын
I know Im kinda off topic but do anyone know of a good website to watch newly released series online?
@jessebentlee95013 жыл бұрын
@Deacon Kameron Thank you, I signed up and it seems to work :) Appreciate it !!
@deaconkameron23083 жыл бұрын
@Jesse Bentlee You are welcome =)
@jonathancliffordrabe683 жыл бұрын
I think I have found my new favourite channel... He explains it so well, any level of experience can follow
@y2ksw13 жыл бұрын
This is the first review using C++ as programming language, my preferred.
@evansuits49263 жыл бұрын
Very VERY timely and helpful! I'm an Arduino hacker trying to get acquainted with this RPi stuff and tutorials like this are ideal for an old developer trying to cope with a new and unfamiliar set of tools. Your CMake boilerplate probably saved me days of aggravating trial and error. Count me among your grateful subscribers.
@LearnEmbeddedSystems3 жыл бұрын
Glad this video was helpful for you and saved you some time! I appreciate the support :)
@matthiassuess72933 жыл бұрын
Great overview of how to use the i2c interface with the c/c++ API of the Pico. Very well presented. Thank you!
@LearnEmbeddedSystems3 жыл бұрын
Thank you, glad the video was helpful!
@almostanengineer3 жыл бұрын
This was remarkably clearly explained, please do a video on different data types :)
@LearnEmbeddedSystems3 жыл бұрын
Glad you found the video helpful! Thank you for your suggestion, I will add it to a list of my upcoming videos
@justadude8716 Жыл бұрын
I'm learning I2C using the Pico and micropython and your video definitely helped me! I was surprised that the micro python and c functions are nearly identical apart from naming, and my next obvious step is implement what I wrote in C.
@acestudioscouk-Ace-G0ACE3 жыл бұрын
Nicely produced video and clearly explained. Thank-you. In my retirement I'm getting into electronics and you explained in a way this old guy could understand!
@LearnEmbeddedSystems3 жыл бұрын
Glad it was helpful for you! Welcome to the world of electronics :)
@RidingTheAlps153 жыл бұрын
Great thank you! I didn't realized how much of work (that can make really fun) has taken from coders when the Arduino setting came up with all the predefined libraries. Now I guess I definitely will use the C/C++ SDK for my 2nd Pico. Great video and series 👍
@LearnEmbeddedSystems3 жыл бұрын
I too enjoy working out how to get things working with out all those predefined libraries! Glad to hear you will be using the SDK on your next Pico!
@mustafaefecetin3 жыл бұрын
Nicely prepared source C/C++ SDK, I2C protocol, bitwise operations and sensor driver fundamentals. Thanks a lot
@paulgriffin85667 ай бұрын
Many thanks for a fantastic tutorial. A great explanation of I2C and C code to get me up and running. Very much appreciated.
@chirots2 жыл бұрын
To me, this code is just like alien language. Respect!!!
@H3liosphan3 жыл бұрын
Nice clear video, thanks! May I suggest a possible improvement, instead of printing an error in an infinite loop, it's a relatively simple change to encapsulate the chip ID check code inside the loop, then exit upon success. That way if you get your SCL & SDA wires mixed, which I invariably do, you don't have to reset the entire board to get it to work again, simply flip the wires and it'll begin working (yes even when plugged in, it's fine!). Same with the operational code to make it robust to I2C comms errors.
@LearnEmbeddedSystems3 жыл бұрын
These are great suggestions, Thank you!
@7GIGEO73 жыл бұрын
Excellent tutorial, thank you. I have been searching for some quality guides for RPi pico programming with C.
@LearnEmbeddedSystems3 жыл бұрын
Glad you have found my videos useful!
@MrPDawes3 жыл бұрын
Very clear presentation, however as a guy who uses assembler, relying on hardware to work is very dodgy practice and is not good for robust software. If the I2C device or bus fails your software will hang without so much as a howdy doody. Plus I2C devices are very slow compared to main microcontrollers and you usually want to be doing other things during each bit of data so is ideally handled in an interrupt. Such concepts may be too advanced to explain in 20 minutes here though so to being new to C on Pico, this is very good, thank you.
@sloshy18402 жыл бұрын
Very clear and crisp video.. Keep up the good work !
@jamesgoacher16062 жыл бұрын
I have found this extremely interesting and I think I will find it instructive for my own use.
@MagicPlants3 жыл бұрын
Watch at 1.25x speed (y) Excellent video!
@eriklundstedt94693 жыл бұрын
I'm interested in how to use the Pico with a hc06 or hc05 Bluetooth module Thanks for an awesome video
@jorgecosta47413 жыл бұрын
Thanks for the clear explanation. I wonder if you could do a video for I2S, I'm interested in using the Pico for audio, maybe for creating a modular synthesiser with each Pico being a module and I2S used to communicate between them.
@LearnEmbeddedSystems3 жыл бұрын
Great Suggestion! I will have a look into it :)
@theengineer99103 жыл бұрын
This is great ! I want to use a gyroscope with the VGA sprite library
@raisagorbachov2 жыл бұрын
Interesting. I can see you using one thing but I'd have liked to have seen a demonstration with two. Example, I have the BMP280, the user ID, the IIC I2C SPI MPU-6500 and the L76B. That's all aimed toward making a self-navigating drone. I might also add sonar. But I use Python not C.
@nicoladellino81242 жыл бұрын
Very nice video, TNX.
@dj1encore3 жыл бұрын
I appreciate your channel, there is not much content on the PI Pico writtern in "C", this may change now that the Arduino IDE is supporting the PICO. Would you consider doing a video on added a SPI Wiznet W5100 Ethernet Breakout board?
@LearnEmbeddedSystems3 жыл бұрын
Thanks for the feedback! I don't personally have one of those boards but if they aren't too expensive I can look into it
@robn2497 Жыл бұрын
10:26 regarding the code: reg, then read then write functions: I need some clarity please: Is this correct idea??? The write function points at register 0x00 holds the bus using "true", so when the read function executes its looking at reg 0x00. These functions are confusing: there is physical connection point to pico: i2c0, device address 0x28 in your case, then a buffer to store the read information: In my head it should be: i2c0, device address, register (we want to read), buffer (to store the read), ect. How do I point at the registers since read and write only have device, data or device, buffer???
@matteoo39233 жыл бұрын
Really interesting and well done guide. Can you share a MicroPython version too of the same tutorial?
@LearnEmbeddedSystems3 жыл бұрын
There is one in the works!
@javiers.82743 жыл бұрын
Very nice video! at 12:16 you mentioned a Binary but I just don get it, where you got it from? btw 0x40 is 1-000-000 in binary, is that what you meant? Thanks :D
@cheapnoiseinthehouse55782 жыл бұрын
Really nice video! Is I2C compatible with I2S? I have a I2S dac that I would like to huck up with the Pico. What should I do?
@raphaelkrauthann3981 Жыл бұрын
At 13:38 I am very confused about the data you are writing to the i2c. According to the specification, wouldn't this trigger a reset (0x40), and your next command trigger a self-test (0x01). Maybe you could clarify it for me, I am relatively new to this topic.
@cstanford80465 ай бұрын
Is the SCL really running at 400kHz? I doubt it. How about showing it on a logic analyzer?
@VasaMusic4383 жыл бұрын
great video!!!!!!!!!!!!!
@Morkiller3 жыл бұрын
Wow, crystal clear explanation, thanks for that content. One quick question, do you know if there's any chance to print through the micro-usb port from the raspberry pi pico?
@LearnEmbeddedSystems3 жыл бұрын
Glad you found the video helpful and clear! Yes you can print from the micro USB port over usb serial via the printf function (if I am understanding your question correctly). I have a video about USB serial on my channel which covers this.
@Morkiller3 жыл бұрын
@@LearnEmbeddedSystems no hahaha, I was talking about printing on a real printer, like actually printing on a paper, printing on a paper.
@nextlifeonearth3 жыл бұрын
@@Morkiller you're probably going to want to use a normal raspberry pi for that. Like one with an operating system.
@babursapayev1883 жыл бұрын
Thanks Bro, Cool Explanations. Bro we drag and drop code to the rasperry pi and the code works on it. And can we get back this code from pico? How we can protect our code? For example i heve writetten the code which is I don't want that other can copy my code. How we can block or protect our code? Thanks
@JRPW3 жыл бұрын
Thank you so much!!!
@mytechnotalent3 жыл бұрын
Will you be covering the SSD1306 display in C for the Pico at some future video?
@SuperMasteroff2 жыл бұрын
Traceback (most recent call last): File "", line 7, in IndexError: list index out of range please help
@mandyodd Жыл бұрын
Please let me know can you connect i2c device on pico debug port.
@JuddMan032 жыл бұрын
Does this mean you cant use two I2C devices with the same address?
@jcc4tube3 жыл бұрын
Does micropython on the pico support non blocking read/write functions? Maybe using DMA?
@Chinesejacklee4 ай бұрын
A question, at 13:01 mins, where is data[1]=0x40 from? Is 00100000 converted to 20 in hex? Should it be =0x20?
@andresmolentzov27373 ай бұрын
Actually 0X40 in binary is 01000000. That is, he is setting the bit 6 to 1 and it implies the to "reset interrupt status bits", the bit 7 is set to zero that implies to use the "internal oscillator" and all the other bits are set to 0 as well.
@andresmolentzov27373 ай бұрын
Notice that the bits are counted from 0 to 7.
@taranagnew4363 жыл бұрын
can you make a video about bit math and addresses?
@jameslewis7620 Жыл бұрын
Where can I buy a breadboard like yours?
@jyvben15203 жыл бұрын
keep the micropython uf2 close, could be useful to check if the i2c device is properly connected, only needs a few lines of code to scan the i2c bus, can be done in the repl ... i expect . bus 1, pin 2 sda/3 scl (board pin 4+5) or bus 0, pin 8 sda, 9 scl (board pin 11+12), or any other duo as seen on Raspberry-Pi-Pico-Pinout-Diagram.jpg
@LearnEmbeddedSystems3 жыл бұрын
Great idea! Let us know when you have worked out which pins to use
@jyvben15203 жыл бұрын
@@LearnEmbeddedSystems still waiting for the hardware, working with the pyboard-d for the moment
@y2ksw13 жыл бұрын
Could you consider to explain how the data IO works, for example by using 2 Pico's, one a host and one a client, or on itself. I am still confused about the bit order. Thanks!
@LearnEmbeddedSystems3 жыл бұрын
I can look into this and I might make a video regarding communication between two Picos. Thank you for your suggestion
@y2ksw13 жыл бұрын
@@LearnEmbeddedSystems Thanks! 👍
@carsonlaudadio74644 ай бұрын
Does anyone Haha e the issue ‘module ‘board’ has no module I2C’ ? I am running a Pi 4, and using Python. Strangely enough the exact same file works on my other Pi.
@Gigiska24 күн бұрын
If you are in python i think you should use i2c of busio
@jamesgardiner71963 жыл бұрын
It would be interesting to see this basic code turned into a library with a cpp and .h file
@LearnEmbeddedSystems3 жыл бұрын
Which part are you referring too, the general i2c communication or the BNO005 functions? I will have a look into putting the I2C code into a simple library but I am sure someone will have beaten me to it!
@jamesgardiner71963 жыл бұрын
@@LearnEmbeddedSystems i2c (or spi) communications into a library using VS code and Pico
@eFeXuy3 жыл бұрын
Can you make a video on how to debug the Pico via the SWD port?
@LearnEmbeddedSystems3 жыл бұрын
I am having problems myself trying to debug the Pico directly from a PC. It is currently working fine using another Pico but not directly to a PC. When I solve this, I will be sure to make a video covering this. Thank you for your suggestion!
@user-um3ui1gu9t3 жыл бұрын
Every C compiler knows about binary representation !
@edwardarruda72153 жыл бұрын
Can you plot via .csv?
@LearnEmbeddedSystems3 жыл бұрын
Yes this is completely possible, and fairly simple to do! If you are using PuTTY you can use the logging function to directly save the output as a CSV. This tutorial is for an arduino but is practically the same for the Pico: www.circuitbasics.com/logging-arduino-data-to-files-on-a-computer/
@VasaMusic4383 жыл бұрын
what about MIDI by USB ??
@LearnEmbeddedSystems3 жыл бұрын
I have no personal experience using MIDI on the Pico, if I end up looking into it, I might make a video regarding this. Thank you for the suggestion