Notifications
Clear all

I2C Raspberry Pi (master) with Arduino Mega devices and I2C LCD screens

22 Posts
3 Users
0 Likes
228 Views
(@scsiraidguru)
Member
Joined: 1 month ago
Posts: 59
Topic starter  

sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- 24 25 26 27 -- -- -- -- -- -- -- 2f
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 3f
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

The RPi 4B see the four LCD screen 24-27 and Two Mega 2F and 3F correctly for about a minute.  Then one of the LCD screen goes black and then

sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 08 09 0a 0b 0c 0d 0e 0f
10: 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f
20: 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f
30: 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f
40: 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f
50: 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f
60: 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f
70: 70 71 72 73 74 75 76 77

20240427 150751

When I connect them to the Bi-Directional Logic Level Converter, it sees none of the devices on the Arduino 5V side.  I can connect a single Mega to the I2C on the 3.3V side and it detects it.   Do they make an I2C Extender?  

 


   
Quote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7070
 

@scsiraidguru Do you mean a

TCA9548A I2C Multiplexer?

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7070
 

@scsiraidguru As far as the 'black' screen and the detect going crazy, maybe one of the many  connections on all those breadboard wiggled loose? Do you have the good boards made by BusBoard Prototype Systems?

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
(@scsiraidguru)
Member
Joined: 1 month ago
Posts: 59
Topic starter  

I did consider replacing my breadboards.  Those are a good brand

 


   
ReplyQuote
(@scsiraidguru)
Member
Joined: 1 month ago
Posts: 59
Topic starter  

Adafruit LTC4311 I2C Extender / Active Terminator - STEMMA QT / Qwiic

Product ID: 4756

   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7070
 

@scsiraidguru After reading a review I tried them and then threw out all my old boards and replaced them with those. I used to have constant problems with bad connections.

I also bought all new silicone jumper wires. A lot of the cheaper wires have poor quality wire to ending connections.

My time is far more valuable than the few dollars the new parts cost.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
(@scsiraidguru)
Member
Joined: 1 month ago
Posts: 59
Topic starter  

@zander I will look at getting them.  I have had many of those boards for 10+ years.  Lately, I hot glue them down instead of pulling the tape.   I want to get a 12V bench power supply.  Siglent has good products and support.  My scope is a Siglent 4 channel.


   
ReplyQuote
(@scsiraidguru)
Member
Joined: 1 month ago
Posts: 59
Topic starter  

https://siglentna.com/power-supplies/spd3303c-series-programmable-dc-power-supply/
SPD3303C: two channels 0-32V 0-3.2A, one channel 2.5,3.3, 5V @ 3.2A $299

I can power up Vin to 12V. 

Those breadboards can do 36V @ 2A. 


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7070
 

@scsiraidguru Mine are just loose, I only use a breadboard to quickly set up and test a circuit before committing it to some sort of permanent board.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
(@scsiraidguru)
Member
Joined: 1 month ago
Posts: 59
Topic starter  

I thought about building something permanent.   I want to find I2C daisy chain cables.  


   
ReplyQuote
(@scsiraidguru)
Member
Joined: 1 month ago
Posts: 59
Topic starter  

https://learn.sparkfun.com/tutorials/qwiic-multiport-hookup-guide/all
$2.10 each.


   
ReplyQuote
(@scsiraidguru)
Member
Joined: 1 month ago
Posts: 59
Topic starter  

QWIIC Star Sparkfun $3.47

image

five I2C devices connected together


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7070
 

@scsiraidguru Yes, but I don't need anything to do that, you only need that if you choose to use the expensive QWIIC connectors. I do NOT own any, and doubt I ever will.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
(@scsiraidguru)
Member
Joined: 1 month ago
Posts: 59
Topic starter  

@zander I plan on buying QWIIC sensors.   I bought 4 of them and the cables.  127 devices on the bus.  Multiple I2C buses available on Arduino and RPi.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7070
 

@scsiraidguru Woohoo, deep pockets.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
Page 1 / 2