Raspberry Pi Pico I2c (IIC) and Arduino part 1

Тәжірибелік нұсқаулар және стиль

In this video I show you how to scan 2 I2c (IIC)ports at once, the basics of I2c(IIC) on the raspberry pi pico and pico w on the arduino IDE.
The demonstration project is an I2C port scanner that scans both ports.
The source files are available at www.circuitsecrets.com

Пікірлер: 31

  • @mgutay
    @mgutay3 ай бұрын

    Thansk for the great video. I've only worked with high level languages like python and matlab and your explanations made this c code super understandable.

  • @CircuitSecrets

    @CircuitSecrets

    3 ай бұрын

    Thank you!

  • @plankalkulcompiler9468
    @plankalkulcompiler94687 ай бұрын

    Great video! Can I switch to different pins for i2c0 and i2c1 that we defined at void setup? Like in void loop can I define different Wire and Wire1 pins to use different devices on the same i2c channels?

  • @CircuitSecrets

    @CircuitSecrets

    7 ай бұрын

    Each device has its own address, you can access multiple devices on each channel.

  • @razaula
    @razaula Жыл бұрын

    Will this setup work to configure Adafruit’s 1.2” 4 digit 7 segment display? Adafruit is using a ht16k33 i2c backpack and I’m trying to use it with a raspberry pico. Thanks for the video!

  • @CircuitSecrets

    @CircuitSecrets

    Жыл бұрын

    I am not really familiar with that module. The biggest hang up I can think of is the default I2c pins in their library which I have not looked at. You will have to use a library for that specific module, but the examples in this series will at least show you how to find the address for the module.

  • @razaula

    @razaula

    Жыл бұрын

    I am kinda confused with the wiring. Would I connect both the raspberry pico and the peripheral (i2c module) like how I would normally and run the port scanner code from there?

  • @CircuitSecrets

    @CircuitSecrets

    Жыл бұрын

    @@razaula Yes just set the pins of the scanner code to the pins you are using, set the SDA and SCL inside setup.

  • @jesseymontgomery7522
    @jesseymontgomery7522 Жыл бұрын

    Good video I'm guessing for the very experienced programmers that understands all the nuts and bolts but way too much information for the inexperienced hobbyist in a how to video. I don't need to know all the inner workings, it just confusses me, I just need a quick guide that'll get the lcd up and working...

  • @CircuitSecrets

    @CircuitSecrets

    Жыл бұрын

    This video covers most of the features of I2c for the raspberry pi pico and details a dual I2c port scanner. It is an in depth look at I2C on the Raspberry pi pico. Here is a link to one that covers an oled which may help. kzread.info/dash/bejne/Z3yKl5emp7yZY7Q.html

  • @sanjikaneki6226
    @sanjikaneki6226 Жыл бұрын

    What about SPI on RP2040 PICO ?

  • @CircuitSecrets

    @CircuitSecrets

    Жыл бұрын

    I hope to explore that soon.

  • @jimmy0tran
    @jimmy0tran Жыл бұрын

    Hi. I get this error class arduino::MbedI2C' has no member named 'setSDA' What do you think is going on?

  • @CircuitSecrets

    @CircuitSecrets

    Жыл бұрын

    This is the result of using the arduino stock mbed library for the raspberry pi pico instead of the rp2040 library by Earl F Philhower. The Philhower library has better support for most features of the raspberry pi pico.

  • @mikegeo408

    @mikegeo408

    Жыл бұрын

    @@CircuitSecrets I was having a problem compiling your code until i read your reply. I learned a lesson today. Read the comments lol. Thanks

  • @CircuitSecrets

    @CircuitSecrets

    Жыл бұрын

    @@mikegeo408 You are welcome! I'm glad you got it working!

  • @mikegeo408

    @mikegeo408

    Жыл бұрын

    @@CircuitSecrets I have not fully tested it yet in a cb radio. I noticed the sketch in the video is slightly different than the sketch on your webpage. Do you have a sketch for the rotary encoder on a pico?

  • @CircuitSecrets

    @CircuitSecrets

    Жыл бұрын

    @@mikegeo408 Yeah I did a couple of revisions I think its improved. No I have not done the encoder for the pi yet only the Arduino pro mini.

Келесі