• Raspberry pi 3b+ i2c

    From Christian Happ@21:1/5 to All on Fri Oct 22 20:10:02 2021
    This is a multipart message in MIME format.

    Hello,



    I have installed debian 11 (Bullseye) 64 on my RPI 3b + and want to use the
    i2c bus on the GPIO pins.



    Is there a tutorial that covers installing the necessary files?





    Greetings,

    Christian


    <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META
    HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
    /* Font Definitions */
    @font-face
    {font-family:Calibri;
    panose-1:2 15 5 2 2 2 4 3 2 4;}
    /* Style Definitions */
    p.MsoNormal, li.MsoNormal, div.MsoNormal
    {margin:0cm;
    margin-bottom:.0001pt;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-fareast-language:EN-US;}
    a:link, span.MsoHyperlink
    {mso-style-priority:99;
    color:blue;
    text-decoration:underline;}
    a:visited, span.MsoHyperlinkFollowed
    {mso-style-priority:99;
    color:purple;
    text-decoration:underline;}
    pre
    {mso-style-priority:99;
    mso-style-link:"HTML Vorformatiert Zchn";
    margin:0cm;
    margin-bottom:.0001pt;
    font-size:10.0pt;
    font-family:"Courier New";}
    span.E-MailFormatvorlage17
    {mso-style-type:personal-compose;
    font-family:"Calibri","sans-serif";
    color:windowtext;}
    span.HTMLVorformatiertZchn
    {mso-style-name:"HTML Vorformatiert Zchn";
    mso-style-priority:99;
    mso-style-link:"HTML Vorformatiert";
    font-family:"Courier New";
    mso-fareast-language:DE;}
    span.y2iqfc
    {mso-style-name:y2iqfc;}
    .MsoChpDefault
    {mso-style-type:export-only;
    font-family:"Calibri","sans-serif";
    mso-fareast-language:EN-US;}
    @page WordSection1
    {size:612.0pt 792.0pt;
    margin:70.85pt 70.85pt 2.0cm 70.85pt;}
    div.WordSection1
    {page:WordSection1;}
    </style><!--[if gte mso 9]><xml>
    <o:shapedefaults v:ext="edit" spidmax="1026" />
    </xml><![endif]--><!--[if gte mso 9]><xml>
    <o:shapelayout v:ext="edit">
    <o:idmap v:ext="edit" data="1" /> </o:shapelayout></xml><![endif]--></head><body lang=DE link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE'>Hello,<o:p></o:p></span></p><p class=
    MsoNormal><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE'>I
    have installed debian 11 (Bullseye) 64 on my RPI 3b + and want to use the i2c bus on the GPIO pins.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE'><o:p>&nbsp;</o:p></
    span></p><p class=MsoNormal><span lang=EN style='font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE'>Is there a tutorial that covers installing the necessary files?</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial",
    "sans-serif";mso-fareast-language:DE'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-family:"Arial","sans-serif"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-family:"Arial","sans-serif"'><o:p>&nbsp;</
    </span></p><p class=MsoNormal><span lang=EN-GB style='font-family:"Arial","sans-serif"'>Greetings,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB style='font-family:"Arial","sans-serif"'>Christian<o:p></o:p></span></p></div></body></html>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Gene Heskett@21:1/5 to All on Fri Oct 22 22:40:03 2021
    On Friday 22 October 2021 13:50:20 Christian Happ wrote:

    Hello,



    I have installed debian 11 (Bullseye) 64 on my RPI 3b + and want to
    use the i2c bus on the GPIO pins.

    I2C can probably be done, but its not I2C thats the star on gpio pins,
    its SPI, which can talk to a peripheral at 41 something megabaud using a
    32bit packet format, and reading the 32 bit packet response at 25
    megabaud. On either a pi3b or a pi4b.

    It does use transmission line critical terminations but in 4 years of
    running a 1500 lb industrial lathe with it, I have yet to log a mistaken packet.

    Is there a tutorial that covers installing the necessary files?

    Get a modified buster install for arm64 dvd iso from linuxcnc.org is one possibility, but you'll need a preempt-rt kernal, but I am useing a pi
    built realtime preempt kernal on a raspian buster install.

    I have spare blood, so I'm also running the master version of LinuxCNC,
    updated at least daily, either self built from github, or from the
    linuxcnc buildbot. Its pretty easy, the surprise to most is that I'm 87
    yo.

    Here is the sign--on showing the com rates when talking to a mesa 7i90HD interface card over that SPI bus:
    pi@rpi4:/media/pi/workspace $ linuxcnc -l
    LINUXCNC - 2.9.0-pre0-4830-gfaab5f10e
    Machine configuration directory
    is '/home/pi/linuxcnc/configs/sheldon-lathe'
    Machine configuration file is '7i90-axis.ini'
    Starting LinuxCNC...
    Found file(REL): ./hm2-7i90-stepper.hal
    Note: Using POSIX realtime
    hm2: loading Mesa HostMot2 driver version 0.15
    hm2_rpspi: Platform: Raspberry Pi 4 Model B Rev 1.1
    hm2_rpspi: Base address 0xfe000000 size 0x01800000
    hm2_rpspi: Mapped peripherals from 0xfe000000 (size 0x01800000) to gpio:0x0xb4200000, spi:0x0xb4204000, aux:0x0xb4215000
    hm2_rpspi: SPI0/CE0 clock rate: 41666000/25000000 Hz, VPU clock rate:
    500000000 Hz
    hm2_rpspi: SPI0/CE0 write clock rate calculated: 41666666 Hz (clkdiv=12) hm2_rpspi: SPI0/CE0 read clock rate calculated: 25000000 Hz (clkdiv=20) hm2_rpspi: SPI0/CE0 Valid cookie matched
    hm2_rpspi: SPI0/CE0 Base: hm2_7i90.0
    hm2/hm2_7i90.0: Low Level init 0.15
    hm2/hm2_7i90.0: MD 2: 3x IOPort v0: accepted, using 3
    hm2/hm2_7i90.0: MD 0: 1x Hostmot2 DPLL v0: accepted, using 1
    hm2/hm2_7i90.0: MD 1: 1x Watchdog v0: accepted, using 1
    hm2/hm2_7i90.0: MD 3: 4x Encoder v2: accepted, using 4
    hm2/hm2_7i90.0: MD 4: 2x PWMGen v0: accepted, using 1
    hm2/hm2_7i90.0: MD 5: 4x StepGen v2: accepted, using 4
    hm2/hm2_7i90.0: MD 6: 1x LED v0: accepted, using 1
    hm2/hm2_7i90.0: 72 I/O Pins used:

    That card goes on to define what those 72 i/0 pins are used for, but that
    would be another 80 lines to decipher when not familiar with the
    language...




    Greetings,

    Christian


    Cheers, Gene Heskett.
    --
    "There are four boxes to be used in defense of liberty:
    soap, ballot, jury, and ammo. Please use in that order."
    -Ed Howdershelt (Author, 1940)
    If we desire respect for the law, we must first make the law respectable.
    - Louis D. Brandeis
    Genes Web page <http://geneslinuxbox.net:6309/gene>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?=@21:1/5 to Christian Happ on Sat Oct 23 23:10:06 2021
    This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --bG0Kiv4tlXMDMuXL9sOq8JSKOebq9lMNR
    Content-Type: text/plain; charset=windows-1252; format=flowed
    Content-Language: en-US
    Content-Transfer-Encoding: quoted-printable

    Hello,

    On 10/22/21 7:50 PM, Christian Happ wrote:
    I have installed debian 11 (Bullseye) 64 on my RPI 3b + and want to use
    the i2c bus on the GPIO pins.

    Is there a tutorial that covers installing the necessary files?

    Which peripheral do you have connected to which i2c bus? Assuming there
    is a already a driver in den Debian kernel for your device the only
    thing you need to do is to create an device-tree overlay, put it into
    the firmware partition and let it apply by the right spell in config.txt.

    Best regards
    Uwe


    --bG0Kiv4tlXMDMuXL9sOq8JSKOebq9lMNR--

    -----BEGIN PGP SIGNATURE-----

    iQEzBAEBCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmF0ddIACgkQwfwUeK3K 7Anjywf+O4zn7M/GpPniiNTq6ooM+gu6Aaq5vOnqwqeYGzQ6bB2e/V25686YG14A n8+EAK6wP3cwZKe0TfM9DgMBkwTyVMfBy5MNjPk7iPADxVlL7FGsIqvqDN9Uva0q 55Z9M/m17ZpP5Jnp0+7LUjBoZemmWV2j0nTFEVx1dF9g8Pnb7+hfLIRj2OnrDFf6 pfOB6ChxiuJAVSTTmv3DUEw2hFfhL0KobRW1ienx2ZLUqif+PMGFiJAijUIsT+o7 xClwIJC5vLOo9zT6P97+iviVbRt2r0fxA37t4DWaObEBrOV6SFsdwXUgMflNBP6k O0+t4tn1CU5u/Y7Gn2H20nxqx6Y0gw==
    =hgGr
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)