Raspberry Pi Pico I2c (IIC) and Arduino part 1

Поділитися
Вставка
  • Опубліковано 17 жов 2024
  • 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
    @mgutay 7 місяців тому +1

    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.

  • @razaula
    @razaula Рік тому +1

    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  Рік тому +1

      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.

  • @plankalkulcompiler9468
    @plankalkulcompiler9468 10 місяців тому

    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  10 місяців тому

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

  • @jimmy0tran
    @jimmy0tran 2 роки тому +1

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

    • @CircuitSecrets
      @CircuitSecrets  2 роки тому +3

      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 Рік тому +1

      @@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  Рік тому +1

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

    • @mikegeo408
      @mikegeo408 Рік тому +1

      @@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  Рік тому +1

      @@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.

  • @sanjikaneki6226
    @sanjikaneki6226 2 роки тому +1

    What about SPI on RP2040 PICO ?

  • @jesseymontgomery7522
    @jesseymontgomery7522 Рік тому +2

    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  Рік тому +2

      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. ua-cam.com/video/5HV55mwY33Q/v-deo.html