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
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.
Thank you!
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!
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.
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?
@@razaula Yes just set the pins of the scanner code to the pins you are using, set the SDA and SCL inside setup.
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?
Each device has its own address, you can access multiple devices on each channel.
Hi. I get this error
class arduino::MbedI2C' has no member named 'setSDA'
What do you think is going on?
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.
@@CircuitSecrets I was having a problem compiling your code until i read your reply. I learned a lesson today. Read the comments lol. Thanks
@@mikegeo408 You are welcome! I'm glad you got it working!
@@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?
@@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.
What about SPI on RP2040 PICO ?
I hope to explore that soon.
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...
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